KVM: x86: Polish exception injection via KVM_SET_GUEST_DEBUG
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 30 Oct 2009 11:46:59 +0000 (12:46 +0100)
committerAvi Kivity <avi@redhat.com>
Thu, 3 Dec 2009 07:32:24 +0000 (09:32 +0200)
Decouple KVM_GUESTDBG_INJECT_DB and KVM_GUESTDBG_INJECT_BP from
KVM_GUESTDBG_ENABLE, their are actually orthogonal. At this chance,
avoid triggering the WARN_ON in kvm_queue_exception if there is already
an exception pending and reject such invalid requests.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/x86.c

Simple merge