summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorWanpeng Li <wanpengli@tencent.com>2018-03-12 04:53:03 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2018-03-16 22:03:52 +0100
commitcaa057a2cad647fb368a12c8e6c410ac4c28e063 (patch)
tree704b511957703f1666b9735a516ec21c3e0865ae /arch/x86/include/asm/kvm_host.h
parent4d5422cea3b61f158d58924cbb43feada456ba5c (diff)
downloadlinux-0-day-caa057a2cad647fb368a12c8e6c410ac4c28e063.tar.gz
linux-0-day-caa057a2cad647fb368a12c8e6c410ac4c28e063.tar.xz
KVM: X86: Provide a capability to disable HLT intercepts
If host CPUs are dedicated to a VM, we can avoid VM exits on HLT. This patch adds the per-VM capability to disable them. Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Radim Krčmář <rkrcmar@redhat.com> Cc: Jan H. Schönherr <jschoenh@amazon.de> Signed-off-by: Wanpeng Li <wanpengli@tencent.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r--arch/x86/include/asm/kvm_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index a85b640aee1ee..31f4186698275 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -812,6 +812,7 @@ struct kvm_arch {
gpa_t wall_clock;
bool mwait_in_guest;
+ bool hlt_in_guest;
bool ept_identity_pagetable_done;
gpa_t ept_identity_map_addr;