aboutsummaryrefslogtreecommitdiff
path: root/qobject
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2018-06-08 11:55:09 +0800
committerMarkus Armbruster <armbru@redhat.com>2018-06-18 15:47:06 +0200
commit6e8c5f4db7cb74f6f00942a285b4ed6a130c244b (patch)
tree2b51d2e550bc59795beb23846d75e90f62347357 /qobject
parent095cb1bffc8e785471cf1acf98ae495cbf4599a6 (diff)
downloadqemu-6e8c5f4db7cb74f6f00942a285b4ed6a130c244b.zip
qemu-6e8c5f4db7cb74f6f00942a285b4ed6a130c244b.tar.gz
qemu-6e8c5f4db7cb74f6f00942a285b4ed6a130c244b.tar.bz2
monitor: remove event_clock_type
Instead, use a dynamic function to detect which clock we'll use. The problem is that the old code will let monitor initialization depend on configure_accelerator() (that's where qtest_enabled() start to take effect). After this change, we don't have such a dependency any more. We just need to make sure configure_accelerator() is called when we start to use it. Now it's only used in monitor_qapi_event_queue() and monitor_qapi_event_handler(), so we're good. Suggested-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <20180608035511.7439-6-peterx@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> [monitor_get_event_clock() name and comment tweaked] Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'qobject')
0 files changed, 0 insertions, 0 deletions