[PATCH 0/2] KVM: nVMX: fixes to nested virt interrupt injection
From: Paolo Bonzini
Date: Fri Jul 28 2017 - 03:03:37 EST
With these two patches, KVM does not blindly pass the exit interruption
info and exit qualification from the vmcs02 and vmcs12 when injecting
an exception. There were two spots where this was done, namely
nested_vmx_check_exception and vmx_inject_page_fault_nested.
Patch 1 avoids writing the vmcs02's VM_EXIT_INTR_ERROR_CODE field,
which as Jim noticed isn't possible on pre-Haswell machines, but
otherwise has no semantic effect.
Patch 2 is the actual bugfix.
Paolo Bonzini (2):
KVM: nVMX: do not fill vm_exit_intr_error_code in prepare_vmcs12
KVM: nVMX: fixes to nested virt interrupt injection
arch/x86/kvm/svm.c | 10 ++++
arch/x86/kvm/vmx.c | 133 +++++++++++++++++++++++++++++++++++++----------------
2 files changed, 103 insertions(+), 40 deletions(-)
--
1.8.3.1