Qemu: Change default max_cpus to 255.

"Zhang, Xiantao" <[email protected]>
Newsgroups org.kernel.vger.kvm-ia64,org.kernel.vger.kvm
Message-ID <42DFA526FC41B1429CE7279EF83C6BDC01B4859A@pdsmsx415.ccr.corp.intel.com>
Hi, Avi
	Fix the issue caused by latest merge with Qemu upstream. 
Thanks
Xiantao
From 4f921522258c2200353102d3813a30af9d753ae0 Mon Sep 17 00:00:00 2001
From: Xiantao Zhang <[email protected]>
Date: Fri, 17 Oct 2008 14:26:57 +0800
Subject: [PATCH] Qemu: Change default max_cpus to 255.

Initilize the field max_cpus of machine to 255 for ia64.
Use C99 style to intilize machine structure.
Signed-off-by: Xiantao Zhang <[email protected]>
---
 qemu/hw/ipf.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/qemu/hw/ipf.c b/qemu/hw/ipf.c
index 0cf3aaf..337c854 100644
--- a/qemu/hw/ipf.c
+++ b/qemu/hw/ipf.c
@@ -659,10 +659,11 @@ static void ipf_init_pci(ram_addr_t ram_size, int
vga_ram_size,
 }
 
 QEMUMachine ipf_machine = {
-    "itanium",
-    "Itanium Platform",
-    ipf_init_pci,
-    VGA_RAM_SIZE + GFW_SIZE,
+    .name = "itanium",
+    .desc = "Itanium Platform",
+    .init = ipf_init_pci,
+    .ram_require = VGA_RAM_SIZE + GFW_SIZE,
+    .max_cpus = 255,
 };
 
 #define IOAPIC_NUM_PINS 48
-- 
1.6.0
0005-Qemu-Change-default-max_cpus-to-255.patch (application/octet-stream, 974 B)
From 4f921522258c2200353102d3813a30af9d753ae0 Mon Sep 17 00:00:00 2001
From: Xiantao Zhang <[email protected]>
Date: Fri, 17 Oct 2008 14:26:57 +0800
Subject: [PATCH] Qemu: Change default max_cpus to 255.

Initilize the field max_cpus of machine to 255 for ia64.
Use C99 style to intilize machine structure.
Signed-off-by: Xiantao Zhang <[email protected]>
---
 qemu/hw/ipf.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/qemu/hw/ipf.c b/qemu/hw/ipf.c
index 0cf3aaf..337c854 100644
--- a/qemu/hw/ipf.c
+++ b/qemu/hw/ipf.c
@@ -659,10 +659,11 @@ static void ipf_init_pci(ram_addr_t ram_size, int vga_ram_size,
 }
 
 QEMUMachine ipf_machine = {
-    "itanium",
-    "Itanium Platform",
-    ipf_init_pci,
-    VGA_RAM_SIZE + GFW_SIZE,
+    .name = "itanium",
+    .desc = "Itanium Platform",
+    .init = ipf_init_pci,
+    .ram_require = VGA_RAM_SIZE + GFW_SIZE,
+    .max_cpus = 255,
 };
 
 #define IOAPIC_NUM_PINS 48
-- 
1.6.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.