|
@@ -901,4 +901,12 @@ void __init setup_rfi_flush(enum l1d_flush_type types, bool enable)
|
|
|
if (!no_rfi_flush)
|
|
|
rfi_flush_enable(enable);
|
|
|
}
|
|
|
+
|
|
|
+ssize_t cpu_show_meltdown(struct device *dev, struct device_attribute *attr, char *buf)
|
|
|
+{
|
|
|
+ if (rfi_flush)
|
|
|
+ return sprintf(buf, "Mitigation: RFI Flush\n");
|
|
|
+
|
|
|
+ return sprintf(buf, "Vulnerable\n");
|
|
|
+}
|
|
|
#endif /* CONFIG_PPC_BOOK3S_64 */
|