[Qemu-devel] [PATCH v2] New QMP command query-cpu-max and HMP command cpu_max

2013-03-25 Thread Michal Novotny
These commands return the maximum number of CPUs supported by the currently running emulator instance, as defined in its QEMUMachine struct. Signed-off-by: Michal Novotny --- hmp-commands.hx | 14 ++ hmp.c| 15 +++ hmp.h| 1 + qapi-schema.json |

Re: [Qemu-devel] [PATCH v2] New QMP command query-cpu-max and HMP command cpu_max

2013-03-25 Thread Michal Novotny
Version 3 sent to both you and list. Michal On 03/25/2013 05:27 PM, Luiz Capitulino wrote: > On Mon, 25 Mar 2013 17:24:02 +0100 > Michal Novotny wrote: > +void hmp_query_cpu_max(Monitor *mon, const QDict *qdict) +{ +int cpu_max; +Error *errp = NULL; + +c

Re: [Qemu-devel] [PATCH v2] New QMP command query-cpu-max and HMP command cpu_max

2013-03-25 Thread Luiz Capitulino
On Mon, 25 Mar 2013 17:24:02 +0100 Michal Novotny wrote: > >> +void hmp_query_cpu_max(Monitor *mon, const QDict *qdict) > >> +{ > >> +int cpu_max; > >> +Error *errp = NULL; > >> + > >> +cpu_max = qmp_query_cpu_max(&errp); > >> +if (errp) { > >> +monitor_printf(mon, "%s\n",

Re: [Qemu-devel] [PATCH v2] New QMP command query-cpu-max and HMP command cpu_max

2013-03-25 Thread Michal Novotny
On 03/25/2013 05:13 PM, Luiz Capitulino wrote: > On Mon, 25 Mar 2013 16:58:50 +0100 > Michal Novotny wrote: > >> These commands return the maximum number of CPUs supported by the > /These commands/This command I meant both of them - both QMP (query-cpu-max) one HMP (cpu_max) one. > >> current

Re: [Qemu-devel] [PATCH v2] New QMP command query-cpu-max and HMP command cpu_max

2013-03-25 Thread Luiz Capitulino
On Mon, 25 Mar 2013 16:58:50 +0100 Michal Novotny wrote: > These commands return the maximum number of CPUs supported by the /These commands/This command > currently running emulator instance, as defined in its QEMUMachine > struct. > > Signed-off-by: Michal Novotny > --- > hmp-commands.hx