chardev/spice: simplify chardev setup

Initialize spice before chardevs.  That allows to register the spice
chardevs directly in the init function and removes the need to maintain
a linked list of chardevs just for registration.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20201014121120.13482-5-kraxel@redhat.com
This commit is contained in:
Gerd Hoffmann 2020-10-14 14:11:17 +02:00
parent 70122d6230
commit 93ab5844b2
6 changed files with 20 additions and 39 deletions

View file

@ -45,7 +45,6 @@ int qemu_spice_migrate_info(const char *hostname, int port, int tls_port,
#else
#define SPICE_NEEDS_SET_MM_TIME 0
#endif
void qemu_spice_register_ports(void);
#else /* CONFIG_SPICE */