aboutsummaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorGravatar Vitaly Kuznetsov <vkuznets@redhat.com> 2021-04-14 14:35:42 +0200
committerGravatar Paolo Bonzini <pbonzini@redhat.com> 2021-05-07 06:06:10 -0400
commitc02027b5742b5aa804ef08a4a9db433295533046 (patch)
treea10fa41fc89e96d8c4f8082631be28981e056ad7 /mm
parentx86/kvm: Teardown PV features on boot CPU as well (diff)
downloadlinux-c02027b5742b.tar.gz
linux-c02027b5742b.tar.bz2
linux-c02027b5742b.zip
x86/kvm: Disable kvmclock on all CPUs on shutdown
Currenly, we disable kvmclock from machine_shutdown() hook and this only happens for boot CPU. We need to disable it for all CPUs to guard against memory corruption e.g. on restore from hibernate. Note, writing '0' to kvmclock MSR doesn't clear memory location, it just prevents hypervisor from updating the location so for the short while after write and while CPU is still alive, the clock remains usable and correct so we don't need to switch to some other clocksource. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Message-Id: <20210414123544.1060604-4-vkuznets@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions