* [Qemu-devel] [PULL 0/3] spice patch queue
@ 2013-09-10 10:06 Gerd Hoffmann
0 siblings, 0 replies; 6+ messages in thread
From: Gerd Hoffmann @ 2013-09-10 10:06 UTC (permalink / raw)
To: qemu-devel; +Cc: Gerd Hoffmann
Hi,
Carrying three little fixes.
please pull,
Gerd
The following changes since commit 94c2b6aff43cdfcfdfb552773a6b6b973a72ef0b:
mips_malta: support up to 2GiB RAM (2013-09-09 18:42:22 +0200)
are available in the git repository at:
git://anongit.freedesktop.org/spice/qemu spice.v73
for you to fetch changes up to c58c7b959b93b864a27fd6b3646ee1465ab8832b:
qxl: fix local renderer (2013-09-10 11:14:08 +0200)
----------------------------------------------------------------
Christophe Fergeau (1):
spice-core: Use g_strdup_printf instead of snprintf
Gerd Hoffmann (2):
qxl: trace io port name
qxl: fix local renderer
hw/display/qxl-render.c | 15 ++++++++++-----
hw/display/qxl.c | 5 +++--
trace-events | 2 +-
ui/spice-core.c | 28 ++++++++++++++--------------
4 files changed, 28 insertions(+), 22 deletions(-)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Qemu-devel] [PULL 0/3] spice patch queue
@ 2014-03-10 13:16 Gerd Hoffmann
2014-03-10 13:16 ` [Qemu-devel] [PULL 1/3] spice: fix simple display surface handling Gerd Hoffmann
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Gerd Hoffmann @ 2014-03-10 13:16 UTC (permalink / raw)
To: qemu-devel; +Cc: Gerd Hoffmann
Hi,
Flushing the spice patch queue with a small collection
of three patches. No major changes in there.
please pull,
Gerd
The following changes since commit f53f3d0a00b6df39ce8dfca942608e5b6a9a4f71:
Merge remote-tracking branch 'remotes/kvaneesh/for-upstream' into staging (2014-03-08 12:38:43 +0000)
are available in the git repository at:
git://anongit.freedesktop.org/spice/qemu tags/pull-spice-4
for you to fetch changes up to c9dd4074df9b702090fa0e42c0101d75d44c7eb9:
configure: Prettify message for hosts without spice support (2014-03-10 13:57:36 +0100)
----------------------------------------------------------------
minor spice patches.
----------------------------------------------------------------
Gerd Hoffmann (2):
spice: fix simple display surface handling
spice: QemuUIInfo windup
Stefan Weil (1):
configure: Prettify message for hosts without spice support
configure | 4 ++++
ui/spice-display.c | 37 ++++++++++++++++++++++++++++++-------
2 files changed, 34 insertions(+), 7 deletions(-)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Qemu-devel] [PULL 1/3] spice: fix simple display surface handling
2014-03-10 13:16 [Qemu-devel] [PULL 0/3] spice patch queue Gerd Hoffmann
@ 2014-03-10 13:16 ` Gerd Hoffmann
2014-03-10 13:16 ` [Qemu-devel] [PULL 2/3] spice: QemuUIInfo windup Gerd Hoffmann
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Gerd Hoffmann @ 2014-03-10 13:16 UTC (permalink / raw)
To: qemu-devel; +Cc: Gerd Hoffmann, Anthony Liguori
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
ui/spice-display.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/ui/spice-display.c b/ui/spice-display.c
index 9bb42f1..2a1fbda 100644
--- a/ui/spice-display.c
+++ b/ui/spice-display.c
@@ -354,6 +354,7 @@ void qemu_spice_display_switch(SimpleSpiceDisplay *ssd,
DisplaySurface *surface)
{
SimpleSpiceUpdate *update;
+ bool need_destroy;
dprint(1, "%s/%d:\n", __func__, ssd->qxl.id);
@@ -366,14 +367,19 @@ void qemu_spice_display_switch(SimpleSpiceDisplay *ssd,
}
qemu_mutex_lock(&ssd->lock);
+ need_destroy = (ssd->ds != NULL);
ssd->ds = surface;
while ((update = QTAILQ_FIRST(&ssd->updates)) != NULL) {
QTAILQ_REMOVE(&ssd->updates, update, next);
qemu_spice_destroy_update(ssd, update);
}
qemu_mutex_unlock(&ssd->lock);
- qemu_spice_destroy_host_primary(ssd);
- qemu_spice_create_host_primary(ssd);
+ if (need_destroy) {
+ qemu_spice_destroy_host_primary(ssd);
+ }
+ if (ssd->ds) {
+ qemu_spice_create_host_primary(ssd);
+ }
memset(&ssd->dirty, 0, sizeof(ssd->dirty));
ssd->notify++;
@@ -610,8 +616,6 @@ static void qemu_spice_display_init_one(QemuConsole *con)
ssd->dcl.ops = &display_listener_ops;
ssd->dcl.con = con;
register_displaychangelistener(&ssd->dcl);
-
- qemu_spice_create_host_primary(ssd);
}
void qemu_spice_display_init(void)
--
1.8.3.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Qemu-devel] [PULL 2/3] spice: QemuUIInfo windup
2014-03-10 13:16 [Qemu-devel] [PULL 0/3] spice patch queue Gerd Hoffmann
2014-03-10 13:16 ` [Qemu-devel] [PULL 1/3] spice: fix simple display surface handling Gerd Hoffmann
@ 2014-03-10 13:16 ` Gerd Hoffmann
2014-03-10 13:16 ` [Qemu-devel] [PULL 3/3] configure: Prettify message for hosts without spice support Gerd Hoffmann
2014-03-11 13:22 ` [Qemu-devel] [PULL 0/3] spice patch queue Peter Maydell
3 siblings, 0 replies; 6+ messages in thread
From: Gerd Hoffmann @ 2014-03-10 13:16 UTC (permalink / raw)
To: qemu-devel; +Cc: Gerd Hoffmann, Anthony Liguori
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
ui/spice-display.c | 25 ++++++++++++++++++++++---
1 file changed, 22 insertions(+), 3 deletions(-)
diff --git a/ui/spice-display.c b/ui/spice-display.c
index 2a1fbda..e28698c 100644
--- a/ui/spice-display.c
+++ b/ui/spice-display.c
@@ -543,10 +543,29 @@ static void interface_set_client_capabilities(QXLInstance *sin,
}
static int interface_client_monitors_config(QXLInstance *sin,
- VDAgentMonitorsConfig *monitors_config)
+ VDAgentMonitorsConfig *mc)
{
- dprint(3, "%s:\n", __func__);
- return 0; /* == not supported by guest */
+ SimpleSpiceDisplay *ssd = container_of(sin, SimpleSpiceDisplay, qxl);
+ QemuUIInfo info;
+ int rc;
+
+ /*
+ * FIXME: multihead is tricky due to the way
+ * spice has multihead implemented.
+ */
+ memset(&info, 0, sizeof(info));
+ if (mc->num_of_monitors > 0) {
+ info.width = mc->monitors[0].width;
+ info.height = mc->monitors[0].height;
+ }
+ rc = dpy_set_ui_info(ssd->dcl.con, &info);
+ dprint(1, "%s/%d: size %dx%d, rc %d <--- ==========================\n",
+ __func__, ssd->qxl.id, info.width, info.height, rc);
+ if (rc != 0) {
+ return 0; /* == not supported by guest */
+ } else {
+ return 1;
+ }
}
static const QXLInterface dpy_interface = {
--
1.8.3.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Qemu-devel] [PULL 3/3] configure: Prettify message for hosts without spice support
2014-03-10 13:16 [Qemu-devel] [PULL 0/3] spice patch queue Gerd Hoffmann
2014-03-10 13:16 ` [Qemu-devel] [PULL 1/3] spice: fix simple display surface handling Gerd Hoffmann
2014-03-10 13:16 ` [Qemu-devel] [PULL 2/3] spice: QemuUIInfo windup Gerd Hoffmann
@ 2014-03-10 13:16 ` Gerd Hoffmann
2014-03-11 13:22 ` [Qemu-devel] [PULL 0/3] spice patch queue Peter Maydell
3 siblings, 0 replies; 6+ messages in thread
From: Gerd Hoffmann @ 2014-03-10 13:16 UTC (permalink / raw)
To: qemu-devel; +Cc: Stefan Weil, Gerd Hoffmann
From: Stefan Weil <sw@weilnetz.de>
Instead of
spice support no (/)
configure now prints
spice support no
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
configure | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/configure b/configure
index 8689435..ff72ee3 100755
--- a/configure
+++ b/configure
@@ -4107,7 +4107,11 @@ echo "vhost-net support $vhost_net"
echo "vhost-scsi support $vhost_scsi"
echo "Trace backend $trace_backend"
echo "Trace output file $trace_file-<pid>"
+if test "$spice" = "yes"; then
echo "spice support $spice ($spice_protocol_version/$spice_server_version)"
+else
+echo "spice support $spice"
+fi
echo "rbd support $rbd"
echo "xfsctl support $xfs"
echo "nss used $smartcard_nss"
--
1.8.3.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PULL 0/3] spice patch queue
2014-03-10 13:16 [Qemu-devel] [PULL 0/3] spice patch queue Gerd Hoffmann
` (2 preceding siblings ...)
2014-03-10 13:16 ` [Qemu-devel] [PULL 3/3] configure: Prettify message for hosts without spice support Gerd Hoffmann
@ 2014-03-11 13:22 ` Peter Maydell
3 siblings, 0 replies; 6+ messages in thread
From: Peter Maydell @ 2014-03-11 13:22 UTC (permalink / raw)
To: Gerd Hoffmann; +Cc: QEMU Developers
On 10 March 2014 13:16, Gerd Hoffmann <kraxel@redhat.com> wrote:
> Hi,
>
> Flushing the spice patch queue with a small collection
> of three patches. No major changes in there.
>
> please pull,
> Gerd
>
> The following changes since commit f53f3d0a00b6df39ce8dfca942608e5b6a9a4f71:
>
> Merge remote-tracking branch 'remotes/kvaneesh/for-upstream' into staging (2014-03-08 12:38:43 +0000)
>
> are available in the git repository at:
>
>
> git://anongit.freedesktop.org/spice/qemu tags/pull-spice-4
>
> for you to fetch changes up to c9dd4074df9b702090fa0e42c0101d75d44c7eb9:
>
> configure: Prettify message for hosts without spice support (2014-03-10 13:57:36 +0100)
Applied, thanks.
-- PMM
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-03-11 13:23 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-10 13:16 [Qemu-devel] [PULL 0/3] spice patch queue Gerd Hoffmann
2014-03-10 13:16 ` [Qemu-devel] [PULL 1/3] spice: fix simple display surface handling Gerd Hoffmann
2014-03-10 13:16 ` [Qemu-devel] [PULL 2/3] spice: QemuUIInfo windup Gerd Hoffmann
2014-03-10 13:16 ` [Qemu-devel] [PULL 3/3] configure: Prettify message for hosts without spice support Gerd Hoffmann
2014-03-11 13:22 ` [Qemu-devel] [PULL 0/3] spice patch queue Peter Maydell
-- strict thread matches above, loose matches on Subject: below --
2013-09-10 10:06 Gerd Hoffmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).