• Radim Krčmář's avatar
    KVM: x86: fix lapic.timer_mode on restore · b6ac0695
    Radim Krčmář authored
    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: f30ebc31 ("KVM: x86: optimize some accesses to LVTT and SPIV")
    Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
    Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
    b6ac0695
lapic.c 50.9 KB