Glauber Costa 1e977aa12d 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>
2008-04-27 12:00:31 +03:00
..
2008-04-26 17:35:47 +02:00
2008-04-25 19:54:07 +02:00
2008-04-17 17:41:19 +02:00
2008-04-26 17:35:47 +02:00
2008-04-26 17:35:47 +02:00
2008-04-17 17:40:51 +02:00
2008-04-19 19:10:28 -07:00
2008-04-19 19:19:54 +02:00
2008-04-19 19:19:54 +02:00
2008-04-24 23:57:33 +02:00
2008-04-17 17:41:13 +02:00
2008-04-17 17:41:36 +02:00
2008-04-19 19:19:58 +02:00
2008-04-17 17:40:49 +02:00
2008-04-19 19:19:54 +02:00
2008-04-17 17:41:37 +02:00
2008-04-26 17:35:47 +02:00
2008-04-26 17:35:47 +02:00
2008-04-26 17:35:48 +02:00
2008-03-26 22:23:40 +01:00
2008-04-17 17:40:56 +02:00
2008-04-26 17:35:46 +02:00
2008-04-19 19:19:54 +02:00
2008-04-27 12:00:28 +03:00
2008-04-26 17:35:47 +02:00
2008-04-19 19:10:28 -07:00
2008-04-19 19:19:58 +02:00
2008-04-19 19:19:56 +02:00
2008-04-19 19:19:57 +02:00
2008-04-19 19:19:56 +02:00
2008-04-24 23:15:44 +02:00
2008-04-24 23:15:44 +02:00
2008-04-19 19:19:55 +02:00
2008-04-19 19:19:55 +02:00
2008-04-24 23:15:43 +02:00
2008-04-26 17:35:47 +02:00
2008-04-17 17:41:30 +02:00
2008-04-17 17:40:55 +02:00
2008-04-17 17:40:55 +02:00
2008-04-26 17:35:47 +02:00
2008-04-17 17:40:56 +02:00
2008-04-17 17:41:37 +02:00
2008-04-19 19:19:55 +02:00
2008-04-19 19:19:55 +02:00
2008-04-24 23:57:31 +02:00
2008-04-17 17:41:29 +02:00
2008-04-24 23:15:44 +02:00