]> git.proxmox.com Git - mirror_qemu.git/commit
vl: move icount configuration earlier
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Nov 2019 11:37:00 +0000 (12:37 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Dec 2019 18:32:25 +0000 (19:32 +0100)
commit7f8b6126e7d4417a7faa8fdd18d5870d937aadf8
tree99b030a91f96b7b67c7dfcaaca09347417a191e1
parent53b62bec0144615a54c77f4fc5561501a6a2c844
vl: move icount configuration earlier

Once qemu_tcg_configure is turned into a QOM property setter, it will not
be able to set a default value for mttcg_enabled.  Setting the default will
move to the TCG instance_init function, which currently runs before "-icount"
is processed.

However, it is harmless to do configure_icount for all accelerators; we will
just fail later if a non-TCG accelerator is selected.  So do that.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
vl.c