]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/i386: fix model number and add missing features for Icelake-Server CPU model
authorChenyi Qiang <chenyi.qiang@intel.com>
Tue, 14 Jul 2020 08:41:47 +0000 (16:41 +0800)
committerEduardo Habkost <ehabkost@redhat.com>
Thu, 16 Jul 2020 15:05:03 +0000 (11:05 -0400)
Add the missing features(sha_ni, avx512ifma, rdpid, fsrm,
vmx-rdseed-exit, vmx-pml, vmx-eptp-switching) and change the model
number to 106 in the Icelake-Server-v4 CPU model.

Signed-off-by: Chenyi Qiang <chenyi.qiang@intel.com>
Message-Id: <20200714084148.26690-3-chenyi.qiang@intel.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target/i386/cpu.c

index 3885826bc47883472b1f5c5be2f26bcd96b65961..132ef9042145a34be053dc854ec407e87673ae0f 100644 (file)
@@ -3512,6 +3512,20 @@ static X86CPUDefinition builtin_x86_defs[] = {
                     { /* end of list */ }
                 },
             },
+            {
+                .version = 4,
+                .props = (PropValue[]) {
+                    { "sha-ni", "on" },
+                    { "avx512ifma", "on" },
+                    { "rdpid", "on" },
+                    { "fsrm", "on" },
+                    { "vmx-rdseed-exit", "on" },
+                    { "vmx-pml", "on" },
+                    { "vmx-eptp-switching", "on" },
+                    { "model", "106" },
+                    { /* end of list */ }
+                },
+            },
             { /* end of list */ }
         }
     },