diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2021-02-15 15:10:36 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2021-12-21 10:50:21 +0400 |
commit | f6ef71bded95d99106d4541cf1f420376818732e (patch) | |
tree | e966746361820e86e60c1483a9cbba4d3a22fd51 /hw/display | |
parent | 5e79d516e8ac818d2a90aae9f787775055434ee9 (diff) | |
download | qemu-f6ef71bded95d99106d4541cf1f420376818732e.zip qemu-f6ef71bded95d99106d4541cf1f420376818732e.tar.gz qemu-f6ef71bded95d99106d4541cf1f420376818732e.tar.bz2 |
ui: move qemu_spice_fill_device_address to ui/util.c
Other backends can use it.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display')
-rw-r--r-- | hw/display/qxl.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/hw/display/qxl.c b/hw/display/qxl.c index 29c80b4..e2d6e31 100644 --- a/hw/display/qxl.c +++ b/hw/display/qxl.c @@ -2171,12 +2171,17 @@ static void qxl_realize_common(PCIQXLDevice *qxl, Error **errp) } #if SPICE_SERVER_VERSION >= 0x000e02 /* release 0.14.2 */ + Error *err = NULL; char device_address[256] = ""; - if (qemu_spice_fill_device_address(qxl->vga.con, device_address, 256)) { + if (qemu_console_fill_device_address(qxl->vga.con, + device_address, sizeof(device_address), + &err)) { spice_qxl_set_device_info(&qxl->ssd.qxl, device_address, 0, qxl->max_outputs); + } else { + error_report_err(err); } #endif |