KVM: SVM: don't copy exit_int_info on nested vmrun
authorJoerg Roedel <joerg.roedel@amd.com>
Wed, 16 Sep 2009 13:24:16 +0000 (15:24 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 3 Dec 2009 07:32:11 +0000 (09:32 +0200)
The exit_int_info field is only written by the hardware and
never read. So it does not need to be copied on a vmrun
emulation.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/svm.c

index 3f3fe815c21bb69e745df4fc919b39b162923c31..41c996ab87e9f4f392ba5da03d00c7170b4918ad 100644 (file)
@@ -1797,8 +1797,6 @@ static bool nested_svm_vmrun(struct vcpu_svm *svm)
        svm->nested.intercept            = nested_vmcb->control.intercept;
 
        force_new_asid(&svm->vcpu);
-       svm->vmcb->control.exit_int_info = nested_vmcb->control.exit_int_info;
-       svm->vmcb->control.exit_int_info_err = nested_vmcb->control.exit_int_info_err;
        svm->vmcb->control.int_ctl = nested_vmcb->control.int_ctl | V_INTR_MASKING_MASK;
        if (nested_vmcb->control.int_ctl & V_IRQ_MASK) {
                nsvm_printk("nSVM Injecting Interrupt: 0x%x\n",