diff options
author | Florian Westphal <fw@strlen.de> | 2012-08-15 16:00:40 +0200 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-08-15 15:31:24 -0300 |
commit | 8fbe6a541f50eeec5e3e49bd92db23ade9496673 (patch) | |
tree | 53f9e664c37a4ce4aabd7d9025485307c97f8762 /arch/x86/kernel/kvm.c | |
parent | 28a6fdabb3ea775d3d707afd9d2728b3ced2c34d (diff) | |
download | kernel_goldelico_gta04-8fbe6a541f50eeec5e3e49bd92db23ade9496673.zip kernel_goldelico_gta04-8fbe6a541f50eeec5e3e49bd92db23ade9496673.tar.gz kernel_goldelico_gta04-8fbe6a541f50eeec5e3e49bd92db23ade9496673.tar.bz2 |
KVM guest: disable stealtime on reboot to avoid mem corruption
else, host continues to update stealtime after reboot,
which can corrupt e.g. initramfs area.
found when tracking down initramfs unpack error on initial reboot
(with qemu-kvm -smp 2, no problem with single-core).
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kernel/kvm.c')
-rw-r--r-- | arch/x86/kernel/kvm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c index c1d61ee..1596cc8 100644 --- a/arch/x86/kernel/kvm.c +++ b/arch/x86/kernel/kvm.c @@ -354,6 +354,7 @@ static void kvm_pv_guest_cpu_reboot(void *unused) if (kvm_para_has_feature(KVM_FEATURE_PV_EOI)) wrmsrl(MSR_KVM_PV_EOI_EN, 0); kvm_pv_disable_apf(); + kvm_disable_steal_time(); } static int kvm_pv_reboot_notify(struct notifier_block *nb, |