]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: allow bit 10 to be cleared in MSR_IA32_MC4_CTL
authorAndre Przywara <andre.przywara@amd.com>
Wed, 24 Mar 2010 16:46:42 +0000 (17:46 +0100)
committerAvi Kivity <avi@redhat.com>
Tue, 20 Apr 2010 09:59:31 +0000 (12:59 +0300)
commit5d38ce2760f51b0b242378ccb45eb2db9652c7fe
tree97ff3b4ea1e6f0f17a3ebe1cdd57f3c0682a789e
parent8ef45b32f9b43ae9e29394ce42ec296cb072677d
KVM: allow bit 10 to be cleared in MSR_IA32_MC4_CTL

There is a quirk for AMD K8 CPUs in many Linux kernels (see
arch/x86/kernel/cpu/mcheck/mce.c:__mcheck_cpu_apply_quirks()) that
clears bit 10 in that MCE related MSR. KVM can only cope with all
zeros or all ones, so it will inject a #GP into the guest, which
will let it panic.
So lets add a quirk to the quirk and ignore this single cleared bit.
This fixes -cpu kvm64 on all machines and -cpu host on K8 machines
with some guest Linux kernels.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c