Skip to content
Snippets Groups Projects
Commit 9eb8ca04 authored by David Matlack's avatar David Matlack Committed by Paolo Bonzini
Browse files

KVM: Obey kvm.halt_poll_ns in VMs not using KVM_CAP_HALT_POLL


Obey kvm.halt_poll_ns in VMs not using KVM_CAP_HALT_POLL on every halt,
rather than just sampling the module parameter when the VM is first
created. This restore the original behavior of kvm.halt_poll_ns for VMs
that have not opted into KVM_CAP_HALT_POLL.

Notably, this change restores the ability for admins to disable or
change the maximum halt-polling time system wide for VMs not using
KVM_CAP_HALT_POLL.

Reported-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
Fixes: acd05785 ("kvm: add capability for halt polling")
Signed-off-by: default avatarDavid Matlack <dmatlack@google.com>
Message-Id: <20221117001657.1067231-4-dmatlack@google.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 175d5dc7
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment