Skip to content

Commit 189e8d4

Browse files
aeglhansendc
authored andcommitted
x86/virt/tdx: Switch to new Intel CPU model defines
New CPU #defines encode vendor and family as well as model. Signed-off-by: Tony Luck <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Link: https://lore.kernel.org/all/20240520224620.9480-31-tony.luck%40intel.com
1 parent ac6bee4 commit 189e8d4

File tree

1 file changed

+4
-4
lines changed
  • arch/x86/virt/vmx/tdx

1 file changed

+4
-4
lines changed

arch/x86/virt/vmx/tdx/tdx.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include <asm/msr.h>
3434
#include <asm/cpufeature.h>
3535
#include <asm/tdx.h>
36-
#include <asm/intel-family.h>
36+
#include <asm/cpu_device_id.h>
3737
#include <asm/processor.h>
3838
#include <asm/mce.h>
3939
#include "tdx.h"
@@ -1426,9 +1426,9 @@ static void __init check_tdx_erratum(void)
14261426
* private memory poisons that memory, and a subsequent read of
14271427
* that memory triggers #MC.
14281428
*/
1429-
switch (boot_cpu_data.x86_model) {
1430-
case INTEL_FAM6_SAPPHIRERAPIDS_X:
1431-
case INTEL_FAM6_EMERALDRAPIDS_X:
1429+
switch (boot_cpu_data.x86_vfm) {
1430+
case INTEL_SAPPHIRERAPIDS_X:
1431+
case INTEL_EMERALDRAPIDS_X:
14321432
setup_force_cpu_bug(X86_BUG_TDX_PW_MCE);
14331433
}
14341434
}

0 commit comments

Comments
 (0)