]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: add capability for halt polling
authorDavid Matlack <dmatlack@google.com>
Fri, 17 Apr 2020 22:14:46 +0000 (15:14 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Apr 2020 16:53:17 +0000 (12:53 -0400)
commiteef2414adb577f305076d73b0693682e3ee7726a
treec8a7003b579cbdc7c79d109ec563f84de7d07018
parent31d43d21b8615f4702d84baa7b97c9d101fbe805
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>
Documentation/virt/kvm/api.rst
include/linux/kvm_host.h
include/uapi/linux/kvm.h
virt/kvm/kvm_main.c