]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: polling: add architecture backend to disable polling
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 5 Mar 2019 10:30:01 +0000 (05:30 -0500)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 26 Apr 2019 07:08:17 +0000 (09:08 +0200)
commit681f7e4fc63491f6bace6b5fa4f4afb1d828fd4f
tree0f4c98d67883cf3dfa08cd2731d3a9497ea4ccf7
parent3d22e4906e5e2f6edfc574e7449539f2b772669e
KVM: polling: add architecture backend to disable polling

There are cases where halt polling is unwanted. For example when running
KVM on an over committed LPAR we rather want to give back the CPU to
neighbour LPARs instead of polling. Let us provide a callback that
allows architectures to disable polling.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
include/linux/kvm_host.h
virt/kvm/Kconfig
virt/kvm/kvm_main.c