Very very partial backport from
aa8c6248f8c75 where
there is a check to see if this is an Xen PV guest - and
if so disable it.
The reason is that the PV ABI would require a major
overhaul to be Meltdown resistent.
Instead there are mitigations (PV in HVM) which are far more
suitable.
Orabug:
27333760
CVE: CVE-2017-5754
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
char arg[5];
int ret;
+ if (xen_pv_domain())
+ goto disable;
+
ret = cmdline_find_option(boot_command_line, "pti", arg, sizeof(arg));
if (ret > 0) {
if (!strncmp(arg, "on", 2))