KVM: Export kvm module parameter variables
authorSuraj Jitindar Singh <sjitindarsingh@gmail.com>
Fri, 14 Oct 2016 00:53:19 +0000 (11:53 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Mon, 28 Nov 2016 00:48:47 +0000 (11:48 +1100)
commitec76d819d27040e418801d1a57bd3bdfde51019e
tree90a89b6eac9dbe1a5f545c8de06cdbaeb57074d2
parenta8acaece5d88db234d0b82b8692dea15d602f622
KVM: Export kvm module parameter variables

The kvm module has the parameters halt_poll_ns, halt_poll_ns_grow, and
halt_poll_ns_shrink. Halt polling was recently added to the powerpc kvm-hv
module and these parameters were essentially duplicated for that. There is
no benefit to this duplication and it can lead to confusion when trying to
tune halt polling.

Thus move the definition of these variables to kvm_host.h and export them.
This will allow the kvm-hv module to use the same module parameters by
accessing these variables, which will be implemented in the next patch,
meaning that they will no longer be duplicated.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
include/linux/kvm_host.h
virt/kvm/kvm_main.c