]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
KVM: vmx: pass error code with internal error #2
authorRadim Krčmář <rkrcmar@redhat.com>
Thu, 2 Apr 2015 19:11:05 +0000 (21:11 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Apr 2015 08:46:56 +0000 (10:46 +0200)
Exposing the on-stack error code with internal error is cheap and
potentially useful.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Message-Id: <1428001865-32280-1-git-send-email-rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c

index b5a6425d8d9700e2c353ae772443429e195cb1da..9e4b12b5bff6e27fc9db477b45a9756195a3161c 100644 (file)
@@ -5089,9 +5089,10 @@ static int handle_exception(struct kvm_vcpu *vcpu)
            !(is_page_fault(intr_info) && !(error_code & PFERR_RSVD_MASK))) {
                vcpu->run->exit_reason = KVM_EXIT_INTERNAL_ERROR;
                vcpu->run->internal.suberror = KVM_INTERNAL_ERROR_SIMUL_EX;
-               vcpu->run->internal.ndata = 2;
+               vcpu->run->internal.ndata = 3;
                vcpu->run->internal.data[0] = vect_info;
                vcpu->run->internal.data[1] = intr_info;
+               vcpu->run->internal.data[2] = error_code;
                return 0;
        }