KVM: Don't shrink/grow vCPU halt_poll_ns if host side polling is disabled
authorWanpeng Li <wanpengli@tencent.com>
Sun, 29 Sep 2019 01:06:56 +0000 (09:06 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Oct 2019 11:31:14 +0000 (13:31 +0200)
commit44551b2f693d1ddcab4ca9895074f8f61c3a72af
treeb6917f173772cdbb63b880bb36efac87fe523965
parent9de25d182b806d63412f6827e3066c031d4be500
KVM: Don't shrink/grow vCPU halt_poll_ns if host side polling is disabled

Don't waste cycles to shrink/grow vCPU halt_poll_ns if host
side polling is disabled.

Acked-by: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Wanpeng Li <wanpengli@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c