The thermal/performance leaf was previously hidden from HVM guests, but fully
visible to PV guests. Most of the leaf refers to MSR availability, and there
is nothing an unprivileged PV guest can do with the information, so hide the
leaf entirely.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
p->basic.apic_id = 0; /* Dynamic. */
p->basic.raw[0x5] = EMPTY_LEAF; /* MONITOR not exposed to guests. */
+ p->basic.raw[0x6] = EMPTY_LEAF; /* Therm/Power not exposed to guests. */
p->basic.raw[0x8] = EMPTY_LEAF;
p->basic.raw[0xc] = EMPTY_LEAF;
*res = EMPTY_LEAF;
break;
- case 0x0 ... 0x5:
- case 0x7 ... 0x9:
+ case 0x0 ... 0x9:
case 0xc ... XSTATE_CPUID:
case 0x80000000 ... 0xffffffff:
ASSERT_UNREACHABLE();
res->a = (res->a & ~0xff) | 3;
break;
- case 0x0 ... 0x5:
- case 0x7 ... 0x9:
+ case 0x0 ... 0x9:
case 0xc ... XSTATE_CPUID:
case 0x80000000 ... 0xffffffff:
ASSERT_UNREACHABLE();
goto legacy;
case 0x0 ... 0x3:
- case 0x5:
+ case 0x5 ... 0x6:
case 0x8 ... 0x9:
case 0xc:
*res = p->basic.raw[leaf];