summaryrefslogtreecommitdiff
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorDavid Matlack <dmatlack@google.com>2022-11-17 03:16:56 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2022-11-17 18:49:14 +0300
commit175d5dc79dcb58d18e11192656eefa27abb3fd33 (patch)
tree06b7980324a976c97ea31b9660b5b6b57bea7b27 /include/linux/kvm_host.h
parent97b6847ac10ba753849207e20df74a7c0ea03343 (diff)
downloadlinux-175d5dc79dcb58d18e11192656eefa27abb3fd33.tar.xz
KVM: Avoid re-reading kvm->max_halt_poll_ns during halt-polling
Avoid re-reading kvm->max_halt_poll_ns multiple times during halt-polling except when it is explicitly useful, e.g. to check if the max time changed across a halt. kvm->max_halt_poll_ns can be changed at any time by userspace via KVM_CAP_HALT_POLL. This bug is unlikely to cause any serious side-effects. In the worst case one halt polls for shorter or longer than it should, and then is fixed up on the next halt. Furthmore, this is still possible since kvm->max_halt_poll_ns are not synchronized with halts. Fixes: acd05785e48c ("kvm: add capability for halt polling") Signed-off-by: David Matlack <dmatlack@google.com> Message-Id: <20221117001657.1067231-3-dmatlack@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/linux/kvm_host.h')
0 files changed, 0 insertions, 0 deletions