]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Fix guest kernel crash on MSR_K7_CLK_CTL
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 1 Sep 2010 09:42:04 +0000 (11:42 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:51:55 +0000 (10:51 +0200)
commitfaa95b1d99f4c103fda1b63c7c5a3ca958a96ba0
tree4faa04c04b8fc555584cc806acd7e31c4d879d42
parent78f933e1bcf6891e647e289cf897b4f647106a0d
KVM: Fix guest kernel crash on MSR_K7_CLK_CTL

MSR_K7_CLK_CTL is a no longer documented MSR, which is only relevant
on said old AMD CPU models. This change returns the expected value,
which the Linux kernel is expecting to avoid writing back the MSR,
plus it ignores all writes to the MSR.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c