|
|
218e99 |
From 26e8594d99236281d19435ba40c323665ca21bcd Mon Sep 17 00:00:00 2001
|
|
|
218e99 |
From: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
218e99 |
Date: Wed, 31 Jul 2013 08:05:31 +0200
|
|
|
218e99 |
Subject: pc: Add machine type "rhel6.2.0"
|
|
|
218e99 |
|
|
|
218e99 |
Message-id: <1375201922-6794-12-git-send-email-armbru@redhat.com>
|
|
|
218e99 |
Patchwork-id: 52823
|
|
|
218e99 |
O-Subject: [RHEL-7 PATCH v3 11/15] pc: Add machine type "rhel6.2.0"
|
|
|
218e99 |
Bugzilla: 983991
|
|
|
218e99 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
218e99 |
RH-Acked-by: Bandan Das <bsd@redhat.com>
|
|
|
218e99 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
218e99 |
|
|
|
218e99 |
Match RHEL-6's compat_props qxl.revision,
|
|
|
218e99 |
qxl-vga.revision. virtio-blk-pci.event_idx,
|
|
|
218e99 |
virtio-serial-pci.event_idx, virtio-net-pci.event_idx,
|
|
|
218e99 |
virtio-balloon-pci.event_idx.
|
|
|
218e99 |
|
|
|
218e99 |
RHEL-6's non-upstream hda-duplex.mcompat, hda-micro.mcompat,
|
|
|
218e99 |
hda-output.mcompat aren't needed. RHEL-6 has them to enable migration
|
|
|
218e99 |
back to RHEL-6.1 (see qemu-kvm-rhel6 commit d619762), which isn't
|
|
|
218e99 |
relevant in RHEL-7.
|
|
|
218e99 |
|
|
|
218e99 |
Non-upstream usb-tablet.migrate, usb-mouse.migrate, usb-kbd.migrate
|
|
|
218e99 |
will be covered separately (bug 953304).
|
|
|
218e99 |
|
|
|
218e99 |
PIIX4_PM.disable_s3, PIIX4_PM.disable_s4 will be covered separately
|
|
|
218e99 |
(bug 980840).
|
|
|
218e99 |
|
|
|
218e99 |
Signed-off-by: Markus Armbruster <armbru@redhat.com>
|
|
|
218e99 |
|
|
|
218e99 |
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
|
|
|
218e99 |
index 4ab39cd..eaf3af1 100644
|
|
|
218e99 |
--- a/hw/i386/pc_piix.c
|
|
|
218e99 |
+++ b/hw/i386/pc_piix.c
|
|
|
218e99 |
@@ -777,7 +777,7 @@ static QEMUMachine pc_machine_rhel700 = {
|
|
|
218e99 |
DEFAULT_MACHINE_OPTIONS,
|
|
|
218e99 |
};
|
|
|
218e99 |
|
|
|
218e99 |
-#define PC_RHEL6_1_COMPAT \
|
|
|
218e99 |
+#define PC_RHEL6_2_COMPAT \
|
|
|
218e99 |
{\
|
|
|
218e99 |
.driver = "Conroe-" TYPE_X86_CPU,\
|
|
|
218e99 |
.property = "model",\
|
|
|
218e99 |
@@ -870,11 +870,11 @@ static QEMUMachine pc_machine_rhel700 = {
|
|
|
218e99 |
},{\
|
|
|
218e99 |
.driver = "qxl",\
|
|
|
218e99 |
.property = "revision",\
|
|
|
218e99 |
- .value = stringify(2),\
|
|
|
218e99 |
+ .value = stringify(3),\
|
|
|
218e99 |
},{\
|
|
|
218e99 |
.driver = "qxl-vga",\
|
|
|
218e99 |
.property = "revision",\
|
|
|
218e99 |
- .value = stringify(2),\
|
|
|
218e99 |
+ .value = stringify(3),\
|
|
|
218e99 |
},{\
|
|
|
218e99 |
.driver = "VGA",\
|
|
|
218e99 |
.property = "mmio",\
|
|
|
218e99 |
@@ -900,6 +900,46 @@ static QEMUMachine pc_machine_rhel700 = {
|
|
|
218e99 |
.property = "class",\
|
|
|
218e99 |
.value = stringify(PCI_CLASS_MEMORY_RAM),\
|
|
|
218e99 |
},{\
|
|
|
218e99 |
+ .driver = TYPE_PCI_DEVICE,\
|
|
|
218e99 |
+ .property = "command_serr_enable",\
|
|
|
218e99 |
+ .value = "off",\
|
|
|
218e99 |
+ },{\
|
|
|
218e99 |
+ .driver = "AC97",\
|
|
|
218e99 |
+ .property = "use_broken_id",\
|
|
|
218e99 |
+ .value = stringify(1),\
|
|
|
218e99 |
+ }
|
|
|
218e99 |
+
|
|
|
218e99 |
+static void pc_init_rhel620(QEMUMachineInitArgs *args)
|
|
|
218e99 |
+{
|
|
|
218e99 |
+ has_pvpanic = false;
|
|
|
218e99 |
+ disable_kvm_pv_eoi();
|
|
|
218e99 |
+ enable_compat_apic_id_mode();
|
|
|
218e99 |
+ pc_init_rhel700(args);
|
|
|
218e99 |
+}
|
|
|
218e99 |
+
|
|
|
218e99 |
+static QEMUMachine pc_machine_rhel620 = {
|
|
|
218e99 |
+ .name = "rhel6.2.0",
|
|
|
218e99 |
+ .desc = "RHEL 6.2.0 PC",
|
|
|
218e99 |
+ .init = pc_init_rhel620,
|
|
|
218e99 |
+ .max_cpus = 255,
|
|
|
218e99 |
+ .compat_props = (GlobalProperty[]) {
|
|
|
218e99 |
+ PC_RHEL6_2_COMPAT,
|
|
|
218e99 |
+ { /* end of list */ }
|
|
|
218e99 |
+ },
|
|
|
218e99 |
+ DEFAULT_MACHINE_OPTIONS,
|
|
|
218e99 |
+};
|
|
|
218e99 |
+
|
|
|
218e99 |
+#define PC_RHEL6_1_COMPAT \
|
|
|
218e99 |
+ PC_RHEL6_2_COMPAT,\
|
|
|
218e99 |
+ {\
|
|
|
218e99 |
+ .driver = "qxl",\
|
|
|
218e99 |
+ .property = "revision",\
|
|
|
218e99 |
+ .value = stringify(2),\
|
|
|
218e99 |
+ },{\
|
|
|
218e99 |
+ .driver = "qxl-vga",\
|
|
|
218e99 |
+ .property = "revision",\
|
|
|
218e99 |
+ .value = stringify(2),\
|
|
|
218e99 |
+ },{\
|
|
|
218e99 |
.driver = "virtio-blk-pci",\
|
|
|
218e99 |
.property = "event_idx",\
|
|
|
218e99 |
.value = "off",\
|
|
|
218e99 |
@@ -915,22 +955,11 @@ static QEMUMachine pc_machine_rhel700 = {
|
|
|
218e99 |
.driver = "virtio-balloon-pci",\
|
|
|
218e99 |
.property = "event_idx",\
|
|
|
218e99 |
.value = "off",\
|
|
|
218e99 |
- },{\
|
|
|
218e99 |
- .driver = TYPE_PCI_DEVICE,\
|
|
|
218e99 |
- .property = "command_serr_enable",\
|
|
|
218e99 |
- .value = "off",\
|
|
|
218e99 |
- },{\
|
|
|
218e99 |
- .driver = "AC97",\
|
|
|
218e99 |
- .property = "use_broken_id",\
|
|
|
218e99 |
- .value = stringify(1),\
|
|
|
218e99 |
}
|
|
|
218e99 |
|
|
|
218e99 |
static void pc_init_rhel610(QEMUMachineInitArgs *args)
|
|
|
218e99 |
{
|
|
|
218e99 |
- has_pvpanic = false;
|
|
|
218e99 |
- disable_kvm_pv_eoi();
|
|
|
218e99 |
- enable_compat_apic_id_mode();
|
|
|
218e99 |
- pc_init_rhel700(args);
|
|
|
218e99 |
+ pc_init_rhel620(args);
|
|
|
218e99 |
}
|
|
|
218e99 |
|
|
|
218e99 |
static QEMUMachine pc_machine_rhel610 = {
|
|
|
218e99 |
@@ -981,6 +1010,7 @@ static QEMUMachine pc_machine_rhel600 = {
|
|
|
218e99 |
static void rhel_machine_init(void)
|
|
|
218e99 |
{
|
|
|
218e99 |
qemu_register_machine(&pc_machine_rhel700);
|
|
|
218e99 |
+ qemu_register_machine(&pc_machine_rhel620);
|
|
|
218e99 |
qemu_register_machine(&pc_machine_rhel610);
|
|
|
218e99 |
qemu_register_machine(&pc_machine_rhel600);
|
|
|
218e99 |
}
|