diff options
author | Nir Weiner <nir.weiner@oracle.com> | 2019-01-27 11:17:14 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-02-20 22:48:50 +0100 |
commit | 7fa08e71b4a0591a518814fa78b32e124f90d587 (patch) | |
tree | f8b66306b476c5b6e833bceef8a0434bc9116652 /Documentation/xz.txt | |
parent | KVM: x86/mmu: Consolidate kvm_mmu_zap_all() and kvm_mmu_zap_mmio_sptes() (diff) | |
download | linux-7fa08e71b4a0591a518814fa78b32e124f90d587.tar.xz linux-7fa08e71b4a0591a518814fa78b32e124f90d587.zip |
KVM: grow_halt_poll_ns() should never shrink vCPU halt_poll_ns
grow_halt_poll_ns() have a strange behavior in case
(halt_poll_ns_grow == 0) && (vcpu->halt_poll_ns != 0).
In this case, vcpu->halt_pol_ns will be set to zero.
That results in shrinking instead of growing.
Fix issue by changing grow_halt_poll_ns() to not modify
vcpu->halt_poll_ns in case halt_poll_ns_grow is zero
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Liran Alon <liran.alon@oracle.com>
Signed-off-by: Nir Weiner <nir.weiner@oracle.com>
Suggested-by: Liran Alon <liran.alon@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'Documentation/xz.txt')
0 files changed, 0 insertions, 0 deletions