summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorJames Morse <james.morse@arm.com>2024-10-30 19:03:17 +0300
committerOliver Upton <oliver.upton@linux.dev>2024-10-31 21:10:52 +0300
commit75cd027cbcb161e277209e20df14f0818c62d9e7 (patch)
tree0417ebbe9d31df706fd1b794f9e49051fa447518 /rust/helpers/helpers.c
parent6685f5d572c22e1003e7c0d089afe1c64340ab1f (diff)
downloadlinux-75cd027cbcb161e277209e20df14f0818c62d9e7.tar.xz
KVM: arm64: selftests: Test ID_AA64PFR0.MPAM isn't completely ignored
The ID_AA64PFR0.MPAM bit was previously accidentally exposed to guests, and is ignored by KVM. KVM will always present the guest with 0 here, and trap the MPAM system registers to inject an undef. But, this value is still needed to prevent migration when the value is incompatible with the target hardware. Add a kvm unit test to try and write multiple values to ID_AA64PFR0.MPAM. Only the hardware value previously exposed should be ignored, all other values should be rejected. Signed-off-by: James Morse <james.morse@arm.com> Signed-off-by: Joey Gouly <joey.gouly@arm.com> Tested-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com> Reviewed-by: Gavin Shan <gshan@redhat.com> Reviewed-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20241030160317.2528209-8-joey.gouly@arm.com Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions