summaryrefslogtreecommitdiff
path: root/hw/usb/dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/usb/dump.c')
-rw-r--r--hw/usb/dump.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/hw/usb/dump.c b/hw/usb/dump.c
index 26af6dff59..2c94c6426d 100644
--- a/hw/usb/dump.c
+++ b/hw/usb/dump.c
@@ -432,10 +432,9 @@ int usb_dump_init(UsbDumpState *s, const char *filename)
s->fd = fd;
s->pcap_caplen = snaplen;
- // FIXME: timing is incorrect, this should be set to the start time of the
- // host, not the current time. Otherwise the clock is completely off when
- // adding a device in the monitor.
s->start_ts = qemu_clock_get_us(QEMU_CLOCK_HOST);
+ /* make the timestamp really point to the moment where the VM booted */
+ s->start_ts -= qemu_clock_get_us(QEMU_CLOCK_VIRTUAL);
return 0;
}