aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.c
diff options
context:
space:
mode:
authorHans Rosenfeld <hans.rosenfeld@amd.com>2010-07-28 13:09:32 -0400
committerH. Peter Anvin <hpa@linux.intel.com>2010-07-28 16:12:31 -0400
commit1be85a6d93f4207d8c2c6238c4a96895e28cefba (patch)
tree8b55cf0390909e52982f6334347216699cfee189 /arch/x86/kvm/svm.c
parent9d8888c2a214aece2494a49e699a097c2ba9498b (diff)
x86, cpu: Use AMD errata checking framework for erratum 383
Use the AMD errata checking framework instead of open-coding the test. Signed-off-by: Hans Rosenfeld <hans.rosenfeld@amd.com> LKML-Reference: <1280336972-865982-3-git-send-email-hans.rosenfeld@amd.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r--arch/x86/kvm/svm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index ce438e0fdd26..03b534b34ee9 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -383,8 +383,7 @@ static void svm_init_erratum_383(void)
383 int err; 383 int err;
384 u64 val; 384 u64 val;
385 385
386 /* Only Fam10h is affected */ 386 if (!cpu_has_amd_erratum(amd_erratum_383))
387 if (boot_cpu_data.x86 != 0x10)
388 return; 387 return;
389 388
390 /* Use _safe variants to not break nested virtualization */ 389 /* Use _safe variants to not break nested virtualization */