spice: Use new SpiceImageCompression definition
PATCH 1/2 spice: Use new SpiceImageCompression definition
Definitions were updated by spice-server in patch de66161 included in 0.12.6 released on 12th June 2015.
--- ui/spice-core.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
ui/spice-core.c +8 -8
@@ -331,12 +331,12 @@ static const char *stream_video_names[] = { stream_video_names, ARRAY_SIZE(stream_video_names))static const char *compression_names[] = { - [SPICE_IMAGE_COMPRESS_OFF ] ="off" , - [SPICE_IMAGE_COMPRESS_AUTO_GLZ ] ="auto_glz" , - [SPICE_IMAGE_COMPRESS_AUTO_LZ ] ="auto_lz" , - [SPICE_IMAGE_COMPRESS_QUIC ] ="quic" , - [SPICE_IMAGE_COMPRESS_GLZ ] ="glz" , - [SPICE_IMAGE_COMPRESS_LZ ] ="lz" , + [SPICE_IMAGE_COMPRESSION_OFF ] ="off" , + [SPICE_IMAGE_COMPRESSION_AUTO_GLZ ] ="auto_glz" , + [SPICE_IMAGE_COMPRESSION_AUTO_LZ ] ="auto_lz" , + [SPICE_IMAGE_COMPRESSION_QUIC ] ="quic" , + [SPICE_IMAGE_COMPRESSION_GLZ ] ="glz" , + [SPICE_IMAGE_COMPRESSION_LZ ] ="lz" , };#define parse_compression (_name) \ parse_name(_name, "image compression", \
@@ -643,7 +643,7 @@ void qemu_spice_init(void) *x509_cert_file =NULL , *x509_cacert_file =NULL ;int port, tls_port, addr_flags; -spice_image_compression_t compression; +SpiceImageCompression compression;spice_wan_compression_t wan_compr;bool seamless_migration;
@@ -754,7 +754,7 @@ void qemu_spice_init(void)#endif } - compression =SPICE_IMAGE_COMPRESS_AUTO_GLZ ; + compression =SPICE_IMAGE_COMPRESSION_AUTO_GLZ ; str =qemu_opt_get (opts,"image-compression" );if (str) { compression =parse_compression (str);
Signature · 1 line
2.17.2
PATCH 2/2 spice: Bump required spice-server version to 0.12.6
Version 0.12.6 was released on 12th June 2015.
--- chardev/spice.c | 12 ------------ configure | 4 ++-- hw/display/qxl.c | 27 --------------------------- hw/display/qxl.h | 2 -- include/ui/qemu-spice.h | 12 ------------ ui/spice-core.c | 8 -------- ui/spice-display.c | 10 ---------- 7 files changed, 2 insertions(+), 73 deletions(-)
chardev/spice.c +0 -12
@@ -77,7 +77,6 @@ static int vmc_read(SpiceCharDeviceInstance *sin, uint8_t *buf, int len)return bytes; } -#if SPICE_SERVER_VERSION >=0x000c02 static void vmc_event (SpiceCharDeviceInstance *sin,uint8_t event) {SpiceChardev *scd =container_of (sin, SpiceChardev, sin);
@@ -95,7 +94,6 @@ static void vmc_event(SpiceCharDeviceInstance *sin, uint8_t event)trace_spice_vmc_event (chr_event);qemu_chr_be_event (chr, chr_event); } -#endif static void vmc_state (SpiceCharDeviceInstance *sin,int connected) {
@@ -119,12 +117,8 @@ static SpiceCharDeviceInterface vmc_interface = { .state = vmc_state, .write = vmc_write, .read = vmc_read, -#if SPICE_SERVER_VERSION >= 0x000c02 .event = vmc_event, -#endif -#if SPICE_SERVER_VERSION >=0x000c06 .flags = SPICE_CHAR_DEVICE_NOTIFY_WRITABLE, -#endif };
@@ -223,9 +217,7 @@ static void char_spice_finalize(Object *obj) }g_free ((char *)s->sin.subtype); -#if SPICE_SERVER_VERSION >=0x000c02 g_free ((char *)s->sin.portname); -#endif }static void spice_vmc_set_fe_open (struct Chardev *chr,int fe_open)
@@ -240,7 +232,6 @@ static void spice_vmc_set_fe_open(struct Chardev *chr, int fe_open)static void spice_port_set_fe_open (struct Chardev *chr,int fe_open) { -#if SPICE_SERVER_VERSION >=0x000c02 SpiceChardev *s =SPICE_CHARDEV (chr);if (fe_open) {
@@ -248,7 +239,6 @@ static void spice_port_set_fe_open(struct Chardev *chr, int fe_open) }else {spice_server_port_event (&s->sin,SPICE_PORT_EVENT_CLOSED ); } -#endif }static void spice_chr_accept_input (struct Chardev *chr)
@@ -298,7 +288,6 @@ static void qemu_chr_open_spice_vmc(Chardev *chr,chr_open (chr, type); } -#if SPICE_SERVER_VERSION >=0x000c02 static void qemu_chr_open_spice_port(Chardev *chr, ChardevBackend *backend, bool *be_opened,
@@ -331,7 +320,6 @@ void qemu_spice_register_ports(void)vmc_register_interface (s); } } -#endif static void qemu_chr_parse_spice_vmc (QemuOpts *opts,ChardevBackend *backend,Error **errp)
configure +2 -2
@@ -4563,8 +4563,8 @@ int main(void) { spice_server_new(); return 0; } EOF spice_cflags=$($pkg_config --cflags spice-protocol spice-server 2>/dev/null) spice_libs=$($pkg_config --libs spice-protocol spice-server 2>/dev/null) - if $pkg_config --atleast-version=0.12.0 spice-server && \ - $pkg_config --atleast-version=0.12.3 spice-protocol && \ + if $pkg_config --atleast-version=0.12.6 spice-server && \ + $pkg_config --atleast-version=0.12.10 spice-protocol && \ compile_prog "$spice_cflags" "$spice_libs" ; then spice="yes" libs_softmmu="$libs_softmmu $spice_libs"
hw/display/qxl.c +0 -27
@@ -276,11 +276,9 @@ static void qxl_spice_monitors_config_async(PCIQXLDevice *qxl, int replay)QXL_COOKIE_TYPE_POST_LOAD_MONITORS_CONFIG , 0)); }else { -#if SPICE_SERVER_VERSION >=0x000c06 /* release 0.12.6 */ if (qxl->max_outputs) {spice_qxl_set_max_monitors (&qxl->ssd.qxl, qxl->max_outputs); } -#endif qxl->guest_monitors_config = qxl->ram->monitors_config; spice_qxl_monitors_config_async(&qxl->ssd.qxl, qxl->ram->monitors_config,
@@ -544,22 +542,6 @@ static void interface_set_compression_level(QXLInstance *sin, int level)qxl_rom_set_dirty (qxl); } -#if SPICE_NEEDS_SET_MM_TIME -static void interface_set_mm_time (QXLInstance *sin,uint32_t mm_time) -{ -PCIQXLDevice *qxl =container_of (sin, PCIQXLDevice, ssd.qxl); - -if (!qemu_spice_display_is_running (&qxl->ssd)) { -return ; - } - -trace_qxl_interface_set_mm_time (qxl->id, mm_time); - qxl->shadow_rom.mm_clock =cpu_to_le32 (mm_time); - qxl->rom->mm_clock =cpu_to_le32 (mm_time); -qxl_rom_set_dirty (qxl); -} -#endif -static void interface_get_init_info (QXLInstance *sin,QXLDevInitInfo *info) {PCIQXLDevice *qxl =container_of (sin, PCIQXLDevice, ssd.qxl);
@@ -1106,12 +1088,10 @@ static int interface_client_monitors_config(QXLInstance *sin,return 1 ; } -#if SPICE_SERVER_VERSION >=0x000c06 /* release 0.12.6 */ /* limit number of outputs based on setting limit */ if (qxl->max_outputs && qxl->max_outputs <= max_outputs) { max_outputs = qxl->max_outputs; } -#endif config_changed = qxl_rom_monitors_config_changed(rom, monitors_config,
@@ -1160,9 +1140,6 @@ static const QXLInterface qxl_interface = { .attache_worker = interface_attach_worker, .set_compression_level = interface_set_compression_level, -#if SPICE_NEEDS_SET_MM_TIME - .set_mm_time = interface_set_mm_time, -#endif .get_init_info = interface_get_init_info,/* the callbacks below are called from spice server thread context */
@@ -1189,9 +1166,7 @@ static void qxl_enter_vga_mode(PCIQXLDevice *d)return ; }trace_qxl_enter_vga_mode (d->id); -#if SPICE_SERVER_VERSION >=0x000c03 /* release 0.12.3 */ spice_qxl_driver_unload (&d->ssd.qxl); -#endif graphic_console_set_hwops (d->ssd.dcl.con, d->vga.hw_ops, &d->vga);update_displaychangelistener (&d->ssd.dcl,GUI_REFRESH_INTERVAL_DEFAULT );qemu_spice_create_host_primary (&d->ssd);
@@ -2443,9 +2418,7 @@ static Property qxl_properties[] = {DEFINE_PROP_UINT32 ("vram64_size_mb" , PCIQXLDevice, vram_size_mb,-1 ),DEFINE_PROP_UINT32 ("vgamem_mb" , PCIQXLDevice, vgamem_size_mb,16 ),DEFINE_PROP_INT32 ("surfaces" , PCIQXLDevice, ssd.num_surfaces,1024 ), -#if SPICE_SERVER_VERSION >= 0x000c06 /* release 0.12.6 */DEFINE_PROP_UINT16 ("max_outputs" , PCIQXLDevice, max_outputs,0 ), -#endifDEFINE_PROP_UINT32 ("xres" , PCIQXLDevice, xres,0 ),DEFINE_PROP_UINT32 ("yres" , PCIQXLDevice, yres,0 ), DEFINE_PROP_BOOL("global-vmstate", PCIQXLDevice, vga.global_vmstate, false),
hw/display/qxl.h +0 -2
@@ -102,9 +102,7 @@ typedef struct PCIQXLDevice {QXLModes *modes;uint32_t rom_size;MemoryRegion rom_bar; -#if SPICE_SERVER_VERSION >=0x000c06 /* release 0.12.6 */ uint16_t max_outputs; -#endif /* vram pci bar */ uint64_t vram_size;
include/ui/qemu-spice.h +0 -12
@@ -40,19 +40,7 @@ int qemu_spice_set_passwd(const char *passwd,int qemu_spice_set_pw_expire (time_t expires);int qemu_spice_migrate_info (const char *hostname,int port,int tls_port,const char *subject); - -#if !defined(SPICE_SERVER_VERSION ) || (SPICE_SERVER_VERSION <0xc06 ) -#define SPICE_NEEDS_SET_MM_TIME 1 -#else -#define SPICE_NEEDS_SET_MM_TIME 0 -#endif - -#if SPICE_SERVER_VERSION >=0x000c02 void qemu_spice_register_ports (void ); -#else -static inline Chardev *qemu_chr_open_spice_port (const char *name) -{return NULL ; } -#endif #else /* CONFIG_SPICE */
ui/spice-core.c +0 -8
@@ -745,13 +745,7 @@ void qemu_spice_init(void) }if (qemu_opt_get_bool (opts,"disable-agent-file-xfer" ,0 )) { -#if SPICE_SERVER_VERSION >=0x000c04 spice_server_set_agent_file_xfer (spice_server, false); -#else -error_report ("this qemu build does not support the " -"\"disable-agent-file-xfer\" option" ); -exit (1 ); -#endif } compression =SPICE_IMAGE_COMPRESSION_AUTO_GLZ ;
@@ -817,9 +811,7 @@ void qemu_spice_init(void)g_free (x509_cert_file);g_free (x509_cacert_file); -#if SPICE_SERVER_VERSION >=0x000c02 qemu_spice_register_ports (); -#endif #ifdef HAVE_SPICE_GL if (qemu_opt_get_bool (opts,"gl" ,0 )) {
ui/spice-display.c +0 -10
@@ -509,13 +509,6 @@ static void interface_set_compression_level(QXLInstance *sin, int level)/* nothing to do */ } -#if SPICE_NEEDS_SET_MM_TIME -static void interface_set_mm_time (QXLInstance *sin,uint32_t mm_time) -{ -/* nothing to do */ -} -#endif -static void interface_get_init_info (QXLInstance *sin,QXLDevInitInfo *info) {SimpleSpiceDisplay *ssd =container_of (sin, SimpleSpiceDisplay, qxl);
@@ -711,9 +704,6 @@ static const QXLInterface dpy_interface = { .attache_worker = interface_attach_worker, .set_compression_level = interface_set_compression_level, -#if SPICE_NEEDS_SET_MM_TIME - .set_mm_time = interface_set_mm_time, -#endif .get_init_info = interface_get_init_info,/* the callbacks below are called from spice server thread context */
Signature · 1 line
2.17.2
Re: [Qemu-devel] [Spice-devel] [PATCH 2/2] spice: Bump required spice-server version to 0.12.6
Quoted 94 lines · Frediano Ziglio
Version 0.12.6 was released on 12th June 2015.
Signed-off-by Frediano Ziglio <[email protected]>--- chardev/spice.c | 12 ------------ configure | 4 ++-- hw/display/qxl.c | 27 --------------------------- hw/display/qxl.h | 2 -- include/ui/qemu-spice.h | 12 ------------ ui/spice-core.c | 8 -------- ui/spice-display.c | 10 ---------- 7 files changed, 2 insertions(+), 73 deletions(-)chardev/spice.c +0
-12@@ -77,7 +77,6 @@ static int vmc_read(SpiceCharDeviceInstance *sin, uint8_t *buf, int len)return bytes; } -#if SPICE_SERVER_VERSION >=0x000c02 static void vmc_event (SpiceCharDeviceInstance *sin,uint8_t event) {SpiceChardev *scd =container_of (sin, SpiceChardev, sin);@@ -95,7 +94,6 @@ static void vmc_event(SpiceCharDeviceInstance *sin, uint8_t event)trace_spice_vmc_event (chr_event);qemu_chr_be_event (chr, chr_event); } -#endif static void vmc_state (SpiceCharDeviceInstance *sin,int connected) {@@ -119,12 +117,8 @@ static SpiceCharDeviceInterface vmc_interface = { .state = vmc_state, .write = vmc_write, .read = vmc_read, -#if SPICE_SERVER_VERSION >= 0x000c02 .event = vmc_event, -#endif -#if SPICE_SERVER_VERSION >=0x000c06 .flags = SPICE_CHAR_DEVICE_NOTIFY_WRITABLE, -#endif };@@ -223,9 +217,7 @@ static void char_spice_finalize(Object *obj) }g_free ((char *)s->sin.subtype); -#if SPICE_SERVER_VERSION >=0x000c02 g_free ((char *)s->sin.portname); -#endif }static void spice_vmc_set_fe_open (struct Chardev *chr,int fe_open)@@ -240,7 +232,6 @@ static void spice_vmc_set_fe_open(struct Chardev *chr, int fe_open)static void spice_port_set_fe_open (struct Chardev *chr,int fe_open) { -#if SPICE_SERVER_VERSION >=0x000c02 SpiceChardev *s =SPICE_CHARDEV (chr);if (fe_open) {@@ -248,7 +239,6 @@ static void spice_port_set_fe_open(struct Chardev *chr, int fe_open) }else {spice_server_port_event (&s->sin,SPICE_PORT_EVENT_CLOSED ); } -#endif }static void spice_chr_accept_input (struct Chardev *chr)@@ -298,7 +288,6 @@ static void qemu_chr_open_spice_vmc(Chardev *chr,chr_open (chr, type); } -#if SPICE_SERVER_VERSION >=0x000c02 static void qemu_chr_open_spice_port(Chardev *chr, ChardevBackend *backend, bool *be_opened,@@ -331,7 +320,6 @@ void qemu_spice_register_ports(void)vmc_register_interface (s); } } -#endif static void qemu_chr_parse_spice_vmc (QemuOpts *opts,ChardevBackend *backend,Error **errp)configure +0
-0
configure int main(void) { spice_server_new(); return 0; } · line 4567
Quoted 7 lines
configure +2
-2@@ -4563,8 +4563,8 @@ int main(void) { spice_server_new(); return 0; } EOF spice_cflags=$($pkg_config --cflags spice-protocol spice-server 2>/dev/null) spice_libs=$($pkg_config --libs spice-protocol spice-server 2>/dev/null) - if $pkg_config --atleast-version=0.12.0 spice-server && \ - $pkg_config --atleast-version=0.12.3 spice-protocol && \ + if $pkg_config --atleast-version=0.12.6 spice-server && \ + $pkg_config --atleast-version=0.12.10 spice-protocol && \
Why do you bump spice-protocol?
Quoted 186 lines
configure +0
-0compile_prog "$spice_cflags" "$spice_libs" ; then spice="yes" libs_softmmu="$libs_softmmu $spice_libs"hw/display/qxl.c +0
-27@@ -276,11 +276,9 @@ static void qxl_spice_monitors_config_async(PCIQXLDevice *qxl, int replay)QXL_COOKIE_TYPE_POST_LOAD_MONITORS_CONFIG , 0)); }else { -#if SPICE_SERVER_VERSION >=0x000c06 /* release 0.12.6 */ if (qxl->max_outputs) {spice_qxl_set_max_monitors (&qxl->ssd.qxl, qxl->max_outputs); } -#endif qxl->guest_monitors_config = qxl->ram->monitors_config; spice_qxl_monitors_config_async(&qxl->ssd.qxl, qxl->ram->monitors_config,@@ -544,22 +542,6 @@ static void interface_set_compression_level(QXLInstance *sin, int level)qxl_rom_set_dirty (qxl); } -#if SPICE_NEEDS_SET_MM_TIME -static void interface_set_mm_time (QXLInstance *sin,uint32_t mm_time) -{ -PCIQXLDevice *qxl =container_of (sin, PCIQXLDevice, ssd.qxl); - -if (!qemu_spice_display_is_running (&qxl->ssd)) { -return ; - } - -trace_qxl_interface_set_mm_time (qxl->id, mm_time); - qxl->shadow_rom.mm_clock =cpu_to_le32 (mm_time); - qxl->rom->mm_clock =cpu_to_le32 (mm_time); -qxl_rom_set_dirty (qxl); -} -#endif -static void interface_get_init_info (QXLInstance *sin,QXLDevInitInfo *info) {PCIQXLDevice *qxl =container_of (sin, PCIQXLDevice, ssd.qxl);@@ -1106,12 +1088,10 @@ static int interface_client_monitors_config(QXLInstance *sin,return 1 ; } -#if SPICE_SERVER_VERSION >=0x000c06 /* release 0.12.6 */ /* limit number of outputs based on setting limit */ if (qxl->max_outputs && qxl->max_outputs <= max_outputs) { max_outputs = qxl->max_outputs; } -#endif config_changed = qxl_rom_monitors_config_changed(rom, monitors_config,@@ -1160,9 +1140,6 @@ static const QXLInterface qxl_interface = { .attache_worker = interface_attach_worker, .set_compression_level = interface_set_compression_level, -#if SPICE_NEEDS_SET_MM_TIME - .set_mm_time = interface_set_mm_time, -#endif .get_init_info = interface_get_init_info,/* the callbacks below are called from spice server thread context */ @@ -1189,9 +1166,7 @@ static void qxl_enter_vga_mode(PCIQXLDevice *d)return ; }trace_qxl_enter_vga_mode (d->id); -#if SPICE_SERVER_VERSION >=0x000c03 /* release 0.12.3 */ spice_qxl_driver_unload (&d->ssd.qxl); -#endif graphic_console_set_hwops (d->ssd.dcl.con, d->vga.hw_ops, &d->vga);update_displaychangelistener (&d->ssd.dcl,GUI_REFRESH_INTERVAL_DEFAULT );qemu_spice_create_host_primary (&d->ssd);@@ -2443,9 +2418,7 @@ static Property qxl_properties[] = {DEFINE_PROP_UINT32 ("vram64_size_mb" , PCIQXLDevice, vram_size_mb,-1 ),DEFINE_PROP_UINT32 ("vgamem_mb" , PCIQXLDevice, vgamem_size_mb,16 ),DEFINE_PROP_INT32 ("surfaces" , PCIQXLDevice, ssd.num_surfaces,1024 ), -#if SPICE_SERVER_VERSION >= 0x000c06 /* release 0.12.6 */DEFINE_PROP_UINT16 ("max_outputs" , PCIQXLDevice, max_outputs,0 ), -#endifDEFINE_PROP_UINT32 ("xres" , PCIQXLDevice, xres,0 ),DEFINE_PROP_UINT32 ("yres" , PCIQXLDevice, yres,0 ), DEFINE_PROP_BOOL("global-vmstate", PCIQXLDevice, vga.global_vmstate, false),hw/display/qxl.h +0
-2@@ -102,9 +102,7 @@ typedef struct PCIQXLDevice {QXLModes *modes;uint32_t rom_size;MemoryRegion rom_bar; -#if SPICE_SERVER_VERSION >=0x000c06 /* release 0.12.6 */ uint16_t max_outputs; -#endif /* vram pci bar */ uint64_t vram_size;include/ui/qemu-spice.h +0
-12@@ -40,19 +40,7 @@ int qemu_spice_set_passwd(const char *passwd,int qemu_spice_set_pw_expire (time_t expires);int qemu_spice_migrate_info (const char *hostname,int port,int tls_port,const char *subject); - -#if !defined(SPICE_SERVER_VERSION ) || (SPICE_SERVER_VERSION <0xc06 ) -#define SPICE_NEEDS_SET_MM_TIME 1 -#else -#define SPICE_NEEDS_SET_MM_TIME 0 -#endif - -#if SPICE_SERVER_VERSION >=0x000c02 void qemu_spice_register_ports (void ); -#else -static inline Chardev *qemu_chr_open_spice_port (const char *name) -{return NULL ; } -#endif #else /* CONFIG_SPICE */ ui/spice-core.c +0
-8@@ -745,13 +745,7 @@ void qemu_spice_init(void) }if (qemu_opt_get_bool (opts,"disable-agent-file-xfer" ,0 )) { -#if SPICE_SERVER_VERSION >=0x000c04 spice_server_set_agent_file_xfer (spice_server, false); -#else -error_report ("this qemu build does not support the " -"\"disable-agent-file-xfer\" option" ); -exit (1 ); -#endif } compression =SPICE_IMAGE_COMPRESSION_AUTO_GLZ ;@@ -817,9 +811,7 @@ void qemu_spice_init(void)g_free (x509_cert_file);g_free (x509_cacert_file); -#if SPICE_SERVER_VERSION >=0x000c02 qemu_spice_register_ports (); -#endif #ifdef HAVE_SPICE_GL if (qemu_opt_get_bool (opts,"gl" ,0 )) {ui/spice-display.c +0
-11@@ -509,13 +509,6 @@ static void interface_set_compression_level(QXLInstance *sin, int level)/* nothing to do */ } -#if SPICE_NEEDS_SET_MM_TIME -static void interface_set_mm_time (QXLInstance *sin,uint32_t mm_time) -{ -/* nothing to do */ -} -#endif -static void interface_get_init_info (QXLInstance *sin,QXLDevInitInfo *info) {SimpleSpiceDisplay *ssd =container_of (sin, SimpleSpiceDisplay, qxl);@@ -711,9 +704,6 @@ static const QXLInterface dpy_interface = { .attache_worker = interface_attach_worker, .set_compression_level = interface_set_compression_level, -#if SPICE_NEEDS_SET_MM_TIME - .set_mm_time = interface_set_mm_time, -#endif .get_init_info = interface_get_init_info,/* the callbacks below are called from spice server thread context */ --2.17.2
_______________________________________________
Spice-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/spice-devel
Signature · 1 line
Marc-André Lureau
Re: [Qemu-devel] [Spice-devel] [PATCH 2/2] spice: Bump required spice-server version to 0.12.6
Quoted 103 lines · Frediano Ziglio
Quoted 101 lines
Version 0.12.6 was released on 12th June 2015.
Signed-off-by Frediano Ziglio <[email protected]>--- chardev/spice.c | 12 ------------ configure | 4 ++-- hw/display/qxl.c | 27 --------------------------- hw/display/qxl.h | 2 -- include/ui/qemu-spice.h | 12 ------------ ui/spice-core.c | 8 -------- ui/spice-display.c | 10 ---------- 7 files changed, 2 insertions(+), 73 deletions(-)chardev/spice.c +0
-1@@ -77,7 +77,6 @@ static int vmc_read(SpiceCharDeviceInstance *sin, uint8_t *buf, int len)return bytes; } -#if SPICE_SERVER_VERSION >=0x000c02 static void vmc_event (SpiceCharDeviceInstance *sin,uint8_t event) {SpiceChardev *scd = container_of(sin, SpiceChardev, sin);chardev/spice.c +0
-1@@ -95,7 +94,6 @@ static void vmc_event(SpiceCharDeviceInstance *sin, uint8_t event)trace_spice_vmc_event (chr_event );qemu_chr_be_event (chr, chr_event); } -#endif static void vmc_state (SpiceCharDeviceInstance *sin,int connected){
chardev/spice.c +0
-7@@ -119,12 +117,8 @@ static SpiceCharDeviceInterface vmc_interface = { .state = vmc_state, .write = vmc_write, .read = vmc_read, -#if SPICE_SERVER_VERSION >= 0x000c02 .event = vmc_event, -#endif -#if SPICE_SERVER_VERSION >=0x000c06 .flags = SPICE_CHAR_DEVICE_NOTIFY_WRITABLE, -#endif };@@ -223,9 +217,7 @@ static void char_spice_finalize(Object *obj) }g_free ((char *)s->sin.subtype); -#if SPICE_SERVER_VERSION >=0x000c02 g_free ((char *)s->sin.portname); -#endif }static void spice_vmc_set_fe_open (struct Chardev *chr,int fe_open)@@ -240,7 +232,6 @@ static void spice_vmc_set_fe_open(struct Chardev *chr, int fe_open)static void spice_port_set_fe_open (struct Chardev *chr,int fe_open) { -#if SPICE_SERVER_VERSION >=0x000c02 SpiceChardev *s =SPICE_CHARDEV (chr);if (fe_open) {chardev/spice.c +0
-1@@ -248,7 +239,6 @@ static void spice_port_set_fe_open(struct Chardev *chr, int fe_open) }else {spice_server_port_event (&s->sin,SPICE_PORT_EVENT_CLOSED ); } -#endif }static void
spice_chr_accept_input(struct Chardev *chr)chardev/spice.c +0
-2@@ -298,7 +288,6 @@ static void qemu_chr_open_spice_vmc(Chardev *chr,chr_open (chr, type); } -#if SPICE_SERVER_VERSION >=0x000c02 static void qemu_chr_open_spice_port(Chardev *chr, ChardevBackend *backend, bool *be_opened,@@ -331,7 +320,6 @@ void qemu_spice_register_ports(void)vmc_register_interface (s); } } -#endif static void qemu_chr_parse_spice_vmc(QemuOpts *opts, ChardevBackend *backend,Error **errp)
configure +0
-0@@ -4563,8 +4563,8 @@ int main(void) { spice_server_new(); return 0; } EOF spice_cflags=$($pkg_config --cflags spice-protocol spice-server
Quoted 9 lines
configure int main(void) { spice_server_new(); return 0; } · line 4567
Quoted 6 lines
configure +2
-22>/dev/null) spice_libs=$($pkg_config --libs spice-protocol spice-server 2>/dev/null) - if $pkg_config --atleast-version=0.12.0 spice-server && \ - $pkg_config --atleast-version=0.12.3 spice-protocol && \ + if $pkg_config --atleast-version=0.12.6 spice-server && \ + $pkg_config --atleast-version=0.12.10 spice-protocol && \Why do you bump spice-protocol?
Why not? spice-server 0.12.6 requires spice-protocol 0.12.10.
Frediano
Re: [Qemu-devel] [PATCH 2/2] spice: Bump required spice-server version to 0.12.6
In reply to Frediano ZiglioQuoted 1 line · Frediano Ziglio
Version 0.12.6 was released on 12th June 2015.
That patch should be first, can you reorder them please?
thanks,
Gerd
PS: Tried to just reverse ordering when queuing up, but #2 doesn't apply
to master, seems there is some dependency ...
Re: [Qemu-devel] [Spice-devel] [PATCH 2/2] spice: Bump required spice-server version to 0.12.6
Hi
Quoted 6 lines · Gerd Hoffmann
Quoted 1 line · Frediano Ziglio
Version 0.12.6 was released on 12th June 2015.
That patch should be first, can you reorder them please?
I will resend my series with the 0.12.6 bump first/early.
Quoted 10 lines
thanks,
GerdPS: Tried to just reverse ordering when queuing up, but #2 doesn't apply
to master, seems there is some dependency ..._______________________________________________
Spice-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/spice-devel
Signature · 1 line
Marc-André Lureau