]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86 emulator: emulate clflush
authorGlauber Costa <gcosta@redhat.com>
Thu, 10 Jul 2008 20:08:15 +0000 (17:08 -0300)
committerAvi Kivity <avi@qumranet.com>
Sun, 20 Jul 2008 09:42:40 +0000 (12:42 +0300)
commit9affb898209504bf7e64146577499a18f6d0863f
tree49ee4d514e9af781bec31ff8f07f9d8a5687a6b6
parentf073a99d35367cce08204f0fba98bb70e6638f33
KVM: x86 emulator: emulate clflush

If the guest issues a clflush in a mmio address, the instruction
can trap into the hypervisor. Currently, we do not decode clflush
properly, causing the guest to hang. This patch fixes this emulating
clflush (opcode 0f ae).

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/x86_emulate.c