KVM: nVMX: Avoid reading VM_EXIT_INTR_ERROR_CODE needlessly on nested exits
authorJan Kiszka <jan.kiszka@siemens.com>
Sun, 14 Apr 2013 10:12:50 +0000 (12:12 +0200)
committerGleb Natapov <gleb@redhat.com>
Sun, 14 Apr 2013 15:27:10 +0000 (18:27 +0300)
commitc0d1c770c05ac7051df86914f9627b68f29c1d67
treee33fd8d4e5728b1afec04f6ec62d3649e32781b5
parente8457c67a4ec1268ec616bd8be1d9f1cc20f1493
KVM: nVMX: Avoid reading VM_EXIT_INTR_ERROR_CODE needlessly on nested exits

We only need to update vm_exit_intr_error_code if there is a valid exit
interruption information and it comes with a valid error code.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kvm/vmx.c