aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorBen Horgan <[email protected]>2025-05-12 11:41:12 +0000
committerMarc Zyngier <[email protected]>2025-05-16 12:01:18 +0000
commit69018866d2baa014413e340744bfb342ec0cdbcd (patch)
treebf89c5a1a4bdbc9bdb068d73892336b5b21e4b46 /rust/helpers/helpers.c
parentKVM: arm64: Make MTE_frac masking conditional on MTE capability (diff)
downloadkernel-69018866d2baa014413e340744bfb342ec0cdbcd.tar.gz
kernel-69018866d2baa014413e340744bfb342ec0cdbcd.zip
KVM: selftests: Confirm exposing MTE_frac does not break migration
When MTE is supported but MTE_ASYMM is not (ID_AA64PFR1_EL1.MTE == 2) ID_AA64PFR1_EL1.MTE_frac == 0xF indicates MTE_ASYNC is unsupported and MTE_frac == 0 indicates it is supported. As MTE_frac was previously unconditionally read as 0 from the guest and user-space, check that using SET_ONE_REG to set it to 0 succeeds but does not change MTE_frac from unsupported (0xF) to supported (0). This is required as values originating from KVM from user-space must be accepted to avoid breaking migration. Also, to allow this MTE field to be tested, enable KVM_ARM_CAP_MTE for the set_id_regs test. No effect on existing tests is expected. Signed-off-by: Ben Horgan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Marc Zyngier <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions