mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 11:39:53 +00:00
qemu-tool: map vm_clock to rt_clock
QED uses vm_clock timers so that images are not touched during and after migration. This however does not apply to qemu-io and qemu-img. Treat vm_clock as a synonym for rt_clock there, and enable it. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
a5a5238ee4
commit
8a83205d34
@ -61,7 +61,7 @@ void monitor_protocol_event(MonitorEvent event, QObject *data)
|
||||
|
||||
int64_t cpu_get_clock(void)
|
||||
{
|
||||
return 0;
|
||||
return qemu_get_clock_ns(rt_clock);
|
||||
}
|
||||
|
||||
int64_t cpu_get_icount(void)
|
||||
@ -87,7 +87,6 @@ int qemu_init_main_loop(void)
|
||||
{
|
||||
init_clocks();
|
||||
init_timer_alarm();
|
||||
qemu_clock_enable(vm_clock, false);
|
||||
return main_loop_init();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user