Blame 0045-pc-Add-a-Fedora-13-machine-type-that-contains-backpo.patch

Justin M. Forbes eff942
From 9aa404a57823c9fbf2bf2e0189d31a2b0d8bf3b9 Mon Sep 17 00:00:00 2001
Justin M. Forbes eff942
From: Amit Shah <amit.shah@redhat.com>
Justin M. Forbes eff942
Date: Thu, 25 Feb 2010 18:41:13 +0530
Justin M. Forbes eff942
Subject: [PATCH] pc: Add a Fedora-13 machine type that contains backports from upstream
Justin M. Forbes eff942
Justin M. Forbes eff942
We have a few features backported from the upstream 0.13 machine type
Justin M. Forbes eff942
in the repo here.
Justin M. Forbes eff942
Justin M. Forbes eff942
Add a 'fedora-13' machine type and use that by default so that users can
Justin M. Forbes eff942
fall back to a released upstream machine type if desired.
Justin M. Forbes eff942
Justin M. Forbes eff942
The fedora-13 machine type has the new multiport-supported virtio-serial
Justin M. Forbes eff942
and vhost-net patches as of now not present in the 0.12 machine type.
Justin M. Forbes eff942
Justin M. Forbes eff942
This is based on upstream commit
Justin M. Forbes eff942
d76fa62dba54a156ca0f5e79eb33756c9015e02c
Justin M. Forbes eff942
Justin M. Forbes eff942
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Justin M. Forbes eff942
---
Justin M. Forbes eff942
 hw/pc.c |   19 +++++++++++++++++--
Justin M. Forbes eff942
 1 files changed, 17 insertions(+), 2 deletions(-)
Justin M. Forbes eff942
Justin M. Forbes eff942
diff --git a/hw/pc.c b/hw/pc.c
Justin M. Forbes eff942
index 56be728..26c65c1 100644
Justin M. Forbes eff942
--- a/hw/pc.c
Justin M. Forbes eff942
+++ b/hw/pc.c
Justin M. Forbes eff942
@@ -1327,11 +1327,9 @@ void cmos_set_s3_resume(void)
Justin M. Forbes eff942
Justin M. Forbes eff942
 static QEMUMachine pc_machine = {
Justin M. Forbes eff942
     .name = "pc-0.12",
Justin M. Forbes eff942
-    .alias = "pc",
Justin M. Forbes eff942
     .desc = "Standard PC",
Justin M. Forbes eff942
     .init = pc_init_pci,
Justin M. Forbes eff942
     .max_cpus = 255,
Justin M. Forbes eff942
-    .is_default = 1,
Justin M. Forbes eff942
 };
Justin M. Forbes eff942
Justin M. Forbes eff942
 static QEMUMachine pc_machine_v0_11 = {
Justin M. Forbes eff942
@@ -1416,3 +1414,20 @@ static void pc_machine_init(void)
Justin M. Forbes eff942
 }
Justin M. Forbes eff942
Justin M. Forbes eff942
 machine_init(pc_machine_init);
Justin M. Forbes eff942
+
Justin M. Forbes eff942
+/* Fedora machine types */
Justin M. Forbes eff942
+static QEMUMachine pc_machine_f13 = {
Justin M. Forbes eff942
+    .name = "fedora-13",
Justin M. Forbes eff942
+    .alias = "pc",
Justin M. Forbes eff942
+    .desc = "Standard PC",
Justin M. Forbes eff942
+    .init = pc_init_pci,
Justin M. Forbes eff942
+    .max_cpus = 255,
Justin M. Forbes eff942
+    .is_default = 1,
Justin M. Forbes eff942
+};
Justin M. Forbes eff942
+
Justin M. Forbes eff942
+static void fedora_machine_init(void)
Justin M. Forbes eff942
+{
Justin M. Forbes eff942
+    qemu_register_machine(&pc_machine_f13);
Justin M. Forbes eff942
+}
Justin M. Forbes eff942
+
Justin M. Forbes eff942
+machine_init(fedora_machine_init);
Justin M. Forbes eff942
-- 
Justin M. Forbes eff942
1.6.6.1
Justin M. Forbes eff942