Fix qemu PPC breakage in monitor.c
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, conterm_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 )
For go this patch. It was not in upstream qemu.
Quoted 27 lines · Jerone Young
# HG changeset patch
# User Jerone Young <[email protected]>
# Date 1204150440 21600
# Branch merge
# Node IDf255b23b6ef9461be4ee18fa0745f30c4fb66e6a# Parent64a281615f436e65ca7fb2f3c2721c374fbfc8beFix qemu PPC breakage inmonitor.cRecent pull of
qemu_cvshas added function "qemu_system_cpu_hot_add" to the function "do_cput_set_nr" inmonitor.c. Issue isqemu_system_cpu_hot_addis defined inacpi.cwhich is only compiled for arch with target base i386 (which are i386 & x86-64).Signed-off-by Jerone Young <[email protected]>qemu/monitor.c +2
-0@@ -357,7 +357,9 @@ static void do_cpu_set_nr(int value, conterm_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 )
The CPU hotplug patches have not been applied to QEMU yet.
Regards,,
Anthony Liguori
Quoted 28 lines · Jerone Young
# HG changeset patch
# User Jerone Young <[email protected]>
# Date 1204150440 21600
# Branch merge
# Node IDf255b23b6ef9461be4ee18fa0745f30c4fb66e6a# Parent64a281615f436e65ca7fb2f3c2721c374fbfc8beFix qemu PPC breakage inmonitor.cRecent pull of
qemu_cvshas added function "qemu_system_cpu_hot_add" to the function "do_cput_set_nr" inmonitor.c. Issue isqemu_system_cpu_hot_addis defined inacpi.cwhich is only compiled for arch with target base i386 (which are i386 & x86-64).Signed-off-by Jerone Young <[email protected]>qemu/monitor.c +2
-0@@ -357,7 +357,9 @@ static void do_cpu_set_nr(int value, conterm_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 )