]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: x86: only channel 0 of the i8254 is linked to the HPET
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 7 Jan 2016 12:50:38 +0000 (13:50 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 7 Jan 2016 12:50:38 +0000 (13:50 +0100)
commit78e8bcb7725e5587097f9f1667d02719933c2019
tree7e294ba757bc94d07bddeafb4eafdb4aa562bd31
parent1cbd66d2efb1bdd434a3b98d3a232f27b93e84e7
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: P J P <pjp@fedoraproject.org>
Fixes: 7c9670a5d10bceda4e54663dbd89d5b0042f26ad
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/i8254.c
arch/x86/kvm/x86.c