mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-30 17:49:02 +00:00
Support QXL remove on spice_server_remove_interface
Allow to dynamically remove QXL interfaces. This could be used to support hot swapping of QXL cards. This code is actually not used in any way. QXL interfaces are destroyed by spice_server_destroy automatically. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
b9e8105d16
commit
6c33b69e15
@ -3321,6 +3321,13 @@ SPICE_GNUC_VISIBLE int spice_server_remove_interface(SpiceBaseInstance *sin)
|
||||
SpiceCharDeviceInstance *char_device = SPICE_CONTAINEROF(sin, SpiceCharDeviceInstance, base);
|
||||
reds = red_char_device_get_server(char_device->st);
|
||||
spice_server_char_device_remove_interface(reds, sin);
|
||||
} else if (strcmp(interface->type, SPICE_INTERFACE_QXL) == 0) {
|
||||
QXLInstance *qxl;
|
||||
|
||||
qxl = SPICE_CONTAINEROF(sin, QXLInstance, base);
|
||||
reds = red_qxl_get_server(qxl->st);
|
||||
reds->qxl_instances = g_list_remove(reds->qxl_instances, qxl);
|
||||
red_qxl_destroy(qxl);
|
||||
} else {
|
||||
spice_warning("VD_INTERFACE_REMOVING unsupported");
|
||||
return -1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user