From: Radim Krčmář Date: Fri, 5 Jun 2015 18:57:41 +0000 (+0200) Subject: KVM: x86: fix lapic.timer_mode on restore X-Git-Tag: omap-for-v4.2/fixes-rc1^2~193^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6ac069532218027f2991cba01d7a72a200688b0;p=pandora-kernel.git 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: f30ebc312ca9 ("KVM: x86: optimize some accesses to LVTT and SPIV") Signed-off-by: Radim Krčmář Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed