<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qemu/qemu.git, branch stable-1.7</title>
<subtitle>QEMU main repository</subtitle>
<id>https://git.landau.one/pub/scm/virt/qemu/qemu.git/atom?h=stable-1.7</id>
<link rel='self' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/atom?h=stable-1.7'/>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/'/>
<updated>2014-07-21T22:42:15+00:00</updated>
<entry>
<title>Update VERSION for 1.7.2 release</title>
<updated>2014-07-21T22:42:15+00:00</updated>
<author>
<name>Michael Roth</name>
<email>mdroth@linux.vnet.ibm.com</email>
</author>
<published>2014-07-21T22:41:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=adba377ea7880c0aa43787fdfbadbc5f6afeaa16'/>
<id>urn:sha1:adba377ea7880c0aa43787fdfbadbc5f6afeaa16</id>
<content type='text'>
Signed-off-by: Michael Roth &lt;mdroth@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>Allow mismatched virtio config-len</title>
<updated>2014-07-16T00:28:02+00:00</updated>
<author>
<name>Dr. David Alan Gilbert</name>
<email>dgilbert@redhat.com</email>
</author>
<published>2014-06-27T19:02:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=8fde73e13858e6acd33ce5dea1e11e81ad0848af'/>
<id>urn:sha1:8fde73e13858e6acd33ce5dea1e11e81ad0848af</id>
<content type='text'>
Commit 'virtio: validate config_len on load' restricted config_len
loaded from the wire to match the config_len that the device had.

Unfortunately, there are cases where this isn't true, the one
we found it on was the wce addition in virtio-blk.

Allow mismatched config-lengths:
   *) If the version on the wire is shorter then fine
   *) If the version on the wire is longer, load what we have space
      for and skip the rest.

(This is mst@redhat.com's rework of what I originally posted)

Signed-off-by: Dr. David Alan Gilbert &lt;dgilbert@redhat.com&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
(cherry picked from commit 2f5732e9648fcddc8759a8fd25c0b41a38352be6)
Signed-off-by: Michael Roth &lt;mdroth@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>pci: assign devfn to pci_dev before calling pci_device_iommu_address_space()</title>
<updated>2014-07-16T00:28:02+00:00</updated>
<author>
<name>Le Tan</name>
<email>tamlokveer@gmail.com</email>
</author>
<published>2014-07-02T00:06:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=14d9fb02c26133f637b3184fb4c766098e2f635e'/>
<id>urn:sha1:14d9fb02c26133f637b3184fb4c766098e2f635e</id>
<content type='text'>
In function do_pci_register_device() in file hw/pci/pci.c, move the assignment
of pci_dev-&gt;devfn to the position before the call to
pci_device_iommu_address_space(pci_dev) which will use the value of
pci_dev-&gt;devfn.

Fixes: 9eda7d373e9c691c070eddcbe3467b991f67f6bd
    pci: Introduce helper to retrieve a PCI device's DMA address space

Cc: qemu-stable@nongnu.org
Signed-off-by: Le Tan &lt;tamlokveer@gmail.com&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
(cherry picked from commit efc8188e9398e54567b238b756eec2cc746cd2a4)
Signed-off-by: Michael Roth &lt;mdroth@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>hw: Fix qemu_allocate_irqs() leaks</title>
<updated>2014-07-16T00:28:02+00:00</updated>
<author>
<name>Andreas Färber</name>
<email>afaerber@suse.de</email>
</author>
<published>2014-06-18T07:55:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=53e4895c985c7dbadd47915706c9bdfe7471aa51'/>
<id>urn:sha1:53e4895c985c7dbadd47915706c9bdfe7471aa51</id>
<content type='text'>
Replace qemu_allocate_irqs(foo, bar, 1)[0]
with qemu_allocate_irq(foo, bar, 0).

This avoids leaking the dereferenced qemu_irq *.

Cc: Markus Armbruster &lt;armbru@redhat.com&gt;
Reviewed-by: Peter Crosthwaite &lt;peter.crosthwaite@xilinx.com&gt;
Reviewed-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Signed-off-by: Andreas Färber &lt;afaerber@suse.de&gt;
[PC Changes:
 * Applied change to instance in sh4/sh7750.c
]
Signed-off-by: Peter Crosthwaite &lt;peter.crosthwaite@xilinx.com&gt;
Reviewed-by: Kirill Batuzov &lt;batuzovk@ispras.ru&gt;
[AF: Fix IRQ index in sh4/sh7750.c]
Cc: qemu-stable@nongnu.org
Signed-off-by: Andreas Färber &lt;afaerber@suse.de&gt;

(cherry picked from commit f3c7d0389fe8a2792fd4c1cf151b885de03c8f62)
Signed-off-by: Michael Roth &lt;mdroth@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>sdhci: Fix misuse of qemu_free_irqs()</title>
<updated>2014-07-16T00:28:02+00:00</updated>
<author>
<name>Andreas Färber</name>
<email>afaerber@suse.de</email>
</author>
<published>2014-05-13T09:39:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=bb485bf2e85e134f8f7869ac2e8855adad8ee688'/>
<id>urn:sha1:bb485bf2e85e134f8f7869ac2e8855adad8ee688</id>
<content type='text'>
It does a g_free() on the pointer, so don't pass a local &amp;foo reference.

Reviewed-by: Peter Crosthwaite &lt;peter.crosthwaite@xilinx.com&gt;
Reviewed-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Cc: qemu-stable@nongnu.org
Signed-off-by: Andreas Färber &lt;afaerber@suse.de&gt;
(cherry picked from commit 127a4e1a51c038ec9167083b65d376dddcc64530)
Signed-off-by: Michael Roth &lt;mdroth@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>vnc: Fix tight_detect_smooth_image() for lossless case</title>
<updated>2014-07-16T00:28:02+00:00</updated>
<author>
<name>Markus Armbruster</name>
<email>armbru@redhat.com</email>
</author>
<published>2014-02-21T15:42:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=02835d57444ce7308931b71cabbe5fb1d7d8b9eb'/>
<id>urn:sha1:02835d57444ce7308931b71cabbe5fb1d7d8b9eb</id>
<content type='text'>
VncTight member uint8_t quality is either (uint8_t)-1 for lossless or
less than 10 for lossy.

tight_detect_smooth_image() first promotes it to int, then compares
with -1.  Always unequal, so we always execute the lossy code.  Reads
beyond tight_conf[] and returns crap when quality is actually
lossless.

Compare to (uint8_t)-1 instead, like we do elsewhere.

Spotted by Coverity.

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
(cherry picked from commit 2e7bcdb99adbd8fc10ad9ddcf93bd2bf3c0f1f2d)
Signed-off-by: Michael Roth &lt;mdroth@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>qapi: zero-initialize all QMP command parameters</title>
<updated>2014-07-16T00:28:02+00:00</updated>
<author>
<name>Michael Roth</name>
<email>mdroth@linux.vnet.ibm.com</email>
</author>
<published>2014-05-20T17:20:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=41ee91810e8ae15ac9bc84ccf358c6f425f7ba6f'/>
<id>urn:sha1:41ee91810e8ae15ac9bc84ccf358c6f425f7ba6f</id>
<content type='text'>
In general QMP command parameter values are specified by consumers of the
QMP/HMP interface, but in the case of optional parameters these values may
be left uninitialized.

It is considered a bug for code to make use of optional parameters that have
not been flagged as being present by the marshalling code (via corresponding
has_&lt;parameter&gt; parameter), however our marshalling code will still pass
these uninitialized values on to the corresponding QMP function (to then
be ignored). Some compilers (clang in particular) consider this unsafe
however, and generate warnings as a result. As reported by Peter Maydell:

  This is something clang's -fsanitize=undefined spotted. The
  code generated by qapi-commands.py in qmp-marshal.c for
  qmp_marshal_* functions where there are some optional
  arguments looks like this:

      bool has_force = false;
      bool force;

      mi = qmp_input_visitor_new_strict(QOBJECT(args));
      v = qmp_input_get_visitor(mi);
      visit_type_str(v, &amp;device, "device", errp);
      visit_start_optional(v, &amp;has_force, "force", errp);
      if (has_force) {
          visit_type_bool(v, &amp;force, "force", errp);
      }
      visit_end_optional(v, errp);
      qmp_input_visitor_cleanup(mi);

      if (error_is_set(errp)) {
          goto out;
      }
      qmp_eject(device, has_force, force, errp);

  In the case where has_force is false, we never initialize
  force, but then we use it by passing it to qmp_eject.
  I imagine we don't then actually use the value, but clang
  complains in particular for 'bool' variables because the value
  that ends up being loaded from memory for 'force' is not either
  0 or 1 (being uninitialized stack contents).

Fix this by initializing all QMP command parameters to {0} in the
marshalling code prior to passing them on to the QMP functions.

Signed-off-by: Michael Roth &lt;mdroth@linux.vnet.ibm.com&gt;
Reported-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Tested-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Luiz Capitulino &lt;lcapitulino@redhat.com&gt;
(cherry picked from commit fc13d937269c1cd01a4b7720c1dcce01722727a2)
Signed-off-by: Michael Roth &lt;mdroth@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>nbd: Shutdown socket before closing.</title>
<updated>2014-07-16T00:28:02+00:00</updated>
<author>
<name>Hani Benhabiles</name>
<email>kroosec@gmail.com</email>
</author>
<published>2014-05-31T21:39:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=0c60b74a0cc17a8fedb1b300b7b65ae946d917c9'/>
<id>urn:sha1:0c60b74a0cc17a8fedb1b300b7b65ae946d917c9</id>
<content type='text'>
This forces finishing data sending to client before closing the socket like in
exports listing or replying with NBD_REP_ERR_UNSUP cases.

Signed-off-by: Hani Benhabiles &lt;kroosec@gmail.com&gt;
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
(cherry picked from commit 27e5eae4577316f7e86a56eb7363d4e78f79e3e5)
Signed-off-by: Michael Roth &lt;mdroth@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>nbd: Close socket on negotiation failure.</title>
<updated>2014-07-16T00:28:01+00:00</updated>
<author>
<name>Hani Benhabiles</name>
<email>kroosec@gmail.com</email>
</author>
<published>2014-05-12T23:35:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=25351f6a9ad55990d5140a928fd6ea29e48943af'/>
<id>urn:sha1:25351f6a9ad55990d5140a928fd6ea29e48943af</id>
<content type='text'>
Otherwise, the nbd client may hang waiting for the server response.

Signed-off-by: Hani Benhabiles &lt;hani@linux.com&gt;
Acked-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Signed-off-by: Michael Tokarev &lt;mjt@tls.msk.ru&gt;
(cherry picked from commit 36af599417dde11747a27dc8550ff2281657a8ff)
Signed-off-by: Michael Roth &lt;mdroth@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>nbd: Don't validate from and len in NBD_CMD_DISC.</title>
<updated>2014-07-16T00:28:01+00:00</updated>
<author>
<name>Hani Benhabiles</name>
<email>kroosec@gmail.com</email>
</author>
<published>2014-05-18T10:50:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=cf392d2c7c0f10adc5d9d4f740e034b646605fff'/>
<id>urn:sha1:cf392d2c7c0f10adc5d9d4f740e034b646605fff</id>
<content type='text'>
These values aren't used in this case.

Currently, the from field in the request sent by the nbd kernel module leading
to a false error message when ending the connection with the client.

$ qemu-nbd some.img -v
// After nbd-client -d /dev/nbd0
nbd.c:nbd_trip():L1031: From: 18446744073709551104, Len: 0, Size: 20971520,
Offset: 0
nbd.c:nbd_trip():L1032: requested operation past EOF--bad client?
nbd.c:nbd_receive_request():L638: read failed

Signed-off-by: Hani Benhabiles &lt;kroosec@gmail.com&gt;
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
(cherry picked from commit 8c5d1abbb79193dca8e4823ef53d8d1e650362ae)
Signed-off-by: Michael Roth &lt;mdroth@linux.vnet.ibm.com&gt;
</content>
</entry>
</feed>
