mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
qtest: add clock management
This patch combines qtest and -icount together to turn the vm_clock into a source that can be fully managed by the client. To this end new commands clock_step and clock_set are added. Hooking them with libqtest is left as an exercise to the reader. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
2028834574
commit
8156be5610
5 changed files with 69 additions and 1 deletions
|
@ -397,7 +397,7 @@ int qemu_timer_expired(QEMUTimer *timer_head, int64_t current_time)
|
|||
return qemu_timer_expired_ns(timer_head, current_time * timer_head->scale);
|
||||
}
|
||||
|
||||
static void qemu_run_timers(QEMUClock *clock)
|
||||
void qemu_run_timers(QEMUClock *clock)
|
||||
{
|
||||
QEMUTimer **ptimer_head, *ts;
|
||||
int64_t current_time;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue