From: Glauber Costa Date: Mon, 17 Mar 2008 19:08:40 +0000 (-0300) Subject: x86: KVM guest: disable clock before rebooting. X-Git-Tag: v2.6.26-rc1~1028^2~81 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e977aa12dd4f80688b1f243762212e75c6d7fe8;p=pandora-kernel.git 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 Signed-off-by: Avi Kivity --- Reading git-diff-tree failed