mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
aio / timers: Switch entire codebase to the new timer API
This is an autogenerated patch using scripts/switch-timer-api. Switch the entire code base to using the new timer API. Note this patch may introduce some line length issues. Signed-off-by: Alex Bligh <alex@alex.org.uk> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
fe10ab540b
commit
bc72ad6754
121 changed files with 678 additions and 678 deletions
8
qtest.c
8
qtest.c
|
@ -47,7 +47,7 @@ static bool qtest_opened;
|
|||
*
|
||||
* Clock management:
|
||||
*
|
||||
* The qtest client is completely in charge of the vm_clock. qtest commands
|
||||
* The qtest client is completely in charge of the QEMU_CLOCK_VIRTUAL. qtest commands
|
||||
* let you adjust the value of the clock (monotonically). All the commands
|
||||
* return the current value of the clock in nanoseconds.
|
||||
*
|
||||
|
@ -414,9 +414,9 @@ static void qtest_process_command(CharDriverState *chr, gchar **words)
|
|||
} else {
|
||||
ns = qemu_clock_deadline_ns_all(QEMU_CLOCK_VIRTUAL);
|
||||
}
|
||||
qtest_clock_warp(qemu_get_clock_ns(vm_clock) + ns);
|
||||
qtest_clock_warp(qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + ns);
|
||||
qtest_send_prefix(chr);
|
||||
qtest_send(chr, "OK %"PRIi64"\n", (int64_t)qemu_get_clock_ns(vm_clock));
|
||||
qtest_send(chr, "OK %"PRIi64"\n", (int64_t)qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL));
|
||||
} else if (strcmp(words[0], "clock_set") == 0) {
|
||||
int64_t ns;
|
||||
|
||||
|
@ -424,7 +424,7 @@ static void qtest_process_command(CharDriverState *chr, gchar **words)
|
|||
ns = strtoll(words[1], NULL, 0);
|
||||
qtest_clock_warp(ns);
|
||||
qtest_send_prefix(chr);
|
||||
qtest_send(chr, "OK %"PRIi64"\n", (int64_t)qemu_get_clock_ns(vm_clock));
|
||||
qtest_send(chr, "OK %"PRIi64"\n", (int64_t)qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL));
|
||||
} else {
|
||||
qtest_send_prefix(chr);
|
||||
qtest_send(chr, "FAIL Unknown command `%s'\n", words[0]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue