summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2018-01-01 22:53:42 +0100
committerRadim Krčmář <rkrcmar@redhat.com>2018-01-16 16:50:23 +0100
commit07f36616cde482a9fd65da9a64f504190c7a0edb (patch)
treeff22fb39adaa08ea2f9e36ec795fdaaeb9720d83 /arch/x86/kvm
parent25a2e4fe8ef719de564370349dc408ac7263f455 (diff)
downloadop-kernel-dev-07f36616cde482a9fd65da9a64f504190c7a0edb.zip
op-kernel-dev-07f36616cde482a9fd65da9a64f504190c7a0edb.tar.gz
KVM: nVMX: remove unnecessary vmwrite from L2->L1 vmexit
The POSTED_INTR_NV field is constant (though it differs between the vmcs01 and vmcs02), there is no need to reload it on vmexit to L1. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r--arch/x86/kvm/vmx.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 9b9e02c..bbadd8c 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -11339,9 +11339,6 @@ static void load_vmcs12_host_state(struct kvm_vcpu *vcpu,
*/
vmx_flush_tlb(vcpu, true);
}
- /* Restore posted intr vector. */
- if (nested_cpu_has_posted_intr(vmcs12))
- vmcs_write16(POSTED_INTR_NV, POSTED_INTR_VECTOR);
vmcs_write32(GUEST_SYSENTER_CS, vmcs12->host_ia32_sysenter_cs);
vmcs_writel(GUEST_SYSENTER_ESP, vmcs12->host_ia32_sysenter_esp);
OpenPOWER on IntegriCloud