summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/mmu/mmu.c
diff options
context:
space:
mode:
authorSean Christopherson <sean.j.christopherson@intel.com>2020-03-20 14:28:25 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2020-04-21 09:12:55 -0400
commit4de1f9d469f4515464c2c4958a59479f641970ef (patch)
tree30491f3bac17bbd9a3a5d6d2ec9b98243e24d052 /arch/x86/kvm/mmu/mmu.c
parenta4148b7ca2a5afe1295a41b5e30048cabcb74f8d (diff)
downloadlwn-4de1f9d469f4515464c2c4958a59479f641970ef.tar.gz
lwn-4de1f9d469f4515464c2c4958a59479f641970ef.zip
KVM: VMX: Don't reload APIC access page if its control is disabled
Don't reload the APIC access page if its control is disabled, e.g. if the guest is running with x2APIC (likely) or with the local APIC disabled (unlikely), to avoid unnecessary TLB flushes and VMWRITEs. Unconditionally reload the APIC access page and flush the TLB when the guest's virtual APIC transitions to "xAPIC enabled", as any changes to the APIC access page's mapping will not be recorded while the guest's virtual APIC is disabled. Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Message-Id: <20200320212833.3507-30-sean.j.christopherson@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/mmu/mmu.c')
0 files changed, 0 insertions, 0 deletions