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)
commit84e0cefa8ddd5d5018d3b582e1e90585ed551757
tree4faa04c04b8fc555584cc806acd7e31c4d879d42
parent9ed049c3b6230b68985da31f8243d4bec95e0b3a
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