]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86: Remove hwapic_irr_update() from kvm_x86_ops
authorChao Gao <chao.gao@intel.com>
Mon, 11 Nov 2024 08:59:46 +0000 (16:59 +0800)
committerSean Christopherson <seanjc@google.com>
Thu, 19 Dec 2024 15:34:15 +0000 (07:34 -0800)
commitca0245d131b121f5408b0f67569ec14ee7fccec8
tree17a428e3108e513760478895ed2f89da891db5c2
parent3d91521e57df1f6903419502592910232af49dbb
KVM: x86: Remove hwapic_irr_update() from kvm_x86_ops

Remove the redundant .hwapic_irr_update() ops.

If a vCPU has APICv enabled, KVM updates its RVI before VM-enter to L1
in vmx_sync_pir_to_irr(). This guarantees RVI is up-to-date and aligned
with the vIRR in the virtual APIC. So, no need to update RVI every time
the vIRR changes.

Note that KVM never updates vmcs02 RVI in .hwapic_irr_update() or
vmx_sync_pir_to_irr(). So, removing .hwapic_irr_update() has no
impact to the nested case.

Signed-off-by: Chao Gao <chao.gao@intel.com>
Link: https://lore.kernel.org/r/20241111085947.432645-1-chao.gao@intel.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/kvm-x86-ops.h
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/lapic.c
arch/x86/kvm/vmx/main.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/vmx/x86_ops.h