mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] KVM: x86: Revert to fix apic_hw_disabled underflow
@ 2021-10-13  0:35 Sean Christopherson
  2021-10-13  0:35 ` [PATCH 1/2] Revert "KVM: x86: Open code necessary bits of kvm_lapic_set_base() at vCPU RESET" Sean Christopherson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sean Christopherson @ 2021-10-13  0:35 UTC (permalink / raw)
  To: Paolo Bonzini
  Cc: Sean Christopherson, Vitaly Kuznetsov, Wanpeng Li, Jim Mattson,
	Joerg Roedel, kvm, linux-kernel, syzbot+9fc046ab2b0cf295a063,
	Tetsuo Handa

Revert (mostly) a patch from the vCPU RESET cleanup that open coded some
APIC shenanigans to avoid stuffing vcpu->arch.apic_base at vCPU creation,
and completely overlooked the side effects on apic_hw_disabled.  I went
for a revert as I think the original behavior is the least awful solution,
just somewhat poorly documented.

The second patch adds WARNs to detect "overflow", where "overflow" means
KVM incorrectly increments apic_hw_disabled.

Sean Christopherson (2):
  Revert "KVM: x86: Open code necessary bits of kvm_lapic_set_base() at
    vCPU RESET"
  KVM: x86: WARN if APIC HW/SW disable static keys are non-zero on
    unload

 arch/x86/kvm/lapic.c | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

-- 
2.33.0.1079.g6e70778dc9-goog


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-10-15  9:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-13  0:35 [PATCH 0/2] KVM: x86: Revert to fix apic_hw_disabled underflow Sean Christopherson
2021-10-13  0:35 ` [PATCH 1/2] Revert "KVM: x86: Open code necessary bits of kvm_lapic_set_base() at vCPU RESET" Sean Christopherson
2021-10-13  0:35 ` [PATCH 2/2] KVM: x86: WARN if APIC HW/SW disable static keys are non-zero on unload Sean Christopherson
2021-10-15  9:02 ` [PATCH 0/2] KVM: x86: Revert to fix apic_hw_disabled underflow Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®