KVM: x86 emulator: limit instructions to 15 bytes
authorAvi Kivity <avi@redhat.com>
Tue, 24 Nov 2009 13:20:15 +0000 (15:20 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 3 Dec 2009 07:32:25 +0000 (09:32 +0200)
commiteb3c79e64a70fb8f7473e30fa07e89c1ecc2c9bb
treee6c73345d26a553d0b36a9503d674fd70b66233d
parentd7b0b5eb3000c6fb902f08c619fcd673a23d8fab
KVM: x86 emulator: limit instructions to 15 bytes

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.

Cc: stable@kernel.org
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_emulate.h
arch/x86/kvm/emulate.c