mbox series

[0/2] KVM: x86: Disallow changing x2APIC ID via userspace

Message ID 20240802202941.344889-1-seanjc@google.com (mailing list archive)
Headers show
Series KVM: x86: Disallow changing x2APIC ID via userspace | expand

Message

Sean Christopherson Aug. 2, 2024, 8:29 p.m. UTC
Silently ignore userspace attempts to change the x2APIC ID via
KVM_SET_LAPIC.

I've been hunting for this series since January[*], and *finally* stumbled
across it while tidying up my (too) many git trees.

[*] https://lore.kernel.org/all/ZbPkHvuJv0EdJhVN@google.com

Michal Luczaj (1):
  KVM: selftests: Add a testcase to verify x2APIC is fully readonly

Sean Christopherson (1):
  KVM: x86: Make x2APIC ID 100% readonly

 arch/x86/kvm/lapic.c                          | 18 +++++++++---
 .../selftests/kvm/x86_64/xapic_state_test.c   | 28 +++++++++++++++++++
 2 files changed, 42 insertions(+), 4 deletions(-)


base-commit: 332d2c1d713e232e163386c35a3ba0c1b90df83f