diff options
author | Alon Levy <alevy@redhat.com> | 2012-03-14 20:33:37 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2012-04-23 11:52:35 +0200 |
commit | 28a1bc6d3509f359e81835ed2ae502a1e419c881 (patch) | |
tree | 77238345a92043c3e1bf7dbd8c89905172350af5 /vl.c | |
parent | c7c4f9fffa8a0058bb945aacdbcdd65445607e8d (diff) |
spice: fix broken initialization
Commit 1b71f7c14fab6f00c2680d4489fbee7baf796e4f moved MODULE_INIT_QOM to
way before MODULE_INIT_MACHINE, thereby breaking assumptions made in
spice-core.c which registered both a type initializer and a machine
intializer.
This fix removes the type registration, and replaces it with calling
qemu_spice_init in vl.c after command line parsing (second pass) is
done, and after timers are armed, required by spice server.
Signed-off-by: Alon Levy <alevy@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Conflicts:
ui/spice-core.c
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -3271,6 +3271,11 @@ int main(int argc, char **argv, char **envp) exit(1); } +#ifdef CONFIG_SPICE + /* spice needs the timers to be initialized by this point */ + qemu_spice_init(); +#endif + if (icount_option && (kvm_enabled() || xen_enabled())) { fprintf(stderr, "-icount is not allowed with kvm or xen\n"); exit(1); |