]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: fix polling for guest halt continued even if disable it
authorWanpeng Li <wanpeng.li@hotmail.com>
Mon, 14 Sep 2015 09:38:51 +0000 (17:38 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 14 Sep 2015 15:07:04 +0000 (17:07 +0200)
commit88f0e9fc243a9a8201ddbea00d2c71ff9760aa2b
tree02b2eace7cc485ebdfe2363d8a53940bf6a9c31a
parent935a478e4144e0a4f690471a4a1d8ad5718a721b
KVM: fix polling for guest halt continued even if disable it

If there is already some polling ongoing, it's impossible to disable the
polling, since as soon as somebody sets halt_poll_ns to 0, polling will
never stop, as grow and shrink are only handled if halt_poll_ns is != 0.

This patch fix it by reset vcpu->halt_poll_ns in order to stop polling
when polling is disabled.

Reported-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c