KVM: VMX: Properly handle software interrupt re-injection in real mode
authorGleb Natapov <gleb@redhat.com>
Tue, 19 May 2009 08:07:10 +0000 (11:07 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:32:38 +0000 (08:32 +0300)
commitae0bb3e011fec51fa67073d8e23d8ffeb36185d1
treec5bf05ed2bb0ef7365be95636604f89b8815f77c
parent74fca6a42863ffacaf7ba6f1936a9f228950f657
KVM: VMX: Properly handle software interrupt re-injection in real mode

When reinjecting a software interrupt or exception, use the correct
instruction length provided by the hardware instead of a hardcoded 1.

Fixes problems running the suse 9.1 livecd boot loader.

Problem introduced by commit f0a3602c20 ("KVM: Move interrupt injection
logic to x86.c").

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c