aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorDavid Matlack <dmatlack@google.com>2020-04-17 15:14:46 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2020-04-24 12:53:17 -0400
commitacd05785e48c01edb2c4f4d014d28478b5f19fb5 (patch)
treec8a7003b579cbdc7c79d109ec563f84de7d07018 /include/linux/kvm_host.h
parentKVM: nVMX: Store vmcs.EXIT_QUALIFICATION as an unsigned long, not u32 (diff)
downloadwireguard-linux-acd05785e48c01edb2c4f4d014d28478b5f19fb5.tar.xz
wireguard-linux-acd05785e48c01edb2c4f4d014d28478b5f19fb5.zip
kvm: add capability for halt polling
KVM_CAP_HALT_POLL is a per-VM capability that lets userspace control the halt-polling time, allowing halt-polling to be tuned or disabled on particular VMs. With dynamic halt-polling, a VM's VCPUs can poll from anywhere from [0, halt_poll_ns] on each halt. KVM_CAP_HALT_POLL sets the upper limit on the poll time. Signed-off-by: David Matlack <dmatlack@google.com> Signed-off-by: Jon Cargille <jcargill@google.com> Reviewed-by: Jim Mattson <jmattson@google.com> Message-Id: <20200417221446.108733-1-jcargill@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r--include/linux/kvm_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 5285a5568208..3cc6ccbb1183 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -503,6 +503,7 @@ struct kvm {
struct srcu_struct srcu;
struct srcu_struct irq_srcu;
pid_t userspace_pid;
+ unsigned int max_halt_poll_ns;
};
#define kvm_err(fmt, ...) \