|
@@ -27,6 +27,7 @@
|
|
|
#include <asm/pgtable.h>
|
|
|
#include <asm/set_memory.h>
|
|
|
#include <asm/intel-family.h>
|
|
|
+#include <asm/hypervisor.h>
|
|
|
|
|
|
static void __init spectre_v2_select_mitigation(void);
|
|
|
static void __init ssb_select_mitigation(void);
|
|
@@ -664,6 +665,9 @@ static ssize_t cpu_show_common(struct device *dev, struct device_attribute *attr
|
|
|
if (boot_cpu_has(X86_FEATURE_PTI))
|
|
|
return sprintf(buf, "Mitigation: PTI\n");
|
|
|
|
|
|
+ if (hypervisor_is_type(X86_HYPER_XEN_PV))
|
|
|
+ return sprintf(buf, "Unknown (XEN PV detected, hypervisor mitigation required)\n");
|
|
|
+
|
|
|
break;
|
|
|
|
|
|
case X86_BUG_SPECTRE_V1:
|