HV: cpuid: Disable Intel RDT for guest OS

Now the Intel RDT emulation is working in progress. So disable it
for temporary solution to avoid guest OS running with incorrect RDT
configuration.

Signed-off-by: Shuo Liu <shuo.a.liu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Shuo Liu
2018-07-19 11:01:27 +08:00
committed by lijinxia
parent 9ac1be2c5e
commit 38b9b7d37c
2 changed files with 68 additions and 62 deletions

View File

@@ -98,7 +98,9 @@ static void init_vcpuid_entry(__unused struct vm *vm,
&entry->eax, &entry->ebx,
&entry->ecx, &entry->edx);
/* mask invpcid */
entry->ebx &= ~CPUID_EBX_INVPCID;
entry->ebx &= ~(CPUID_EBX_INVPCID |
CPUID_EBX_PQM |
CPUID_EBX_PQE);
} else {
entry->eax = 0U;
entry->ebx = 0U;