kvm: nVMX: Allow L1 to intercept software exceptions (#BP and #OF)
authorJim Mattson <jmattson@google.com>
Mon, 12 Dec 2016 19:01:37 +0000 (11:01 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Dec 2016 15:05:31 +0000 (16:05 +0100)
commitef85b67385436ddc1998f45f1d6a210f935b3388
treef3014fcb72913be4746efe7c528a8a3fbeb2f8b4
parentcc0d907c0907561f108b2f4d4da24e85f18d0ca5
kvm: nVMX: Allow L1 to intercept software exceptions (#BP and #OF)

When L2 exits to L0 due to "exception or NMI", software exceptions
(#BP and #OF) for which L1 has requested an intercept should be
handled by L1 rather than L0. Previously, only hardware exceptions
were forwarded to L1.

Signed-off-by: Jim Mattson <jmattson@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c