spice patch queue
Hi,
Here comes the spice patch queue with two little fixes queued up and and extension of the "info spice" monitor command which reports the spice version too now.
please pull,
Gerd
The following changes since commit b9c6cbff76061537b722d55f0e321dde2a612a23:
Merge remote-tracking branch 'pm-arm/for-upstream' into pm (2011-08-09 19:16:43 +0200)
are available in the git repository at:
git://anongit.freedesktop.org/spice/qemu spice.v41
Alon Levy (2):
qxl: unbreak after memory API conversion ui/spice-core: report compiled-version in info spice/query-spice
Yonit Halperin (1):
qxl: allowing the command rings to be not empty when spice worker is stopped RHBZ #728984
hw/qxl.c | 13 ++++++------- ui/spice-core.c | 8 ++++++++ 2 files changed, 14 insertions(+), 7 deletions(-)
PATCH 1/3 qxl: allowing the command rings to be not empty when spice worker is stopped RHBZ #728984
From: Yonit Halperin <[email protected]>
same as 8927cfbba232e28304734f7afd463c1b84134031, but for qxl_check_state, that was triggered by qxl_pre_load (which calls qxl_hard_reset, which calls qxl_soft_reset), and caused the migration target to crash.
--- hw/qxl.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-)
hw/qxl.c +3 -5
@@ -821,17 +821,15 @@ static void qxl_check_state(PCIQXLDevice *d) {QXLRam *ram = d->ram; -assert (SPICE_RING_IS_EMPTY (&ram->cmd_ring)); -assert (SPICE_RING_IS_EMPTY (&ram->cursor_ring)); +assert (!d->ssd.running ||SPICE_RING_IS_EMPTY (&ram->cmd_ring)); +assert (!d->ssd.running ||SPICE_RING_IS_EMPTY (&ram->cursor_ring)); }static void qxl_reset_state (PCIQXLDevice *d) { -QXLRam *ram = d->ram;QXLRom *rom = d->rom; -assert (!d->ssd.running ||SPICE_RING_IS_EMPTY (&ram->cmd_ring)); -assert (!d->ssd.running ||SPICE_RING_IS_EMPTY (&ram->cursor_ring)); +qxl_check_state (d); d->shadow_rom.update_id =cpu_to_le32 (0 ); *rom = d->shadow_rom;qxl_rom_set_dirty (d);
Signature · 1 line
1.7.1
PATCH 2/3 qxl: unbreak after memory API conversion
In reply to Gerd HoffmannFrom: Alon Levy <[email protected]>
Break is only noticable with newer spice-server library (0.8.2 release or 0.9.0 and newer on master branch).
ioport_write's val was changed from uint32_t to uint64_t, this broke two printfs. Use PRId64 instead of %d.
--- hw/qxl.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
hw/qxl.c +3 -2
@@ -1187,7 +1187,7 @@ async_common: } d->current_async = orig_io_port;qemu_mutex_unlock (&d->async_lock); -dprint (d,2 ,"start async %d (%d)\n" , io_port, val); +dprint (d,2 ,"start async %d (%" PRId64")\n" , io_port, val);break ;default :break ;
@@ -1303,7 +1303,8 @@ async_common:break ; }case QXL_IO_FLUSH_SURFACES_ASYNC : -dprint (d,1 ,"QXL_IO_FLUSH_SURFACES_ASYNC (%d) (%s, s#=%d, res#=%d)\n" , +dprint (d,1 ,"QXL_IO_FLUSH_SURFACES_ASYNC" +" (%" PRId64") (%s, s#=%d, res#=%d)\n" , val,qxl_mode_to_string (d->mode), d->guest_surfaces.count, d->num_free_res);qxl_spice_flush_surfaces_async (d);
Signature · 1 line
1.7.1
PATCH 3/3 ui/spice-core: report compiled-version in info spice/query-spice
In reply to Gerd HoffmannFrom: Alon Levy <[email protected]>
--- ui/spice-core.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
ui/spice-core.c +8 -0
@@ -372,6 +372,8 @@ void do_info_spice_print(Monitor *mon, const QObject *data)monitor_printf (mon," address: %s:%d [tls]\n" , host, port); }monitor_printf (mon," auth: %s\n" ,qdict_get_str (server,"auth" )); +monitor_printf (mon," compiled: %s\n" , +qdict_get_str (server,"compiled-version" )); channels =qdict_get_qlist (server,"channels" );if (qlist_empty (channels)) {
@@ -388,6 +390,7 @@ void do_info_spice(Monitor *mon, QObject **ret_data)QList *clist;const char *addr;int port, tls_port; +char version_string[20 ];/* 12 = |255.255.255\0| is the max */ if (!spice_server) { *ret_data =qobject_from_jsonf ("{ 'enabled': false }" );
@@ -403,6 +406,11 @@ void do_info_spice(Monitor *mon, QObject **ret_data)qdict_put (server,"enabled" ,qbool_from_int (true));qdict_put (server,"auth" ,qstring_from_str (auth));qdict_put (server,"host" ,qstring_from_str (addr ? addr :"0.0.0.0" )); +snprintf (version_string,sizeof (version_string),"%d.%d.%d" , + (SPICE_SERVER_VERSION &0xff0000 ) >>16 , + (SPICE_SERVER_VERSION &0xff00 ) >>8 , +SPICE_SERVER_VERSION &0xff ); +qdict_put (server,"compiled-version" ,qstring_from_str (version_string));if (port) {qdict_put (server,"port" ,qint_from_int (port)); }
Signature · 1 line
1.7.1
Quoted 5 lines · Gerd Hoffmann
Hi,
Here comes the spice patch queue with two little fixes queued up and and extension of the "info spice" monitor command which reports the spice version too now.
Should the two fixes go to stable?
/mjt
Quoted 8 lines · Michael Tokarev
Quoted 5 lines · Gerd Hoffmann
Hi,Here comes the spice patch queue with two little fixes queued up and and extension of the "info spice" monitor command which reports the spice version too now.
Should the two fixes go to stable?
No, it fixes stuff which is in master only.
cheers,
Gerd
Quoted 5 lines · Gerd Hoffmann
Hi,Here comes the spice patch queue with two little fixes queued up and and extension of the "info spice" monitor command which reports the spice version too now.
Pulled. Thanks.
Regards,
Anthony Liguori
Quoted 24 lines
please pull,
GerdThe following changes since commit
b9c6cbff76061537b722d55f0e321dde2a612a23:Merge remote-tracking branch 'pm-arm/for-upstream' into pm (2011-08-09 19:16:43 +0200)are available in the git repository at:
git://anongit.freedesktop.org/spice/qemuspice.v41Alon Levy (2):
qxl: unbreak after memory API conversion ui/spice-core: report compiled-version in info spice/query-spiceYonit Halperin (1):
qxl: allowing the command rings to be not empty when spice worker is stopped RHBZ #728984hw/qxl.c | 13 ++++++------- ui/spice-core.c | 8 ++++++++ 2 files changed, 14 insertions(+), 7 deletions(-)