i386: Add PKU on Skylake-Server CPU model

As the release document ref below link (page 13):
https://software.intel.com/sites/default/files/managed/c5/15/\
architecture-instruction-set-extensions-programming-reference.pdf

PKU is supported in Skylake Server (Only Server) and later, and
on Intel(R) Xeon(R) Processor Scalable Family. So PKU is supposed
to be in Skylake-Server CPU model. And PKU's CPUID has been
exposed to QEMU. But PKU can't be find in Skylake-Server CPU
model in the code. So this patch will fix this issue in
Skylake-Server CPU model.

Backports commit 09b9ee643f90ef95e30e594df2a3c83ccaf75b1f from qemu
This commit is contained in:
Tao Xu 2018-11-11 08:09:45 -05:00 committed by Lioncash
parent b004139ea1
commit 0aaa7f7ce9
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -2910,7 +2910,7 @@ static X86CPUDefinition builtin_x86_defs[] = {
CPUID_7_0_EBX_AVX512BW | CPUID_7_0_EBX_AVX512CD |
CPUID_7_0_EBX_AVX512VL,
// FEAT_7_0_ECX
0,
CPUID_7_0_ECX_PKU,
// FEAT_7_0_EDX
0,
// FEAT_8000_0001_EDX
@ -2979,7 +2979,7 @@ static X86CPUDefinition builtin_x86_defs[] = {
CPUID_7_0_EBX_AVX512BW | CPUID_7_0_EBX_AVX512CD |
CPUID_7_0_EBX_AVX512VL,
// FEAT_7_0_ECX
0,
CPUID_7_0_ECX_PKU,
// FEAT_7_0_EDX
CPUID_7_0_EDX_SPEC_CTRL,
// FEAT_8000_0001_EDX