902636
From 4543a3c19816bd07f27eb900f20ae609df03703c Mon Sep 17 00:00:00 2001
016a62
From: Eduardo Habkost <ehabkost@redhat.com>
902636
Date: Mon, 23 Dec 2019 21:10:31 +0000
902636
Subject: [PATCH 1/2] i386: Remove cpu64-rhel6 CPU model
016a62
016a62
RH-Author: Eduardo Habkost <ehabkost@redhat.com>
902636
Message-id: <20191223211031.26503-1-ehabkost@redhat.com>
902636
Patchwork-id: 93213
902636
O-Subject: [RHEL-AV-8.2.0 qemu-kvm PATCH] i386: Remove cpu64-rhel6 CPU model
902636
Bugzilla: 1741345
902636
RH-Acked-by: Daniel P. Berrange <berrange@redhat.com>
016a62
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
016a62
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
016a62
902636
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1741345
902636
BRANCH: rhel-av-8.2.0
016a62
Upstream: not applicable
902636
Brew: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=25525975
016a62
016a62
We don't provide rhel6 machine types anymore, so we don't need to
016a62
provide compatibility with RHEl6.  cpu64-rhel6 was documented as
016a62
deprecated and scheduled for removal in 8.2, so now it's time to
016a62
remove it.
016a62
016a62
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
016a62
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
016a62
---
016a62
 target/i386/cpu.c | 26 +-------------------------
016a62
 1 file changed, 1 insertion(+), 25 deletions(-)
016a62
016a62
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
902636
index 790db77..6dce6f2 100644
016a62
--- a/target/i386/cpu.c
016a62
+++ b/target/i386/cpu.c
902636
@@ -1829,12 +1829,7 @@ static CPUCaches epyc_cache_info = {
016a62
 
016a62
 static X86CPUDefinition builtin_x86_defs[] = {
016a62
     {
016a62
-        /* qemu64 is the default CPU model for all *-rhel7.* machine-types.
016a62
-         * The default on RHEL-6 was cpu64-rhel6.
016a62
-         * libvirt assumes that qemu64 is the default for _all_ machine-types,
016a62
-         * so we should try to keep qemu64 and cpu64-rhel6 as similar as
016a62
-         * possible.
016a62
-         */
016a62
+        /* qemu64 is the default CPU model for all machine-types */
016a62
         .name = "qemu64",
016a62
         .level = 0xd,
016a62
         .vendor = CPUID_VENDOR_AMD,
902636
@@ -2135,25 +2130,6 @@ static X86CPUDefinition builtin_x86_defs[] = {
016a62
         .model_id = "Intel(R) Atom(TM) CPU N270   @ 1.60GHz",
016a62
     },
016a62
     {
016a62
-        .name = "cpu64-rhel6",
016a62
-        .level = 4,
016a62
-        .vendor = CPUID_VENDOR_AMD,
016a62
-        .family = 6,
016a62
-        .model = 13,
016a62
-        .stepping = 3,
016a62
-        .features[FEAT_1_EDX] = CPUID_SSE2 | CPUID_SSE | CPUID_FXSR |
016a62
-             CPUID_MMX | CPUID_CLFLUSH | CPUID_PSE36 | CPUID_PAT | CPUID_CMOV |
016a62
-             CPUID_MCA | CPUID_PGE | CPUID_MTRR | CPUID_SEP | CPUID_APIC |
016a62
-             CPUID_CX8 | CPUID_MCE | CPUID_PAE | CPUID_MSR | CPUID_TSC |
016a62
-             CPUID_PSE | CPUID_DE | CPUID_FP87,
016a62
-        .features[FEAT_1_ECX] = CPUID_EXT_CX16 | CPUID_EXT_SSE3,
016a62
-        .features[FEAT_8000_0001_EDX] = CPUID_EXT2_LM | CPUID_EXT2_NX | CPUID_EXT2_SYSCALL,
016a62
-        .features[FEAT_8000_0001_ECX] = CPUID_EXT3_SSE4A | CPUID_EXT3_ABM |
016a62
-             CPUID_EXT3_SVM | CPUID_EXT3_LAHF_LM,
016a62
-        .xlevel = 0x8000000A,
016a62
-        .model_id = "QEMU Virtual CPU version (cpu64-rhel6)",
016a62
-    },
016a62
-    {
016a62
         .name = "Conroe",
016a62
         .level = 10,
016a62
         .vendor = CPUID_VENDOR_INTEL,
016a62
-- 
016a62
1.8.3.1
016a62