Skip to content

KVM: arm64: Make AArch64 support sticky

Marc Zyngier kvm kvmarm linux-arm-kernel 1 version Applied

Status from this message: Applied to fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: arm64: Prevent userspace from disabling AArch64 support at any virtualisable ELarch/arm64/kvm/sys_regs.c+6 -00 replies
2/2KVM: arm64: selftest: Don't try to disable AArch64 supporttools/testing/selftests/kvm/arm64/set_id_regs.c+4 -40 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGanapatrao Kulkarni
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] KVM: arm64: Make AArch64 support sticky

It's been recently reported[1] that our sorry excuse for a test suite is writing a bunch of zeroes to ID_AA64PFR0_EL1.EL{0,1,2,3}, effectively removing the advertised support for AArch64 to the guest.

This leads to an interesting interaction with the NV code which reacts in a slightly overzealous way and inject an UNDEF at the earliest opportunity.

This small series fixes KVM by bluntly refusing to disable AArch64, and the test to stop being so lame. I'm also fixing the NV code separately, since it isn't upstream.

[1] https://lore.kernel.org/r/[email protected]

Marc Zyngier (2):
KVM: arm64: Prevent userspace from disabling AArch64 support at any
virtualisable EL
KVM: arm64: selftest: Don't try to disable AArch64 support

 arch/arm64/kvm/sys_regs.c                       | 6 ++++++
 tools/testing/selftests/kvm/arm64/set_id_regs.c | 8 ++++----
 2 files changed, 10 insertions(+), 4 deletions(-)
Signature · 1 line
2.39.2