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)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Jun 2017 12:04:53 +0000 (14:04 +0200)
commit58e4633a0841c48ce32f14cd797ec5482ecfa83b
tree1c6db62bd74b9b1413a345f2c419d5d5af4ce15b
parentb3d2d8af5b4791f60a1ced720a251c7f89badff7
kvm: nVMX: Allow L1 to intercept software exceptions (#BP and #OF)

commit ef85b67385436ddc1998f45f1d6a210f935b3388 upstream.

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>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
arch/x86/kvm/vmx.c