Re: [Qemu-devel] [PATCH 20/21] target-i386: implement machine->hot_add_cpu hook

2013-04-24 Thread Eduardo Habkost
On Wed, Apr 24, 2013 at 07:31:44PM +0200, Andreas Färber wrote: > > +static void do_cpu_hot_add(const int64_t id, Error **errp) > > +{ > > +int64_t apic_id = x86_cpu_apic_id_from_index(id); > > + > > +if (cpu_exists(apic_id)) { > > +error_setg(errp, "Unable to add CPU: %" PRIi64 > >

Re: [Qemu-devel] [PATCH 20/21] target-i386: implement machine->hot_add_cpu hook

2013-04-24 Thread Andreas Färber
Am 23.04.2013 10:29, schrieb Igor Mammedov: > Signed-off-by: Igor Mammedov > --- > hw/i386/pc.c | 22 ++ > 1 files changed, 22 insertions(+), 0 deletions(-) > > diff --git a/hw/i386/pc.c b/hw/i386/pc.c > index 5e50127..b649ed5 100644 > --- a/hw/i386/pc.c > +++ b/hw/i386/pc.

[Qemu-devel] [PATCH 20/21] target-i386: implement machine->hot_add_cpu hook

2013-04-23 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/pc.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 5e50127..b649ed5 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -54,6 +54,7 @@ #include "qemu/config-file.h" #include "