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)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:36:14 +0000 (12:36 -0300)
commitc573cd22939e54fc1b8e672054a505048987a7cb
treefdfb036f42f93c97cc06b1c505ad02963dfb7b82
parente54cfa97a9ca9a544a7257b89b530b505ae1b892
KVM: VMX: Update instruction length on intercepted BP

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>
Cc: stable@kernel.org (2.6.32, 2.6.33)
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c