qtest: Use qemu_opt_set() instead of qemu_opts_parse()
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
5bdb59a290
commit
b3adf5acb5
13
qtest.c
13
qtest.c
|
@ -520,16 +520,13 @@ static void qtest_event(void *opaque, int event)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void configure_qtest_icount(const char *options)
|
|
||||||
{
|
|
||||||
QemuOpts *opts = qemu_opts_parse(qemu_find_opts("icount"), options, 1);
|
|
||||||
configure_icount(opts, &error_abort);
|
|
||||||
qemu_opts_del(opts);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int qtest_init_accel(MachineState *ms)
|
static int qtest_init_accel(MachineState *ms)
|
||||||
{
|
{
|
||||||
configure_qtest_icount("0");
|
QemuOpts *opts = qemu_opts_create(qemu_find_opts("icount"), NULL, 0,
|
||||||
|
&error_abort);
|
||||||
|
qemu_opt_set(opts, "shift", "0", &error_abort);
|
||||||
|
configure_icount(opts, &error_abort);
|
||||||
|
qemu_opts_del(opts);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue