Skip to contentSkip to conversation

spice patch queue

GIT PULL New Gerd Hoffmann 2 participants 7 messages Nov 21, 2012 – Nov 26, 2012

lore
Share & tools
lore
#0 lore raw

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(-)
#3 lore raw

PATCH 2/2 vga: fix mmio vga register mapping

---
 hw/vga-pci.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
hw/vga-pci.c +4 -3
index ec29cac..947e35c 100644
@@ -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;
     }
 }
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/2 vga: fix bochs alignment issue

In reply to 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.

---
 docs/specs/standard-vga.txt |    3 ++-
 hw/vga.c                    |    3 +--
 2 files changed, 3 insertions(+), 3 deletions(-)
docs/specs/standard-vga.txt +2 -1
index 1cecccd..8a4c1e9 100644
@@ -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
hw/vga.c +1 -2
index 81aa76b..2b0200a 100644
@@ -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(),
 };
 
Signature · 1 line
1.7.1
#2 lore raw

PATCH 1/2 Fix the inconsistency in x509-dh-key-file parameter

In reply to Gerd Hoffmann

From: Lei Li <[email protected]>

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

---
 ui/spice-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
ui/spice-core.c +1 -1
index 5147365..261c6f2 100644
@@ -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");
     }
 
Signature · 1 line
1.7.1
#4 lore raw

PATCH 2/2 spice: add new spice-server callbacks to ui/spice-display.c

In reply to Gerd Hoffmann

Otherwise qemu crashes with non-qxl graphics cards.

---
 ui/spice-display.c |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)
ui/spice-display.c +35 -0
index 0cc0116..6aff336 100644
@@ -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;
Signature · 1 line
1.7.1
#5 lore raw
In reply to Gerd Hoffmann
Quoted 3 lines · Gerd Hoffmann

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

#6 lore raw
In reply to Gerd Hoffmann
Quoted 10 lines · 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)

Pulled. Thanks.

Regards,

Anthony Liguori

Quoted 13 lines

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(-)