KVM: x86 emulator: limit instructions to 15 bytes
commit53fc82f62490a22d0bc547ab3191710ea10d9482
authorAvi Kivity <avi@redhat.com>
Tue, 24 Nov 2009 13:20:15 +0000 (24 15:20 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 Apr 2010 22:55:30 +0000 (1 15:55 -0700)
tree255902bc255ae6fcbb1eb4d648bb134c340e71bb
parentfdbb0a82d730de057e525f7aaee6add60286b324
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_x86_emulate.h
arch/x86/kvm/x86_emulate.c