]> git.baikalelectronics.ru Git - kernel.git/commit
x86: KVM guest: disable clock before rebooting.
authorGlauber Costa <gcosta@redhat.com>
Mon, 17 Mar 2008 19:08:40 +0000 (16:08 -0300)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Apr 2008 09:00:31 +0000 (12:00 +0300)
commit6cc610b73ed7de37561f1df6d2a5c60941e3d0c3
tree572941849e9d63c0de7233d2352d346dc097be49
parentb6e76389cdf42f96fae0f12e356644c4b25adab2
x86: KVM guest: disable clock before rebooting.

This patch writes 0 (actually, what really matters is that the
LSB is cleared) to the system time msr before shutting down
the machine for kexec.

Without it, we can have a random memory location being written
when the guest comes back

It overrides the functions shutdown, used in the path of kernel_kexec() (sys.c)
and crash_shutdown, used in the path of crash_kexec() (kexec.c)

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kernel/kvmclock.c