RFC KVM: Restore original behavior of kvm.halt_poll_ns
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest3 patches 11 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | KVM: Cap vcpu->halt_poll_ns before halting rather than aftervirt/ | +6 | 2 replies | |
| 2/3 | KVM: Avoid re-reading kvm->max_halt_poll_ns during halt-pollingvirt/ | +15 | 2 replies | |
| 3/3 | KVM: Obey kvm.halt_poll_ns in VMs not using KVM_CAP_HALT_POLLinclude/ virt/ | +25 | 7 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Christian Borntraeger | Yanan Wang |
|---|---|---|
| 1/3 | A-b | R-b |
| 2/3 | A-b | R-b |
| 3/3 | T-b R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC PATCH 0/3] KVM: Restore original behavior of kvm.halt_poll_ns
This series restores the original behavior of the module parameter kvm.halt_poll_ns in VMs not using KVM_CAP_HALT_POLL. This should allow admins to administer VMs not using KVM_CAP_HALT_POLL just as they were before this capability was introduced.
VMs that use KVM_CAP_HALT_POLL can be administered through userspace changes that invoke KVM_CAP_HALT_POLL (i.e. the capability can be invoked multiple times to change the max halt poll time).
If any admin needs a system-wide override of KVM_CAP_HALT_POLL we can add that through a new mechanism (e.g. a new bool module parameter).
Compile-tested only. I want to get feedback from Christian and Yunan if this approach would address their concerns.
David Matlack (3):
KVM: Cap vcpu->halt_poll_ns before halting rather than after
KVM: Avoid re-reading kvm->max_halt_poll_ns during halt-polling
KVM: Obey kvm.halt_poll_ns in VMs not using KVM_CAP_HALT_POLL
include/linux/kvm_host.h | 1 + virt/kvm/kvm_main.c | 52 ++++++++++++++++++++++++++++++++-------- 2 files changed, 43 insertions(+), 10 deletions(-)
base-commit: d663b8a285986072428a6a145e5994bc275df994
Signature · 1 line
2.38.1.431.g37b22c650d-goog