KVM: halt_polling: improve grow/shrink settings
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 9 Feb 2016 12:47:55 +0000 (13:47 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Feb 2016 17:48:29 +0000 (18:48 +0100)
commit6b6de68c63eda6240ec92e44b998f910156f8806
treebbac3e4b7e1ce1c9fdfef89b3fea0a04ad85e88e
parentefef127c30c5ded4cb10fe36275d9b11d4633de4
KVM: halt_polling: improve grow/shrink settings

Right now halt_poll_ns can be change during runtime. The
grow and shrink factors can only be set during module load.
Lets fix several aspects of grow shrink:
- make grow/shrink changeable by root
- make all variables unsigned int
- read the variables once to prevent races

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/trace/events/kvm.h
virt/kvm/kvm_main.c