]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM: VMX: Update instruction length on intercepted BP
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 23 Feb 2010 16:47:53 +0000 (17:47 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:48:04 +0000 (07:48 -0700)
commit68f35500d733ed5cc3153c09f685e0abcfce4956
tree18e722dd63f911ce8071281a97a4a5b719f4b8da
parente6b2d9c9a2e5689aa03d3d38b6c19dc86738a536
KVM: VMX: Update instruction length on intercepted BP

(Cherry-picked from commit c573cd22939e54fc1b8e672054a505048987a7cb)

We intercept #BP while in guest debugging mode. As VM exits due to
intercepted exceptions do not necessarily come with valid
idt_vectoring, we have to update event_exit_inst_len explicitly in such
cases. At least in the absence of migration, this ensures that
re-injections of #BP will find and use the correct instruction length.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/vmx.c