KVM: nVMX: Add support for activity state HLT
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 4 Dec 2013 07:58:54 +0000 (08:58 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 Dec 2013 09:49:56 +0000 (10:49 +0100)
commit6dfacadd5858882eee1983995854d4e1fb1b966e
tree932c4a94bf720cda40e1ed0cb3262a07a31b326b
parent2961e8764faad212234e93907a370a7c36a67da5
KVM: nVMX: Add support for activity state HLT

We can easily emulate the HLT activity state for L1: If it decides that
L2 shall be halted on entry, just invoke the normal emulation of halt
after switching to L2. We do not depend on specific host features to
provide this, so we can expose the capability unconditionally.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/vmx.h
arch/x86/kvm/vmx.c