Skip to content

KVM: VMX: Avoid RDMSRs in PI x2APIC checks

Sean Christopherson kvm lkml 1 version Applied

Status from this message: Queued, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2x86/apic: Export x2apic_mode for use by KVM in "warm" patharch/x86/kernel/apic/apic.c+1 -00 replies
2/2KVM: VMX: Use x2apic_mode to avoid RDMSR when querying PI statearch/x86/kvm/vmx/posted_intr.c+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] KVM: VMX: Avoid RDMSRs in PI x2APIC checks

Resurrect a patch[*] from over a year ago to avoid RDMSR in a fairly hot path in KVM's posted interrupt support. Note, in my response to that patch, I suggested checking x2apic_supported() as well as x2apic_mode. I have no idea why I suggested that; unless I'm missing something, x2apic_mode can never be set if x2apic_supported() is false.

[*] https://lkml.kernel.org/r/[email protected]/

Sean Christopherson (2):
x86/apic: Export x2apic_mode for use by KVM in "warm" path
KVM: VMX: Use x2apic_mode to avoid RDMSR when querying PI state

 arch/x86/kernel/apic/apic.c    | 1 +
 arch/x86/kvm/vmx/posted_intr.c | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)
Signature · 1 line
2.30.0.284.gd98b1dd5eaa7-goog