mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
qapi: Convert the cpu command
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
99b7796f60
commit
755f196898
7 changed files with 31 additions and 17 deletions
11
monitor.c
11
monitor.c
|
@ -902,17 +902,6 @@ static void do_info_cpus(Monitor *mon, QObject **ret_data)
|
|||
*ret_data = QOBJECT(cpu_list);
|
||||
}
|
||||
|
||||
static int do_cpu_set(Monitor *mon, const QDict *qdict, QObject **ret_data)
|
||||
{
|
||||
int index = qdict_get_int(qdict, "index");
|
||||
if (monitor_set_cpu(index) < 0) {
|
||||
qerror_report(QERR_INVALID_PARAMETER_VALUE, "index",
|
||||
"a CPU number");
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void do_info_jit(Monitor *mon)
|
||||
{
|
||||
dump_exec_info((FILE *)mon, monitor_fprintf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue