26ba25
From 88b450562f14b4b246f88c31d0bdd48e47f3afce Mon Sep 17 00:00:00 2001
26ba25
From: Miroslav Rezanina <mrezanin@redhat.com>
26ba25
Date: Thu, 26 Apr 2018 02:54:03 +0000
26ba25
Subject: Remove rhel6* machine types
26ba25
26ba25
As we do not support RHEL 6 compatibility on RHEL 8 we remove rhel6*
26ba25
machine types.
26ba25
26ba25
Types were originally added for BZ 983991 (Provide RHEL-6 machine types) and were
26ba25
updated multipletimes during the RHEL 7 development to keep the compatibility. As
26ba25
all machine types changes are located in pc_piix.c file there are only tests to
26ba25
be fixed beside this file (and one comment removal in pc.h).
26ba25
26ba25
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
26ba25
---
26ba25
 hw/i386/pc_piix.c    | 696 ---------------------------------------------------
26ba25
 include/hw/i386/pc.h |   2 -
26ba25
 tests/qom-test.c     |   4 +-
26ba25
 3 files changed, 1 insertion(+), 701 deletions(-)
26ba25
26ba25
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
26ba25
index 0ff1e2d..229d551 100644
26ba25
--- a/hw/i386/pc_piix.c
26ba25
+++ b/hw/i386/pc_piix.c
26ba25
@@ -1324,699 +1324,3 @@ static void pc_machine_rhel700_options(MachineClass *m)
26ba25
 
26ba25
 DEFINE_PC_MACHINE(rhel700, "pc-i440fx-rhel7.0.0", pc_init_rhel700,
26ba25
                   pc_machine_rhel700_options);
26ba25
-
26ba25
-#define PC_RHEL6_6_COMPAT \
26ba25
-        {\
26ba25
-            .driver   = "scsi-hd",\
26ba25
-            .property = "discard_granularity",\
26ba25
-            .value    = stringify(0),\
26ba25
-        },{\
26ba25
-            .driver   = "scsi-cd",\
26ba25
-            .property = "discard_granularity",\
26ba25
-            .value    = stringify(0),\
26ba25
-        },{\
26ba25
-            .driver   = "scsi-disk",\
26ba25
-            .property = "discard_granularity",\
26ba25
-            .value    = stringify(0),\
26ba25
-        },{\
26ba25
-            .driver   = "ide-hd",\
26ba25
-            .property = "discard_granularity",\
26ba25
-            .value    = stringify(0),\
26ba25
-        },{\
26ba25
-            .driver   = "ide-cd",\
26ba25
-            .property = "discard_granularity",\
26ba25
-            .value    = stringify(0),\
26ba25
-        },{\
26ba25
-            .driver   = "ide-drive",\
26ba25
-            .property = "discard_granularity",\
26ba25
-            .value    = stringify(0),\
26ba25
-        },{\
26ba25
-            .driver   = "virtio-blk-pci",\
26ba25
-            .property = "discard_granularity",\
26ba25
-            .value    = stringify(0),\
26ba25
-        },{\
26ba25
-            .driver   = "virtio-serial-pci",\
26ba25
-            .property = "vectors",\
26ba25
-            /* DEV_NVECTORS_UNSPECIFIED as a uint32_t string */\
26ba25
-            .value    = stringify(0xFFFFFFFF),\
26ba25
-        },{\
26ba25
-            .driver   = "486-" TYPE_X86_CPU,\
26ba25
-            .property = "model",\
26ba25
-            .value    = stringify(0),\
26ba25
-        },{\
26ba25
-            .driver   = "usb-tablet",\
26ba25
-            .property = "usb_version",\
26ba25
-            .value    = stringify(1),\
26ba25
-        },{\
26ba25
-            .driver   = "virtio-net-pci",\
26ba25
-            .property = "mq",\
26ba25
-            .value    = "off",\
26ba25
-        },{\
26ba25
-            .driver   = "VGA",\
26ba25
-            .property = "mmio",\
26ba25
-            .value    = "off",\
26ba25
-        },{\
26ba25
-            .driver   = "virtio-blk-pci",\
26ba25
-            .property = "config-wce",\
26ba25
-            .value    = "off",\
26ba25
-        },{\
26ba25
-            .driver   = TYPE_ISA_FDC,\
26ba25
-            .property = "check_media_rate",\
26ba25
-            .value    = "off",\
26ba25
-        },{\
26ba25
-            .driver   = "virtio-balloon-pci",\
26ba25
-            .property = "class",\
26ba25
-            .value    = stringify(PCI_CLASS_MEMORY_RAM),\
26ba25
-        },{\
26ba25
-            .driver   = TYPE_PCI_DEVICE,\
26ba25
-            .property = "command_serr_enable",\
26ba25
-            .value    = "off",\
26ba25
-        },{\
26ba25
-            .driver   = "AC97",\
26ba25
-            .property = "use_broken_id",\
26ba25
-            .value    = stringify(1),\
26ba25
-        },{\
26ba25
-            .driver   = "intel-hda",\
26ba25
-            .property = "msi",\
26ba25
-            .value    = "off",\
26ba25
-        },{\
26ba25
-            .driver = "qemu32-" TYPE_X86_CPU,\
26ba25
-            .property = "min-xlevel",\
26ba25
-            .value = stringify(0),\
26ba25
-        },{\
26ba25
-            .driver = "486-" TYPE_X86_CPU,\
26ba25
-            .property = "min-level",\
26ba25
-            .value = stringify(0),\
26ba25
-        },{\
26ba25
-            .driver   = "qemu32-" TYPE_X86_CPU,\
26ba25
-            .property = "model",\
26ba25
-            .value    = stringify(3),\
26ba25
-        },{\
26ba25
-            .driver   = "usb-ccid",\
26ba25
-            .property = "serial",\
26ba25
-            .value    = "1",\
26ba25
-        },{\
26ba25
-            .driver   = "virtio-net-pci",\
26ba25
-            .property = "any_layout",\
26ba25
-            .value    = "off",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "pentium" "-" TYPE_X86_CPU,\
26ba25
-            .property = "apic",\
26ba25
-            .value = "off",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "pentium2" "-" TYPE_X86_CPU,\
26ba25
-            .property = "apic",\
26ba25
-            .value = "off",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "pentium3" "-" TYPE_X86_CPU,\
26ba25
-            .property = "apic",\
26ba25
-            .value = "off",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Conroe" "-" TYPE_X86_CPU,\
26ba25
-            .property = "x2apic",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Penryn" "-" TYPE_X86_CPU,\
26ba25
-            .property = "x2apic",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Nehalem" "-" TYPE_X86_CPU,\
26ba25
-            .property = "x2apic",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        { /* PC_RHEL6_6_COMPAT (copied from the entry above) */ \
26ba25
-            .driver = "Nehalem-IBRS" "-" TYPE_X86_CPU,\
26ba25
-            .property = "x2apic",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Westmere" "-" TYPE_X86_CPU,\
26ba25
-            .property = "x2apic",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        { /* PC_RHEL6_6_COMPAT (copied from the entry above) */ \
26ba25
-            .driver = "Westmere-IBRS" "-" TYPE_X86_CPU,\
26ba25
-            .property = "x2apic",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Westmere" "-" TYPE_X86_CPU,\
26ba25
-            .property = "pclmulqdq",\
26ba25
-            .value = "off",\
26ba25
-        },\
26ba25
-        { /* PC_RHEL6_6_COMPAT (copied from the entry above) */ \
26ba25
-            .driver = "Westmere-IBRS" "-" TYPE_X86_CPU,\
26ba25
-            .property = "pclmulqdq",\
26ba25
-            .value = "off",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Westmere" "-" TYPE_X86_CPU,\
26ba25
-            .property = "fxsr",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        { /* PC_RHEL6_6_COMPAT (copied from the entry above) */ \
26ba25
-            .driver = "Westmere-IBRS" "-" TYPE_X86_CPU,\
26ba25
-            .property = "fxsr",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Westmere" "-" TYPE_X86_CPU,\
26ba25
-            .property = "mmx",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        { /* PC_RHEL6_6_COMPAT (copied from the entry above) */ \
26ba25
-            .driver = "Westmere-IBRS" "-" TYPE_X86_CPU,\
26ba25
-            .property = "mmx",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Westmere" "-" TYPE_X86_CPU,\
26ba25
-            .property = "pat",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        { /* PC_RHEL6_6_COMPAT (copied from the entry above) */ \
26ba25
-            .driver = "Westmere-IBRS" "-" TYPE_X86_CPU,\
26ba25
-            .property = "pat",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Westmere" "-" TYPE_X86_CPU,\
26ba25
-            .property = "cmov",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        { /* PC_RHEL6_6_COMPAT (copied from the entry above) */ \
26ba25
-            .driver = "Westmere-IBRS" "-" TYPE_X86_CPU,\
26ba25
-            .property = "cmov",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Westmere" "-" TYPE_X86_CPU,\
26ba25
-            .property = "pge",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        { /* PC_RHEL6_6_COMPAT (copied from the entry above) */ \
26ba25
-            .driver = "Westmere-IBRS" "-" TYPE_X86_CPU,\
26ba25
-            .property = "pge",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Westmere" "-" TYPE_X86_CPU,\
26ba25
-            .property = "apic",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        { /* PC_RHEL6_6_COMPAT (copied from the entry above) */ \
26ba25
-            .driver = "Westmere-IBRS" "-" TYPE_X86_CPU,\
26ba25
-            .property = "apic",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Westmere" "-" TYPE_X86_CPU,\
26ba25
-            .property = "cx8",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        { /* PC_RHEL6_6_COMPAT (copied from the entry above) */ \
26ba25
-            .driver = "Westmere-IBRS" "-" TYPE_X86_CPU,\
26ba25
-            .property = "cx8",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Westmere" "-" TYPE_X86_CPU,\
26ba25
-            .property = "mce",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        { /* PC_RHEL6_6_COMPAT (copied from the entry above) */ \
26ba25
-            .driver = "Westmere-IBRS" "-" TYPE_X86_CPU,\
26ba25
-            .property = "mce",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Westmere" "-" TYPE_X86_CPU,\
26ba25
-            .property = "pae",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        { /* PC_RHEL6_6_COMPAT (copied from the entry above) */ \
26ba25
-            .driver = "Westmere-IBRS" "-" TYPE_X86_CPU,\
26ba25
-            .property = "pae",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Westmere" "-" TYPE_X86_CPU,\
26ba25
-            .property = "msr",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        { /* PC_RHEL6_6_COMPAT (copied from the entry above) */ \
26ba25
-            .driver = "Westmere-IBRS" "-" TYPE_X86_CPU,\
26ba25
-            .property = "msr",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Westmere" "-" TYPE_X86_CPU,\
26ba25
-            .property = "tsc",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        { /* PC_RHEL6_6_COMPAT (copied from the entry above) */ \
26ba25
-            .driver = "Westmere-IBRS" "-" TYPE_X86_CPU,\
26ba25
-            .property = "tsc",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Westmere" "-" TYPE_X86_CPU,\
26ba25
-            .property = "pse",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        { /* PC_RHEL6_6_COMPAT (copied from the entry above) */ \
26ba25
-            .driver = "Westmere-IBRS" "-" TYPE_X86_CPU,\
26ba25
-            .property = "pse",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Westmere" "-" TYPE_X86_CPU,\
26ba25
-            .property = "de",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        { /* PC_RHEL6_6_COMPAT (copied from the entry above) */ \
26ba25
-            .driver = "Westmere-IBRS" "-" TYPE_X86_CPU,\
26ba25
-            .property = "de",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Westmere" "-" TYPE_X86_CPU,\
26ba25
-            .property = "fpu",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        { /* PC_RHEL6_6_COMPAT (copied from the entry above) */ \
26ba25
-            .driver = "Westmere-IBRS" "-" TYPE_X86_CPU,\
26ba25
-            .property = "fpu",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Broadwell" "-" TYPE_X86_CPU,\
26ba25
-            .property = "rdtscp",\
26ba25
-            .value = "off",\
26ba25
-        },\
26ba25
-        { /* PC_RHEL6_6_COMPAT (copied from the entry above) */ \
26ba25
-            .driver = "Broadwell-IBRS" "-" TYPE_X86_CPU,\
26ba25
-            .property = "rdtscp",\
26ba25
-            .value = "off",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Broadwell" "-" TYPE_X86_CPU,\
26ba25
-            .property = "smap",\
26ba25
-            .value = "off",\
26ba25
-        },\
26ba25
-        { /* PC_RHEL6_6_COMPAT (copied from the entry above) */ \
26ba25
-            .driver = "Broadwell-IBRS" "-" TYPE_X86_CPU,\
26ba25
-            .property = "smap",\
26ba25
-            .value = "off",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = TYPE_X86_CPU,\
26ba25
-            .property = "rdtscp",\
26ba25
-            .value = "off",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Opteron_G1" "-" TYPE_X86_CPU,\
26ba25
-            .property = "x2apic",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Opteron_G2" "-" TYPE_X86_CPU,\
26ba25
-            .property = "x2apic",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Opteron_G3" "-" TYPE_X86_CPU,\
26ba25
-            .property = "x2apic",\
26ba25
-            .value = "on",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Opteron_G4" "-" TYPE_X86_CPU,\
26ba25
-            .property = "x2apic",\
26ba25
-            .value = "off",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "Opteron_G5" "-" TYPE_X86_CPU,\
26ba25
-            .property = "x2apic",\
26ba25
-            .value = "off",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = TYPE_X86_CPU,\
26ba25
-            .property = "3dnow",\
26ba25
-            .value = "off",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = TYPE_X86_CPU,\
26ba25
-            .property = "3dnowext",\
26ba25
-            .value = "off",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "virtio-net-pci",\
26ba25
-            .property = "__com.redhat_rhel6_ctrl_guest_workaround", \
26ba25
-            .value = "on",\
26ba25
-        },
26ba25
-
26ba25
-static void pc_compat_rhel660(MachineState *machine)
26ba25
-{
26ba25
-    PCMachineState *pcms = PC_MACHINE(machine);
26ba25
-    PCMachineClass *pcmc = PC_MACHINE_GET_CLASS(pcms);
26ba25
-
26ba25
-    pc_compat_rhel700(machine);
26ba25
-    if (!machine->cpu_type) {
26ba25
-        machine->cpu_type = "cpu64-rhel6";
26ba25
-    }
26ba25
-
26ba25
-    x86_cpu_change_kvm_default("kvm-pv-unhalt", NULL);
26ba25
-
26ba25
-    pcmc->gigabyte_align = false;
26ba25
-    shadow_bios_after_incoming = true;
26ba25
-    ich9_uhci123_irqpin_override = true;
26ba25
-}
26ba25
-
26ba25
-static void pc_init_rhel660(MachineState *machine)
26ba25
-{
26ba25
-    pc_compat_rhel660(machine);
26ba25
-    pc_init1(machine, TYPE_I440FX_PCI_HOST_BRIDGE, \
26ba25
-             TYPE_I440FX_PCI_DEVICE);}
26ba25
-
26ba25
-static void pc_machine_rhel660_options(MachineClass *m)
26ba25
-{
26ba25
-    PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
26ba25
-    pc_machine_rhel700_options(m);
26ba25
-    m->family = "pc_piix_Z";
26ba25
-    m->desc = "RHEL 6.6.0 PC";
26ba25
-    m->rom_file_has_mr = false;
26ba25
-    m->default_machine_opts = "firmware=bios.bin";
26ba25
-    pcmc->has_acpi_build = false;
26ba25
-    SET_MACHINE_COMPAT(m, PC_RHEL6_6_COMPAT);
26ba25
-}
26ba25
-
26ba25
-DEFINE_PC_MACHINE(rhel660, "rhel6.6.0", pc_init_rhel660,
26ba25
-                  pc_machine_rhel660_options);
26ba25
-
26ba25
-#define PC_RHEL6_5_COMPAT \
26ba25
-        {\
26ba25
-            .driver   = TYPE_USB_DEVICE,\
26ba25
-            .property = "msos-desc",\
26ba25
-            .value    = "no",\
26ba25
-        },
26ba25
-
26ba25
-static void pc_compat_rhel650(MachineState *machine)
26ba25
-{
26ba25
-    pc_compat_rhel660(machine);
26ba25
-}
26ba25
-
26ba25
-static void pc_init_rhel650(MachineState *machine)
26ba25
-{
26ba25
-    pc_compat_rhel650(machine);
26ba25
-    pc_init1(machine, TYPE_I440FX_PCI_HOST_BRIDGE, \
26ba25
-             TYPE_I440FX_PCI_DEVICE);}
26ba25
-
26ba25
-static void pc_machine_rhel650_options(MachineClass *m)
26ba25
-{
26ba25
-    pc_machine_rhel660_options(m);
26ba25
-    m->family = "pc_piix_Z";
26ba25
-    m->desc = "RHEL 6.5.0 PC";
26ba25
-    SET_MACHINE_COMPAT(m, PC_RHEL6_5_COMPAT);
26ba25
-}
26ba25
-
26ba25
-DEFINE_PC_MACHINE(rhel650, "rhel6.5.0", pc_init_rhel650,
26ba25
-                  pc_machine_rhel650_options);
26ba25
-
26ba25
-#define PC_RHEL6_4_COMPAT \
26ba25
-        {\
26ba25
-            .driver   = "virtio-scsi-pci",\
26ba25
-            .property = "vectors",\
26ba25
-            .value    = stringify(2),\
26ba25
-        },{\
26ba25
-            .driver   = "hda-micro",\
26ba25
-            .property = "mixer",\
26ba25
-            .value    = "off",\
26ba25
-        },{\
26ba25
-            .driver   = "hda-duplex",\
26ba25
-            .property = "mixer",\
26ba25
-            .value    = "off",\
26ba25
-        },{\
26ba25
-            .driver   = "hda-output",\
26ba25
-            .property = "mixer",\
26ba25
-            .value    = "off",\
26ba25
-        },{\
26ba25
-            .driver   = "virtio-net-pci",\
26ba25
-            .property = "ctrl_mac_addr",\
26ba25
-            .value    = "off",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = TYPE_X86_CPU,\
26ba25
-            .property = "sep",\
26ba25
-            .value = "off",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "virtio-net-pci",\
26ba25
-            .property = "__com.redhat_rhel6_ctrl_guest_workaround", \
26ba25
-            .value = "off",\
26ba25
-        },
26ba25
-
26ba25
-static void pc_compat_rhel640(MachineState *machine)
26ba25
-{
26ba25
-    pc_compat_rhel650(machine);
26ba25
-}
26ba25
-
26ba25
-static void pc_init_rhel640(MachineState *machine)
26ba25
-{
26ba25
-    pc_compat_rhel640(machine);
26ba25
-    pc_init1(machine, TYPE_I440FX_PCI_HOST_BRIDGE, \
26ba25
-             TYPE_I440FX_PCI_DEVICE);}
26ba25
-
26ba25
-static void pc_machine_rhel640_options(MachineClass *m)
26ba25
-{
26ba25
-    pc_machine_rhel650_options(m);
26ba25
-    m->family = "pc_piix_Z";
26ba25
-    m->desc = "RHEL 6.4.0 PC";
26ba25
-    SET_MACHINE_COMPAT(m, PC_RHEL6_4_COMPAT);
26ba25
-}
26ba25
-
26ba25
-DEFINE_PC_MACHINE(rhel640, "rhel6.4.0", pc_init_rhel640,
26ba25
-                  pc_machine_rhel640_options);
26ba25
-
26ba25
-#define PC_RHEL6_3_COMPAT \
26ba25
-        {\
26ba25
-            .driver   = "Conroe-" TYPE_X86_CPU,\
26ba25
-            .property = "min-level",\
26ba25
-            .value    = stringify(2),\
26ba25
-        },{\
26ba25
-            .driver   = "Penryn-" TYPE_X86_CPU,\
26ba25
-            .property = "min-level",\
26ba25
-            .value    = stringify(2),\
26ba25
-        },{\
26ba25
-            .driver   = "Nehalem-" TYPE_X86_CPU,\
26ba25
-            .property = "min-level",\
26ba25
-            .value    = stringify(2),\
26ba25
-        },{\
26ba25
-            .driver   = "e1000",\
26ba25
-            .property = "autonegotiation",\
26ba25
-            .value    = "off",\
26ba25
-        },{\
26ba25
-            .driver   = "qxl",\
26ba25
-            .property = "revision",\
26ba25
-            .value    = stringify(3),\
26ba25
-        },{\
26ba25
-            .driver   = "qxl-vga",\
26ba25
-            .property = "revision",\
26ba25
-            .value    = stringify(3),\
26ba25
-        },{\
26ba25
-            .driver   = "virtio-scsi-pci",\
26ba25
-            .property = "hotplug",\
26ba25
-            .value    = "off",\
26ba25
-        },{\
26ba25
-            .driver   = "virtio-scsi-pci",\
26ba25
-            .property = "param_change",\
26ba25
-            .value    = "off",\
26ba25
-        },{\
26ba25
-            .driver = TYPE_X86_CPU,\
26ba25
-            .property = "pmu",\
26ba25
-            .value = "on",\
26ba25
-        },{\
26ba25
-            .driver   = "usb-hub",\
26ba25
-            .property = "serial",\
26ba25
-            .value    = "314159",\
26ba25
-        },{\
26ba25
-            .driver   = "usb-storage",\
26ba25
-            .property = "serial",\
26ba25
-            .value    = "1",\
26ba25
-        },\
26ba25
-        {\
26ba25
-            .driver = "SandyBridge" "-" TYPE_X86_CPU,\
26ba25
-            .property = "tsc-deadline",\
26ba25
-            .value = "off",\
26ba25
-        },\
26ba25
-        { /* PC_RHEL6_3_COMPAT (copied from the entry above) */ \
26ba25
-            .driver = "SandyBridge-IBRS" "-" TYPE_X86_CPU,\
26ba25
-            .property = "tsc-deadline",\
26ba25
-            .value = "off",\
26ba25
-        },
26ba25
-
26ba25
-static void pc_compat_rhel630(MachineState *machine)
26ba25
-{
26ba25
-    pc_compat_rhel640(machine);
26ba25
-    x86_cpu_change_kvm_default("kvm-pv-eoi",NULL);
26ba25
-    enable_compat_apic_id_mode();
26ba25
-}
26ba25
-
26ba25
-static void pc_init_rhel630(MachineState *machine)
26ba25
-{
26ba25
-    pc_compat_rhel630(machine);
26ba25
-    pc_init1(machine, TYPE_I440FX_PCI_HOST_BRIDGE, \
26ba25
-             TYPE_I440FX_PCI_DEVICE);}
26ba25
-
26ba25
-static void pc_machine_rhel630_options(MachineClass *m)
26ba25
-{
26ba25
-    pc_machine_rhel640_options(m);
26ba25
-    m->family = "pc_piix_Z";
26ba25
-    m->desc = "RHEL 6.3.0 PC";
26ba25
-    SET_MACHINE_COMPAT(m, PC_RHEL6_3_COMPAT);
26ba25
-}
26ba25
-
26ba25
-DEFINE_PC_MACHINE(rhel630, "rhel6.3.0", pc_init_rhel630,
26ba25
-                  pc_machine_rhel630_options);
26ba25
-
26ba25
-
26ba25
-#define PC_RHEL6_2_COMPAT \
26ba25
-        {\
26ba25
-            .driver = TYPE_X86_CPU,\
26ba25
-            .property = "pmu",\
26ba25
-            .value = "off",\
26ba25
-        },
26ba25
-
26ba25
-static void pc_compat_rhel620(MachineState *machine)
26ba25
-{
26ba25
-    pc_compat_rhel630(machine);
26ba25
-}
26ba25
-
26ba25
-static void pc_init_rhel620(MachineState *machine)
26ba25
-{
26ba25
-    pc_compat_rhel620(machine);
26ba25
-    pc_init1(machine, TYPE_I440FX_PCI_HOST_BRIDGE, \
26ba25
-             TYPE_I440FX_PCI_DEVICE);}
26ba25
-
26ba25
-static void pc_machine_rhel620_options(MachineClass *m)
26ba25
-{
26ba25
-    pc_machine_rhel630_options(m);
26ba25
-    m->family = "pc_piix_Z";
26ba25
-    m->desc = "RHEL 6.2.0 PC";
26ba25
-    SET_MACHINE_COMPAT(m, PC_RHEL6_2_COMPAT);
26ba25
-}
26ba25
-
26ba25
-DEFINE_PC_MACHINE(rhel620, "rhel6.2.0", pc_init_rhel620,
26ba25
-                  pc_machine_rhel620_options);
26ba25
-
26ba25
-/*
26ba25
- * NOTE: We don't have the event_idx compat entry for the
26ba25
- * virtio-balloon-pci driver because RHEL6 doesn't disable
26ba25
- * it either due to a bug (see RHBZ 1029539 fo more info)
26ba25
- */
26ba25
-#define PC_RHEL6_1_COMPAT \
26ba25
-        {\
26ba25
-            .driver   = "PIIX4_PM",\
26ba25
-            .property = "disable_s3",\
26ba25
-            .value    = "0",\
26ba25
-        },{\
26ba25
-            .driver   = "PIIX4_PM",\
26ba25
-            .property = "disable_s4",\
26ba25
-            .value    = "0",\
26ba25
-        },{\
26ba25
-            .driver   = "qxl",\
26ba25
-            .property = "revision",\
26ba25
-            .value    = stringify(2),\
26ba25
-        },{\
26ba25
-            .driver   = "qxl-vga",\
26ba25
-            .property = "revision",\
26ba25
-            .value    = stringify(2),\
26ba25
-        },{\
26ba25
-            .driver   = "virtio-blk-pci",\
26ba25
-            .property = "event_idx",\
26ba25
-            .value    = "off",\
26ba25
-        },{\
26ba25
-            .driver   = "virtio-serial-pci",\
26ba25
-            .property = "event_idx",\
26ba25
-            .value    = "off",\
26ba25
-        },{\
26ba25
-            .driver   = "virtio-net-pci",\
26ba25
-            .property = "event_idx",\
26ba25
-            .value    = "off",\
26ba25
-        },{\
26ba25
-            .driver   = "usb-kbd",\
26ba25
-            .property = "serial",\
26ba25
-            .value    = "1",\
26ba25
-        },{\
26ba25
-            .driver   = "usb-mouse",\
26ba25
-            .property = "serial",\
26ba25
-            .value    = "1",\
26ba25
-        },{\
26ba25
-            .driver   = "usb-tablet",\
26ba25
-            .property = "serial",\
26ba25
-            .value    = "1",\
26ba25
-        },
26ba25
-
26ba25
-static void pc_compat_rhel610(MachineState *machine)
26ba25
-{
26ba25
-    pc_compat_rhel620(machine);
26ba25
-}
26ba25
-
26ba25
-static void pc_init_rhel610(MachineState *machine)
26ba25
-{
26ba25
-    pc_compat_rhel610(machine);
26ba25
-    pc_init1(machine, TYPE_I440FX_PCI_HOST_BRIDGE, \
26ba25
-             TYPE_I440FX_PCI_DEVICE);}
26ba25
-
26ba25
-static void pc_machine_rhel610_options(MachineClass *m)
26ba25
-{
26ba25
-    pc_machine_rhel620_options(m);
26ba25
-    m->family = "pc_piix_Z";
26ba25
-    m->desc = "RHEL 6.1.0 PC";
26ba25
-    SET_MACHINE_COMPAT(m, PC_RHEL6_1_COMPAT);
26ba25
-}
26ba25
-
26ba25
-DEFINE_PC_MACHINE(rhel610, "rhel6.1.0", pc_init_rhel610,
26ba25
-                  pc_machine_rhel610_options);
26ba25
-
26ba25
-#define PC_RHEL6_0_COMPAT \
26ba25
-        {\
26ba25
-            .driver   = "qxl",\
26ba25
-            .property = "revision",\
26ba25
-            .value    = stringify(1),\
26ba25
-        },{\
26ba25
-            .driver   = "qxl-vga",\
26ba25
-            .property = "revision",\
26ba25
-            .value    = stringify(1),\
26ba25
-        },{\
26ba25
-            .driver   = "VGA",\
26ba25
-            .property = "rombar",\
26ba25
-            .value    = stringify(0),\
26ba25
-        },
26ba25
-
26ba25
-static void pc_compat_rhel600(MachineState *machine)
26ba25
-{
26ba25
-    pc_compat_rhel610(machine);
26ba25
-}
26ba25
-
26ba25
-static void pc_init_rhel600(MachineState *machine)
26ba25
-{
26ba25
-    pc_compat_rhel600(machine);
26ba25
-    pc_init1(machine, TYPE_I440FX_PCI_HOST_BRIDGE, \
26ba25
-             TYPE_I440FX_PCI_DEVICE);}
26ba25
-
26ba25
-static void pc_machine_rhel600_options(MachineClass *m)
26ba25
-{
26ba25
-    pc_machine_rhel610_options(m);
26ba25
-    m->family = "pc_piix_Z";
26ba25
-    m->desc = "RHEL 6.0.0 PC";
26ba25
-    SET_MACHINE_COMPAT(m, PC_RHEL6_0_COMPAT);
26ba25
-}
26ba25
-
26ba25
-DEFINE_PC_MACHINE(rhel600, "rhel6.0.0", pc_init_rhel600,
26ba25
-                  pc_machine_rhel600_options);
26ba25
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
26ba25
index e94424f..ae84db4 100644
26ba25
--- a/include/hw/i386/pc.h
26ba25
+++ b/include/hw/i386/pc.h
26ba25
@@ -1394,8 +1394,6 @@ extern void igd_passthrough_isa_bridge_create(PCIBus *bus, uint16_t gpu_dev_id);
26ba25
  * The PC_RHEL_*_COMPAT serve the same purpose for RHEL-7 machine
26ba25
  * types as the PC_COMPAT_* do for upstream types.
26ba25
  * PC_RHEL_7_*_COMPAT apply both to i440fx and q35 types.
26ba25
- * PC_RHEL6_*_COMPAT apply to i440fx types only, and therefore live
26ba25
- * in pc_piix.c.
26ba25
  */
26ba25
 
26ba25
 /*
26ba25
diff --git a/tests/qom-test.c b/tests/qom-test.c
26ba25
index db0d3ab..2fc2670 100644
26ba25
--- a/tests/qom-test.c
26ba25
+++ b/tests/qom-test.c
26ba25
@@ -16,9 +16,7 @@
26ba25
 #include "libqtest.h"
26ba25
 
26ba25
 static const char *blacklist_x86[] = {
26ba25
-    "xenfv", "xenpv", "isapc",
26ba25
-    "rhel6.6.0", "rhel6.5.0", "rhel6.4.0", "rhel6.3.0",
26ba25
-    "rhel6.2.0", "rhel6.1.0", "rhel6.0.0", NULL
26ba25
+    "xenfv", "xenpv", "isapc", NULL
26ba25
 };
26ba25
 
26ba25
 static const struct {
26ba25
-- 
26ba25
1.8.3.1
26ba25