]> asedeno.scripts.mit.edu Git - linux.git/commit
KVM: PPC: Book3S HV: Add check for module parameter halt_poll_ns
authorSuraj Jitindar Singh <sjitindarsingh@gmail.com>
Fri, 14 Oct 2016 00:53:21 +0000 (11:53 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Mon, 28 Nov 2016 00:48:47 +0000 (11:48 +1100)
commite03f3921e597cbcc6880033e5c52fa1db524f88b
tree70e344307fc50a2a9b477071debfcb9e013cf340
parent307d93e476a340116cbddd1d3d7edf9b3cdd7506
KVM: PPC: Book3S HV: Add check for module parameter halt_poll_ns

The kvm module parameter halt_poll_ns defines the global maximum halt
polling interval and can be dynamically changed by writing to the
/sys/module/kvm/parameters/halt_poll_ns sysfs file. However in kvm-hv
this module parameter value is only ever checked when we grow the current
polling interval for the given vcore. This means that if we decrease the
halt_poll_ns value below the current polling interval we won't see any
effect unless we try to grow the polling interval above the new max at some
point or it happens to be shrunk below the halt_poll_ns value.

Update the halt polling code so that we always check for a new module param
value of halt_poll_ns and set the current halt polling interval to it if
it's currently greater than the new max. This means that it's redundant to
also perform this check in the grow_halt_poll_ns() function now.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_hv.c