Skip to content
Commit e5e57e7a authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

kvm: x86: only channel 0 of the i8254 is linked to the HPET



While setting the KVM PIT counters in 'kvm_pit_load_count', if
'hpet_legacy_start' is set, the function disables the timer on
channel[0], instead of the respective index 'channel'. This is
because channels 1-3 are not linked to the HPET.  Fix the caller
to only activate the special HPET processing for channel 0.

Reported-by: default avatarP J P <pjp@fedoraproject.org>
Fixes: 0185604c
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 16830985
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment