All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PULL for-1.3 0/2] spice patch queue
@ 2012-11-21 13:48 Gerd Hoffmann
  2012-11-21 13:48 ` [Qemu-devel] [PATCH 1/2] Fix the inconsistency in x509-dh-key-file parameter Gerd Hoffmann
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Gerd Hoffmann @ 2012-11-21 13:48 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

  Hi,

Spice patch queue, featuring two bugfixes for 1.3.

please pull,
  Gerd

The following changes since commit 1ccbc2851282564308f790753d7158487b6af8e2:

  qemu-sockets: Fix parsing of the inet option 'to'. (2012-11-21 12:07:59 +0400)

are available in the git repository at:
  git://anongit.freedesktop.org/spice/qemu spice.v64

Gerd Hoffmann (1):
      spice: add new spice-server callbacks to ui/spice-display.c

Lei Li (1):
      Fix the inconsistency in x509-dh-key-file parameter

 ui/spice-core.c    |    2 +-
 ui/spice-display.c |   35 +++++++++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+), 1 deletions(-)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Qemu-devel] [PATCH 1/2] Fix the inconsistency in x509-dh-key-file parameter
  2012-11-21 13:48 [Qemu-devel] [PULL for-1.3 0/2] spice patch queue Gerd Hoffmann
@ 2012-11-21 13:48 ` Gerd Hoffmann
  2012-11-21 13:48 ` [Qemu-devel] [PATCH 1/2] vga: fix bochs alignment issue Gerd Hoffmann
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Gerd Hoffmann @ 2012-11-21 13:48 UTC (permalink / raw)
  To: qemu-devel; +Cc: Lei Li, Gerd Hoffmann

From: Lei Li <lilei@linux.vnet.ibm.com>

Commit c448e8552b0f6135dabddf944a7110f929c08320 (spice: tls
support) added options to the -spice command line. But there
is an inconsistency between the declaration of the option
'x509-dh-key-file' to -spice command line and its parameter
parsing 'x509-dh-file' in function qemu_spice_init.

https://bugs.launchpad.net/qemu/+bug/1035042

Reported-by: Alon Bar-Lev <alon.barlev@gmail.com>
Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 ui/spice-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ui/spice-core.c b/ui/spice-core.c
index 5147365..261c6f2 100644
--- a/ui/spice-core.c
+++ b/ui/spice-core.c
@@ -610,7 +610,7 @@ void qemu_spice_init(void)
         }
 
         x509_key_password = qemu_opt_get(opts, "x509-key-password");
-        x509_dh_file = qemu_opt_get(opts, "x509-dh-file");
+        x509_dh_file = qemu_opt_get(opts, "x509-dh-key-file");
         tls_ciphers = qemu_opt_get(opts, "tls-ciphers");
     }
 
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Qemu-devel] [PATCH 1/2] vga: fix bochs alignment issue
  2012-11-21 13:48 [Qemu-devel] [PULL for-1.3 0/2] spice patch queue Gerd Hoffmann
  2012-11-21 13:48 ` [Qemu-devel] [PATCH 1/2] Fix the inconsistency in x509-dh-key-file parameter Gerd Hoffmann
@ 2012-11-21 13:48 ` Gerd Hoffmann
  2012-11-21 13:48 ` [Qemu-devel] [PATCH 2/2] spice: add new spice-server callbacks to ui/spice-display.c Gerd Hoffmann
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Gerd Hoffmann @ 2012-11-21 13:48 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

The bochs dispi interface traditionally uses port 0x1ce as 16bit index
register and port 0x1cf as 16bit data register.  The later is unaligned,
and probably for that reason the the data register was moved to 0x1d0
for non-x86 archs.

This patch makes the data register available at 0x1d0 on x86 too.  The
old x86 location is kept for compatibility reasons, so both 0x1cf and
0x1d0 can be used as data register on x86.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 docs/specs/standard-vga.txt |    3 ++-
 hw/vga.c                    |    3 +--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/docs/specs/standard-vga.txt b/docs/specs/standard-vga.txt
index 1cecccd..8a4c1e9 100644
--- a/docs/specs/standard-vga.txt
+++ b/docs/specs/standard-vga.txt
@@ -36,7 +36,8 @@ IO ports used
 
 03c0 - 03df : standard vga ports
 01ce        : bochs vbe interface index port
-01cf        : bochs vbe interface data port
+01cf        : bochs vbe interface data port (x86 only)
+01d0        : bochs vbe interface data port
 
 
 Memory regions used
diff --git a/hw/vga.c b/hw/vga.c
index 81aa76b..2b0200a 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -2321,9 +2321,8 @@ static const MemoryRegionPortio vbe_portio_list[] = {
     { 0, 1, 2, .read = vbe_ioport_read_index, .write = vbe_ioport_write_index },
 # ifdef TARGET_I386
     { 1, 1, 2, .read = vbe_ioport_read_data, .write = vbe_ioport_write_data },
-# else
-    { 2, 1, 2, .read = vbe_ioport_read_data, .write = vbe_ioport_write_data },
 # endif
+    { 2, 1, 2, .read = vbe_ioport_read_data, .write = vbe_ioport_write_data },
     PORTIO_END_OF_LIST(),
 };
 
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Qemu-devel] [PATCH 2/2] spice: add new spice-server callbacks to ui/spice-display.c
  2012-11-21 13:48 [Qemu-devel] [PULL for-1.3 0/2] spice patch queue Gerd Hoffmann
  2012-11-21 13:48 ` [Qemu-devel] [PATCH 1/2] Fix the inconsistency in x509-dh-key-file parameter Gerd Hoffmann
  2012-11-21 13:48 ` [Qemu-devel] [PATCH 1/2] vga: fix bochs alignment issue Gerd Hoffmann
@ 2012-11-21 13:48 ` Gerd Hoffmann
  2012-11-21 13:48 ` [Qemu-devel] [PATCH 2/2] vga: fix mmio vga register mapping Gerd Hoffmann
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Gerd Hoffmann @ 2012-11-21 13:48 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

Otherwise qemu crashes with non-qxl graphics cards.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 ui/spice-display.c |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/ui/spice-display.c b/ui/spice-display.c
index 0cc0116..6aff336 100644
--- a/ui/spice-display.c
+++ b/ui/spice-display.c
@@ -525,6 +525,37 @@ static int interface_flush_resources(QXLInstance *sin)
     return 0;
 }
 
+static void interface_update_area_complete(QXLInstance *sin,
+        uint32_t surface_id,
+        QXLRect *dirty, uint32_t num_updated_rects)
+{
+    /* should never be called, used in qxl native mode only */
+    fprintf(stderr, "%s: abort()\n", __func__);
+    abort();
+}
+
+/* called from spice server thread context only */
+static void interface_async_complete(QXLInstance *sin, uint64_t cookie_token)
+{
+    /* should never be called, used in qxl native mode only */
+    fprintf(stderr, "%s: abort()\n", __func__);
+    abort();
+}
+
+static void interface_set_client_capabilities(QXLInstance *sin,
+                                              uint8_t client_present,
+                                              uint8_t caps[58])
+{
+    dprint(3, "%s:\n", __func__);
+}
+
+static int interface_client_monitors_config(QXLInstance *sin,
+                                        VDAgentMonitorsConfig *monitors_config)
+{
+    dprint(3, "%s:\n", __func__);
+    return 0; /* == not supported by guest */
+}
+
 static const QXLInterface dpy_interface = {
     .base.type               = SPICE_INTERFACE_QXL,
     .base.description        = "qemu simple display",
@@ -544,6 +575,10 @@ static const QXLInterface dpy_interface = {
     .req_cursor_notification = interface_req_cursor_notification,
     .notify_update           = interface_notify_update,
     .flush_resources         = interface_flush_resources,
+    .async_complete          = interface_async_complete,
+    .update_area_complete    = interface_update_area_complete,
+    .set_client_capabilities = interface_set_client_capabilities,
+    .client_monitors_config  = interface_client_monitors_config,
 };
 
 static SimpleSpiceDisplay sdpy;
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Qemu-devel] [PATCH 2/2] vga: fix mmio vga register mapping
  2012-11-21 13:48 [Qemu-devel] [PULL for-1.3 0/2] spice patch queue Gerd Hoffmann
                   ` (2 preceding siblings ...)
  2012-11-21 13:48 ` [Qemu-devel] [PATCH 2/2] spice: add new spice-server callbacks to ui/spice-display.c Gerd Hoffmann
@ 2012-11-21 13:48 ` Gerd Hoffmann
  2012-11-21 13:53 ` [Qemu-devel] [PULL for-1.3 0/2] spice patch queue Gerd Hoffmann
  2012-11-26 15:34 ` Anthony Liguori
  5 siblings, 0 replies; 7+ messages in thread
From: Gerd Hoffmann @ 2012-11-21 13:48 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

---
 hw/vga-pci.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/hw/vga-pci.c b/hw/vga-pci.c
index ec29cac..947e35c 100644
--- a/hw/vga-pci.c
+++ b/hw/vga-pci.c
@@ -84,9 +84,10 @@ static void pci_vga_ioport_write(void *ptr, hwaddr addr,
                                  uint64_t val, unsigned size)
 {
     PCIVGAState *d = ptr;
+
     switch (size) {
     case 1:
-        vga_ioport_write(&d->vga, addr, val);
+        vga_ioport_write(&d->vga, addr + 0x3c0, val);
         break;
     case 2:
         /*
@@ -94,8 +95,8 @@ static void pci_vga_ioport_write(void *ptr, hwaddr addr,
          * indexed registers with a single word write because the
          * index byte is updated first.
          */
-        vga_ioport_write(&d->vga, addr, val & 0xff);
-        vga_ioport_write(&d->vga, addr+1, (val >> 8) & 0xff);
+        vga_ioport_write(&d->vga, addr + 0x3c0, val & 0xff);
+        vga_ioport_write(&d->vga, addr + 0x3c1, (val >> 8) & 0xff);
         break;
     }
 }
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] [PULL for-1.3 0/2] spice patch queue
  2012-11-21 13:48 [Qemu-devel] [PULL for-1.3 0/2] spice patch queue Gerd Hoffmann
                   ` (3 preceding siblings ...)
  2012-11-21 13:48 ` [Qemu-devel] [PATCH 2/2] vga: fix mmio vga register mapping Gerd Hoffmann
@ 2012-11-21 13:53 ` Gerd Hoffmann
  2012-11-26 15:34 ` Anthony Liguori
  5 siblings, 0 replies; 7+ messages in thread
From: Gerd Hoffmann @ 2012-11-21 13:53 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel

On 11/21/12 14:48, Gerd Hoffmann wrote:
>   Hi,
> 
> Spice patch queue, featuring two bugfixes for 1.3.

Ouch, two old patch files resent which where still laying around.
Just ignore the two vga patches.  They are not part of the pull request
and they are merged into master already.

sorry,
  Gerd

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] [PULL for-1.3 0/2] spice patch queue
  2012-11-21 13:48 [Qemu-devel] [PULL for-1.3 0/2] spice patch queue Gerd Hoffmann
                   ` (4 preceding siblings ...)
  2012-11-21 13:53 ` [Qemu-devel] [PULL for-1.3 0/2] spice patch queue Gerd Hoffmann
@ 2012-11-26 15:34 ` Anthony Liguori
  5 siblings, 0 replies; 7+ messages in thread
From: Anthony Liguori @ 2012-11-26 15:34 UTC (permalink / raw)
  To: Gerd Hoffmann, qemu-devel

Gerd Hoffmann <kraxel@redhat.com> writes:

>   Hi,
>
> Spice patch queue, featuring two bugfixes for 1.3.
>
> please pull,
>   Gerd
>
> The following changes since commit 1ccbc2851282564308f790753d7158487b6af8e2:
>
>   qemu-sockets: Fix parsing of the inet option 'to'. (2012-11-21 12:07:59 +0400)

Pulled. Thanks.

Regards,

Anthony Liguori

>
> are available in the git repository at:
>   git://anongit.freedesktop.org/spice/qemu spice.v64
>
> Gerd Hoffmann (1):
>       spice: add new spice-server callbacks to ui/spice-display.c
>
> Lei Li (1):
>       Fix the inconsistency in x509-dh-key-file parameter
>
>  ui/spice-core.c    |    2 +-
>  ui/spice-display.c |   35 +++++++++++++++++++++++++++++++++++
>  2 files changed, 36 insertions(+), 1 deletions(-)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-11-26 15:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-21 13:48 [Qemu-devel] [PULL for-1.3 0/2] spice patch queue Gerd Hoffmann
2012-11-21 13:48 ` [Qemu-devel] [PATCH 1/2] Fix the inconsistency in x509-dh-key-file parameter Gerd Hoffmann
2012-11-21 13:48 ` [Qemu-devel] [PATCH 1/2] vga: fix bochs alignment issue Gerd Hoffmann
2012-11-21 13:48 ` [Qemu-devel] [PATCH 2/2] spice: add new spice-server callbacks to ui/spice-display.c Gerd Hoffmann
2012-11-21 13:48 ` [Qemu-devel] [PATCH 2/2] vga: fix mmio vga register mapping Gerd Hoffmann
2012-11-21 13:53 ` [Qemu-devel] [PULL for-1.3 0/2] spice patch queue Gerd Hoffmann
2012-11-26 15:34 ` Anthony Liguori

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.