KVM: VMX: Cleanup stalled INTR_INFO read
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 11 Sep 2008 10:58:00 +0000 (12:58 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 15 Oct 2008 08:15:26 +0000 (10:15 +0200)
Commit 1c0f4f5011829dac96347b5f84ba37c2252e1e08 left a useless access
of VM_ENTRY_INTR_INFO_FIELD in vmx_intr_assist behind. Clean this up.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/vmx.c

index e7e8c86f1b7dfb73d280c6f6ee7bbc723e2e8580..f8e615fc87441f29410040d2d1b7735046e7f0e6 100644 (file)
@@ -3135,11 +3135,8 @@ static void vmx_complete_interrupts(struct vcpu_vmx *vmx)
 
 static void vmx_intr_assist(struct kvm_vcpu *vcpu)
 {
-       u32 intr_info_field;
-
        update_tpr_threshold(vcpu);
 
-       intr_info_field = vmcs_read32(VM_ENTRY_INTR_INFO_FIELD);
        if (cpu_has_virtual_nmis()) {
                if (vcpu->arch.nmi_pending && !vcpu->arch.nmi_injected) {
                        if (vmx_nmi_enabled(vcpu)) {