<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/hw/virtio/dataplane, branch master</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/hw/virtio/dataplane?h=master</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/hw/virtio/dataplane?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2016-02-25T11:14:19+00:00</updated>
<entry>
<title>vring: remove</title>
<updated>2016-02-25T11:14:19+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2016-02-14T17:17:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=fee089e4e258d85baf8d15783c01dfe6be98db04'/>
<id>urn:sha1:fee089e4e258d85baf8d15783c01dfe6be98db04</id>
<content type='text'>
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Reviewed-by: Fam Zheng &lt;famz@redhat.com&gt;
Acked-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
</content>
</entry>
<entry>
<title>vring: make vring_enable_notification return void</title>
<updated>2016-02-25T11:14:18+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2016-02-14T17:17:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=8b1fe1cedfde53c233c89938fca334ccaab26cff'/>
<id>urn:sha1:8b1fe1cedfde53c233c89938fca334ccaab26cff</id>
<content type='text'>
Make the API more similar to the regular virtqueue API.  This will
help when modifying the code to not use vring.c anymore.

Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Acked-by: Cornelia Huck &lt;cornelia.huck@de.ibm.com&gt;
Reviewed-by: Fam Zheng &lt;famz@redhat.com&gt;
Acked-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
</content>
</entry>
<entry>
<title>vring: slim down allocation of VirtQueueElements</title>
<updated>2016-02-06T18:44:08+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2016-01-31T10:29:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=5dba97ebdc92f1ac3c9ac27d8eac52ed2348fae1'/>
<id>urn:sha1:5dba97ebdc92f1ac3c9ac27d8eac52ed2348fae1</id>
<content type='text'>
Build the addresses and s/g lists on the stack, and then copy them
to a VirtQueueElement that is just as big as required to contain this
particular s/g list.  The cost of the copy is minimal compared to that
of a large malloc.

Reviewed-by: Cornelia Huck &lt;cornelia.huck@de.ibm.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>virtio: introduce virtqueue_alloc_element</title>
<updated>2016-02-06T18:44:08+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2016-01-31T10:29:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=3724650db07057333879484c8bc7d900b5c1bf8e'/>
<id>urn:sha1:3724650db07057333879484c8bc7d900b5c1bf8e</id>
<content type='text'>
Allocate the arrays for in_addr/out_addr/in_sg/out_sg outside the
VirtQueueElement.  For now, virtqueue_pop and vring_pop keep
allocating a very large VirtQueueElement.

Reviewed-by: Cornelia Huck &lt;cornelia.huck@de.ibm.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>virtio: move allocation to virtqueue_pop/vring_pop</title>
<updated>2016-02-06T18:39:07+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2016-02-04T14:26:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=51b19ebe4320f3dcd93cea71235c1219318ddfd2'/>
<id>urn:sha1:51b19ebe4320f3dcd93cea71235c1219318ddfd2</id>
<content type='text'>
The return code of virtqueue_pop/vring_pop is unused except to check for
errors or 0.  We can thus easily move allocation inside the functions
and just return a pointer to the VirtQueueElement.

The advantage is that we will be able to allocate only the space that
is needed for the actual size of the s/g list instead of the full
VIRTQUEUE_MAX_SIZE items.  Currently VirtQueueElement takes about 48K
of memory, and this kind of allocation puts a lot of stress on malloc.
By cutting the size by two or three orders of magnitude, malloc can
use much more efficient algorithms.

The patch is pretty large, but changes to each device are testable
more or less independently.  Splitting it would mostly add churn.

Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Reviewed-by: Cornelia Huck &lt;cornelia.huck@de.ibm.com&gt;
</content>
</entry>
<entry>
<title>virtio: Clean up includes</title>
<updated>2016-01-29T15:07:23+00:00</updated>
<author>
<name>Peter Maydell</name>
</author>
<published>2016-01-26T18:17:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=9b8bfe21bee37ced21aa57c89388c2ebea8c3f31'/>
<id>urn:sha1:9b8bfe21bee37ced21aa57c89388c2ebea8c3f31</id>
<content type='text'>
Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.

This commit was created with scripts/clean-includes.

Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Message-id: 1453832250-766-15-git-send-email-peter.maydell@linaro.org
</content>
</entry>
<entry>
<title>dataplane: support non-contigious s/g</title>
<updated>2015-11-09T09:59:32+00:00</updated>
<author>
<name>Michael S. Tsirkin</name>
</author>
<published>2015-10-28T15:48:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=8347c53243b58ad5e4d623d2403853404e9043a1'/>
<id>urn:sha1:8347c53243b58ad5e4d623d2403853404e9043a1</id>
<content type='text'>
bring_map currently fails if one of the entries it's mapping is
contigious in GPA but not HVA address space.  Introduce a mapped_len
parameter so it can handle this, returning the actual mapped length.

This will still fail if there's no space left in the sg, but luckily max
queue size in use is currently 256, while max sg size is 1024, so we
should be OK even is all entries happen to cross a single DIMM boundary.

Won't work well with very small DIMM sizes, unfortunately:
e.g. this will fail with 4K DIMMs where a single
request might span a large number of DIMMs.

Let's hope these are uncommon - at least we are not breaking things.

Reported-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Reported-by: Igor Mammedov &lt;imammedo@redhat.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Tested-by: Igor Mammedov &lt;imammedo@redhat.com&gt;
Message-id: 1446047243-3221-2-git-send-email-mst@redhat.com
Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
</content>
</entry>
<entry>
<title>dataplane: simplify indirect descriptor read</title>
<updated>2015-11-09T09:59:32+00:00</updated>
<author>
<name>Michael S. Tsirkin</name>
</author>
<published>2015-10-28T15:48:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=572ec519ed6fe68f10ec65963527536c2322eab0'/>
<id>urn:sha1:572ec519ed6fe68f10ec65963527536c2322eab0</id>
<content type='text'>
Use address_space_read to make sure we handle the case of an indirect
descriptor crossing DIMM boundary correctly.

Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Tested-by: Igor Mammedov &lt;imammedo@redhat.com&gt;
Message-id: 1446047243-3221-1-git-send-email-mst@redhat.com
Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
</content>
</entry>
<entry>
<title>virtio dataplane: adapt dataplane for virtio Version 1</title>
<updated>2015-10-12T10:16:45+00:00</updated>
<author>
<name>Pierre Morel</name>
</author>
<published>2015-09-07T11:33:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=a9718ef0005d6910097788936dc40c0204713729'/>
<id>urn:sha1:a9718ef0005d6910097788936dc40c0204713729</id>
<content type='text'>
Let dataplane allocate different region for the desc/avail/used
ring regions.
Take VIRTIO_RING_F_EVENT_IDX into account to increase the used/avail
rings accordingly.

[Fix 32-bit builds by changing 16lx format specifier to HWADDR_PRIx.
--Stefan]

Signed-off-by: Pierre Morel &lt;pmorel@linux.vnet.ibm.com&gt;
Tested-by: Greg Kurz &lt;gkurz@linux.vnet.ibm.com&gt;
Signed-off-by: Greg Kurz &lt;gkurz@linux.vnet.ibm.com&gt;
Message-id: 1441625636-23773-1-git-send-email-pmorel@linux.vnet.ibm.com
(changed __virtio16 into uint16_t,
 map descriptor table and available ring read-only)
Signed-off-by: Greg Kurz &lt;gkurz@linux.vnet.ibm.com&gt;
Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
</content>
</entry>
<entry>
<title>virtio: avoid leading underscores for helpers</title>
<updated>2015-09-10T08:06:05+00:00</updated>
<author>
<name>Cornelia Huck</name>
</author>
<published>2015-08-17T09:48:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=95129d6fc9ead97155627a4ca0cfd37282883658'/>
<id>urn:sha1:95129d6fc9ead97155627a4ca0cfd37282883658</id>
<content type='text'>
Commit ef546f1275f6563e8934dd5e338d29d9f9909ca6 ("virtio: add
feature checking helpers") introduced a helper __virtio_has_feature.
We don't want to use reserved identifiers, though, so let's
rename __virtio_has_feature to virtio_has_feature and virtio_has_feature
to virtio_vdev_has_feature.

Signed-off-by: Cornelia Huck &lt;cornelia.huck@de.ibm.com&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;


</content>
</entry>
</feed>
