]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Use x2apic_mode to avoid RDMSR when querying PI state
authorSean Christopherson <seanjc@google.com>
Fri, 15 Jan 2021 22:03:54 +0000 (14:03 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Feb 2021 10:27:22 +0000 (05:27 -0500)
commit0f53e42948e49446e57a3a47f2d72801dd661b7d
tree251b126ac9faa6260ab271d92eb8ca08c0418bdc
parentd2dc13d33a98ef9eac58c820977f33d238050205
KVM: VMX: Use x2apic_mode to avoid RDMSR when querying PI state

Use x2apic_mode instead of x2apic_enabled() when adjusting the
destination ID during Posted Interrupt updates.  This avoids the costly
RDMSR that is hidden behind x2apic_enabled().

Reported-by: luferry <luferry@163.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210115220354.434807-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/posted_intr.c