KVM: VMX: Fix guest debugging while in L2
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 9 Feb 2016 19:15:18 +0000 (20:15 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Feb 2016 17:48:32 +0000 (18:48 +0100)
commit6f05485d3a161caebc0fc7a73d641fa42a0dd263
treed99feb70271d4433205af18634bf22db6b7c84f2
parent5bb16016ce111f3f4bc68bb109f7e5be6bc14ad7
KVM: VMX: Fix guest debugging while in L2

When we take a #DB or #BP vmexit while in guest mode, we first of all
need to check if there is ongoing guest debugging that might be
interested in the event. Currently, we unconditionally leave L2 and
inject the event into L1 if it is intercepting the exceptions. That
breaks things marvelously.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c