x86, cpu: Convert AMD Erratum 383
Convert the AMD erratum 383 testing code to the bug infrastructure. This allows keeping the AMD-specific erratum testing machinery private to amd.c and not export symbols to modules needlessly. Signed-off-by: Borislav Petkov <bp@suse.de> Link: http://lkml.kernel.org/r/1363788448-31325-6-git-send-email-bp@alien8.de Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:

committed by
H. Peter Anvin

parent
c5b41a6750
commit
e6ee94d58d
@@ -555,7 +555,7 @@ static void svm_init_erratum_383(void)
|
||||
int err;
|
||||
u64 val;
|
||||
|
||||
if (!cpu_has_amd_erratum(amd_erratum_383))
|
||||
if (!static_cpu_has_bug(X86_BUG_AMD_TLB_MMATCH))
|
||||
return;
|
||||
|
||||
/* Use _safe variants to not break nested virtualization */
|
||||
|
Reference in New Issue
Block a user