commit | c9669d6d5741f7aa86e160c5e42979f90d25d168 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Wed Jul 10 11:56:35 2024 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Tue Jul 16 18:18:24 2024 +0200 |
tree | 54ccd4eb88188508769dcdecf5df104ca7b340cc | |
parent | de12ebfdabe224597f624827ad57348b83e7d88a [diff] |
hpet: fix clamping of period When writing a new period, the clamping should use a maximum value rather tyhan a bit mask. Also, when writing the high bits new_val is shifted right by 32, so the maximum allowed period should also be shifted right. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>