KVM: x86 emulator: limit instructions to 15 bytes
commitb63569376aeca6300e10bf9e5ccfc49758407dbf
authorAvi Kivity <avi@redhat.com>
Tue, 24 Nov 2009 13:20:15 +0000 (24 15:20 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Dec 2009 22:03:32 +0000 (18 14:03 -0800)
treea572633f4b99638b010194f7e988937103f69f86
parent7cb056b8203edc77c0b69431cf1312805a008484
KVM: x86 emulator: limit instructions to 15 bytes

commit eb3c79e64a70fb8f7473e30fa07e89c1ecc2c9bb upstream.

While we are never normally passed an instruction that exceeds 15 bytes,
smp games can cause us to attempt to interpret one, which will cause
large latencies in non-preempt hosts.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/include/asm/kvm_emulate.h
arch/x86/kvm/emulate.c