Newer hardware may support FEAT_SME. Xen doesn't have any knowledge but
it will still expose the feature to the VM. If the OS is trying to use
SME, then it will crash.
Solve by hiding FEAT_SME.
Signed-off-by: Julien Grall <julien@xen.org>
Acked-by: Michal Orzel <michal.orzel@amd.com>
Reviewed-by: Ayan Kumar Halder <ayan.kumar.halder@amd.com>
domain_cpuinfo.pfr64.sve = 0;
domain_cpuinfo.zfr64.bits[0] = 0;
+ /* Hide SMT support as Xen does not support it */
+ domain_cpuinfo.pfr64.sme = 0;
+
/* Hide MTE support as Xen does not support it */
domain_cpuinfo.pfr64.mte = 0;
unsigned long mte:4;
unsigned long ras_frac:4;
unsigned long mpam_frac:4;
- unsigned long __res1:44;
+ unsigned long __res1:4;
+ unsigned long sme:4;
+ unsigned long __res2:36;
};
} pfr64;