Blame pc-add-a-Fedora-13-machine-type-for-backward-compat.patch

Justin M. Forbes 45e28a
From: Justin M. Forbes <jforbes@redhat.com>
Justin M. Forbes 45e28a
Date: Thu, Aug 19 09:13:45 2010 -0500
Justin M. Forbes 45e28a
Subject: pc: Add a Fedora-13 machine type for backwards compatibility.
Justin M. Forbes 45e28a
Justin M. Forbes 45e28a
In Fedora 13 a fedora-13 machine type was added as default to allow
Justin M. Forbes 45e28a
interaction with upstream stable qemu which did not support the same
Justin M. Forbes 45e28a
feature set.  As a result we need to support this machine type through
Justin M. Forbes 45e28a
the Fedora 15 release.
Justin M. Forbes 45e28a
Justin M. Forbes 45e28a
Justin M. Forbes 45e28a
diff --git a/hw/pc_piix.c b/hw/pc_piix.c
Justin M. Forbes 45e28a
index 9e4bac8..eb1ed05 100644
Justin M. Forbes 45e28a
--- a/hw/pc_piix.c
Justin M. Forbes 45e28a
+++ b/hw/pc_piix.c
Justin M. Forbes 45e28a
@@ -266,6 +266,14 @@ static QEMUMachine pc_machine_v0_13 = {
Justin M. Forbes 45e28a
     },
Justin M. Forbes 45e28a
 };
Justin M. Forbes 45e28a
 
Justin M. Forbes 45e28a
+static QEMUMachine pc_machine_f13 = {
Justin M. Forbes 45e28a
+    .name = "fedora-13",
Justin M. Forbes 45e28a
+    .desc = "Standard PC",
Justin M. Forbes 45e28a
+    .init = pc_init_pci,
Justin M. Forbes 45e28a
+    .max_cpus = 255,
Justin M. Forbes 45e28a
+    .is_default = 0,
Justin M. Forbes 45e28a
+};
Justin M. Forbes 45e28a
+
Justin M. Forbes 45e28a
 static QEMUMachine pc_machine_v0_12 = {
Justin M. Forbes 45e28a
     .name = "pc-0.12",
Justin M. Forbes 45e28a
     .desc = "Standard PC",
Justin M. Forbes 45e28a
@@ -397,6 +405,7 @@ static QEMUMachine isapc_machine = {
Justin M. Forbes 45e28a
 static void pc_machine_init(void)
Justin M. Forbes 45e28a
 {
Justin M. Forbes 45e28a
     qemu_register_machine(&pc_machine);
Justin M. Forbes 45e28a
+    qemu_register_machine(&pc_machine_f13);
Justin M. Forbes 45e28a
     qemu_register_machine(&pc_machine_v0_13);
Justin M. Forbes 45e28a
     qemu_register_machine(&pc_machine_v0_12);
Justin M. Forbes 45e28a
     qemu_register_machine(&pc_machine_v0_11);