Skip to contentSkip to conversation

Fix qemu PPC breakage in monitor.c

PATCH Applied Jerone Young 3 participants 4 messages Feb 27, 2008 – Feb 28, 2008 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix qemu PPC breakage in monitor.c

# HG changeset patch
# User Jerone Young <[email protected]>
# Date 1204150440 21600
# Branch merge
# Node ID f255b23b6ef9461be4ee18fa0745f30c4fb66e6a # Parent 64a281615f436e65ca7fb2f3c2721c374fbfc8be Fix qemu PPC breakage in monitor.c

Recent pull of qemu_cvs has added function "qemu_system_cpu_hot_add" to the function "do_cput_set_nr" in monitor.c . Issue is qemu_system_cpu_hot_add is defined in acpi.c which is only compiled for arch with target base i386 (which are i386 & x86-64).

qemu/monitor.c +2 -0
@@ -357,7 +357,9 @@ static void do_cpu_set_nr(int value, con
        term_printf("invalid status: %s\n", status);
        return;
     }
+#if defined(TARGET_I386) || defined(TARGET_X86_64)
     qemu_system_cpu_hot_add(value, state);
+#endif
 }
 
 static void do_info_jit(void)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#1 lore raw
Quoted 16 lines · Jerone Young

# HG changeset patch
# User Jerone Young <[email protected]>
# Date 1204150440 21600
# Branch merge
# Node ID f255b23b6ef9461be4ee18fa0745f30c4fb66e6a # Parent 64a281615f436e65ca7fb2f3c2721c374fbfc8be Fix qemu PPC breakage in monitor.c

Recent pull of qemu_cvs has added function "qemu_system_cpu_hot_add" to the function "do_cput_set_nr" in monitor.c . Issue is qemu_system_cpu_hot_add is defined in acpi.c which is only compiled for arch with target base i386 (which are i386 & x86-64).

qemu/monitor.c static void do_cpu_set_nr(int value, con · line 365

Quoted 9 lines
qemu/monitor.c +2 -0
@@ -357,7 +357,9 @@ static void do_cpu_set_nr(int value, con
        term_printf("invalid status: %s\n", status);
        return;
     }
+#if defined(TARGET_I386) || defined(TARGET_X86_64)
     qemu_system_cpu_hot_add(value, state);
+#endif
 }
 
 static void do_info_jit(void)

This should be submitted to qemu-devel too, no?

Signature · 8 lines
Hollis Blanchard
IBM Linux Technology Center


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Applied
#3 lore raw
In reply to Jerone Young
Quoted 3 lines · Jerone Young

Recent pull of qemu_cvs has added function "qemu_system_cpu_hot_add" to the function "do_cput_set_nr" in monitor.c . Issue is qemu_system_cpu_hot_add is defined in acpi.c which is only compiled for arch with target base i386 (which are i386 & x86-64).

Applied, thanks. (It wasn't a qemu-cvs pull, rather the cpu hotplug patches from Glauber).

Signature · 7 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
#2 lore raw
In reply to Hollis Blanchard
Quoted 26 lines · Hollis Blanchard
Quoted 24 lines · Jerone Young

# HG changeset patch
# User Jerone Young <[email protected]>
# Date 1204150440 21600
# Branch merge
# Node ID f255b23b6ef9461be4ee18fa0745f30c4fb66e6a # Parent 64a281615f436e65ca7fb2f3c2721c374fbfc8be Fix qemu PPC breakage in monitor.c

Recent pull of qemu_cvs has added function "qemu_system_cpu_hot_add" to the function "do_cput_set_nr" in monitor.c . Issue is qemu_system_cpu_hot_add is defined in acpi.c which is only compiled for arch with target base i386 (which are i386 & x86-64).

qemu/monitor.c +2 -0
@@ -357,7 +357,9 @@ static void do_cpu_set_nr(int value, con
        term_printf("invalid status: %s\n", status);
        return;
     }
+#if defined(TARGET_I386) || defined(TARGET_X86_64)
     qemu_system_cpu_hot_add(value, state);
+#endif
 }
 
Quoted 6 lines

qemu/monitor.c static void do_cpu_set_nr(int value, con · line 365

Quoted 2 lines
qemu/monitor.c +0 -0
 static void do_info_jit(void)

This should be submitted to qemu-devel too, no?

qemu hasn't merged the cpu hotplug patches (yet?).

Signature · 7 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/