KVM: handle exit due to INVD in VMX
authorGleb Natapov <gleb@redhat.com>
Mon, 1 Nov 2010 13:35:01 +0000 (15:35 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:28:53 +0000 (11:28 +0200)
commitec25d5e66ee152e371fd7046f3f8441859579aea
tree5edb00a4f7cb73758492efc7b013e17e841fdd7e
parent2eec73437487aa690882cafddca6e4d93df46f26
KVM: handle exit due to INVD in VMX

Currently the exit is unhandled, so guest halts with error if it tries
to execute INVD instruction. Call into emulator when INVD instruction
is executed by a guest instead. This instruction is not needed by ordinary
guests, but firmware (like OpenBIOS) use it and fail.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/include/asm/vmx.h
arch/x86/kvm/vmx.c