]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit2a7c5b8b550b1fb1db9eb490420132e637f5dcb4
tree49ee4d514e9af781bec31ff8f07f9d8a5687a6b6
parent376c53c2b30d4a1955240f59f4ecd959aa118f92
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