[PATCH 10/25] KVM: VMX: Cleanup stalled INTR_INFO read

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Avi Kivity
Date: Sunday, September 28, 2008 - 8:44 am

From: Jan Kiszka <jan.kiszka@siemens.com>

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 |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index e7e8c86..f8e615f 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -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)) {
-- 
1.6.0.1

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 06/25] KVM: x86: do not execute halted vcpus, Avi Kivity, (Sun Sep 28, 8:44 am)
[PATCH 08/25] KVM: x86: unhalt vcpu0 on reset, Avi Kivity, (Sun Sep 28, 8:44 am)
[PATCH 10/25] KVM: VMX: Cleanup stalled INTR_INFO read, Avi Kivity, (Sun Sep 28, 8:44 am)
[PATCH 13/25] x86: Move VMX MSRs to msr-index.h, Avi Kivity, (Sun Sep 28, 8:44 am)
[PATCH 19/25] VT-d: Changes to support KVM, Avi Kivity, (Sun Sep 28, 8:44 am)
[PATCH 20/25] KVM: Device Assignment with VT-d, Avi Kivity, (Sun Sep 28, 8:44 am)
[PATCH 23/25] KVM: switch to get_user_pages_fast, Avi Kivity, (Sun Sep 28, 8:44 am)