yeahuh / rpms / qemu-kvm

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