]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: fix lapic.timer_mode on restore
authorRadim Krčmář <rkrcmar@redhat.com>
Fri, 5 Jun 2015 18:57:41 +0000 (20:57 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 16 Jun 2015 04:01:10 +0000 (01:01 -0300)
commit0050afdfab761225f018fd8ca20d7ed01bac36ed
tree20fe5cec8209421ed53c1e74b905e94e1057c6b9
parent88c7f971858b0c9b873e363fc1f9280262becfbd
KVM: x86: fix lapic.timer_mode on restore

lapic.timer_mode was not properly initialized after migration, which
broke few useful things, like login, by making every sleep eternal.

Fix this by calling apic_update_lvtt in kvm_apic_post_state_restore.

There are other slowpaths that update lvtt, so this patch makes sure
something similar doesn't happen again by calling apic_update_lvtt
after every modification.

Cc: stable@vger.kernel.org
Fixes: c8b4fa5b3719 ("KVM: x86: optimize some accesses to LVTT and SPIV")
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/lapic.c