summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
authorPaolo Bonzini2017-07-27 12:29:32 +0200
committerRadim Krčmář2017-08-01 22:24:17 +0200
commitb96fb439774e1bfb7d027ad324fa48606167cb52 (patch)
tree58e3ba4e92cb0e59065aa75423f44937c213ea8d /arch/x86/kernel
parentKVM: nVMX: do not fill vm_exit_intr_error_code in prepare_vmcs12 (diff)
downloadkernel-qcow2-linux-b96fb439774e1bfb7d027ad324fa48606167cb52.tar.gz
kernel-qcow2-linux-b96fb439774e1bfb7d027ad324fa48606167cb52.tar.xz
kernel-qcow2-linux-b96fb439774e1bfb7d027ad324fa48606167cb52.zip
KVM: nVMX: fixes to nested virt interrupt injection
There are three issues in nested_vmx_check_exception: 1) it is not taking PFEC_MATCH/PFEC_MASK into account, as reported by Wanpeng Li; 2) it should rebuild the interruption info and exit qualification fields from scratch, as reported by Jim Mattson, because the values from the L2->L0 vmexit may be invalid (e.g. if an emulated instruction causes a page fault, the EPT misconfig's exit qualification is incorrect). 3) CR2 and DR6 should not be written for exception intercept vmexits (CR2 only for AMD). This patch fixes the first two and adds a comment about the last, outlining the fix. Cc: Jim Mattson <jmattson@google.com> Cc: Wanpeng Li <wanpeng.li@hotmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kernel')
0 files changed, 0 insertions, 0 deletions