diff options
author | Nir Weiner <nir.weiner@oracle.com> | 2019-01-27 13:17:14 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-02-21 00:48:50 +0300 |
commit | 7fa08e71b4a0591a518814fa78b32e124f90d587 (patch) | |
tree | f8b66306b476c5b6e833bceef8a0434bc9116652 /fs/jffs2/build.c | |
parent | 8ab3c471eef20925bf64c6d4fa46e88cdb4e86d5 (diff) | |
download | linux-7fa08e71b4a0591a518814fa78b32e124f90d587.tar.xz |
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 'fs/jffs2/build.c')
0 files changed, 0 insertions, 0 deletions