x86, cpu, amd: Fix WC+ workaround for older virtual hosts
authorBorislav Petkov <bp@suse.de>
Tue, 19 Feb 2013 18:33:12 +0000 (19:33 +0100)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 19 Feb 2013 18:44:00 +0000 (10:44 -0800)
commit52d3d06e706bdde3d6c5c386deb065c3b4c51618
treebc9ef29b1ea13a0a7f601379e9041715e9637cd2
parentf0322bd341fd63261527bf84afd3272bcc2e8dd3
x86, cpu, amd: Fix WC+ workaround for older virtual hosts

The WC+ workaround for F10h introduces a new MSR and kvm host #GPs
on accesses to unknown MSRs if paravirt is not compiled in. Use the
exception-handling MSR accessors so as not to break 3.8 and later guests
booting on older hosts.

Remove a redundant family check while at it.

Cc: Gleb Natapov <gleb@redhat.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/1361298793-31834-1-git-send-email-bp@alien8.de
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/cpu/amd.c
This page took 0.036572 seconds and 5 git commands to generate.