<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/tools/virtio, branch master</title>
<subtitle>Linux Kernel (branches are rebased on master from time to time)</subtitle>
<id>https://sre.ring0.de/linux/atom?h=master</id>
<link rel='self' href='https://sre.ring0.de/linux/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/'/>
<updated>2022-12-28T10:28:11Z</updated>
<entry>
<title>tools/virtio: remove smp_read_barrier_depends()</title>
<updated>2022-12-28T10:28:11Z</updated>
<author>
<name>Davidlohr Bueso</name>
<email>dave@stgolabs.net</email>
</author>
<published>2022-11-28T03:43:47Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=81931012bd7dc52fadf2b720605fce8a7148d4a7'/>
<id>urn:sha1:81931012bd7dc52fadf2b720605fce8a7148d4a7</id>
<content type='text'>
This gets rid of the last references to smp_read_barrier_depends()
 which for the kernel side was removed in v5.9. The serialization
required for Alpha is done inside READ_ONCE() instead of having
users deal with it. Simply use a full barrier, the architecture
does not have rmb in the first place.

Signed-off-by: Davidlohr Bueso &lt;dave@stgolabs.net&gt;
Message-Id: &lt;20221128034347.990-3-dave@stgolabs.net&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Reviewed-by: Xuan Zhuo &lt;xuanzhuo@linux.alibaba.com&gt;
</content>
</entry>
<entry>
<title>tools/virtio: remove stray characters</title>
<updated>2022-12-28T10:28:11Z</updated>
<author>
<name>Davidlohr Bueso</name>
<email>dave@stgolabs.net</email>
</author>
<published>2022-11-28T03:43:46Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=8aeac42d60936046a00e67cdf7d27b061df2962f'/>
<id>urn:sha1:8aeac42d60936046a00e67cdf7d27b061df2962f</id>
<content type='text'>
__read_once_size() is not a macro, remove those '/'s.

Signed-off-by: Davidlohr Bueso &lt;dave@stgolabs.net&gt;
Message-Id: &lt;20221128034347.990-2-dave@stgolabs.net&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Reviewed-by: Xuan Zhuo &lt;xuanzhuo@linux.alibaba.com&gt;
</content>
</entry>
<entry>
<title>tools/virtio: Variable type completion</title>
<updated>2022-12-28T10:28:10Z</updated>
<author>
<name>wangjianli</name>
<email>wangjianli@cdjrlc.com</email>
</author>
<published>2022-11-13T07:07:42Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=a4722f64f924a9992efc08d141c21b2da02b70f3'/>
<id>urn:sha1:a4722f64f924a9992efc08d141c21b2da02b70f3</id>
<content type='text'>
Replace "unsigned" with "unsigned int"

Signed-off-by: wangjianli &lt;wangjianli@cdjrlc.com&gt;
Message-Id: &lt;20221113070742.48271-1-wangjianli@cdjrlc.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>tools: Delete the unneeded semicolon after curly braces</title>
<updated>2022-12-28T10:28:10Z</updated>
<author>
<name>Shaomin Deng</name>
<email>dengshaomin@cdjrlc.com</email>
</author>
<published>2022-11-05T15:51:51Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=75e4ab9735a5a70612dd06461ca372b897bf371c'/>
<id>urn:sha1:75e4ab9735a5a70612dd06461ca372b897bf371c</id>
<content type='text'>
Unneeded semicolon after curly braces, so delete it.

Signed-off-by: Shaomin Deng &lt;dengshaomin@cdjrlc.com&gt;
Message-Id: &lt;20221105155151.12155-1-dengshaomin@cdjrlc.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>tools/virtio: initialize spinlocks in vring_test.c</title>
<updated>2022-12-28T10:09:47Z</updated>
<author>
<name>Ricardo Cañuelo</name>
<email>ricardo.canuelo@collabora.com</email>
</author>
<published>2022-10-12T06:29:49Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=c262f75cb6bb5a63828e72ce3b8fe808e5029479'/>
<id>urn:sha1:c262f75cb6bb5a63828e72ce3b8fe808e5029479</id>
<content type='text'>
The virtio_device vqs_list spinlocks must be initialized before use to
prevent functions that manipulate the device virtualqueues, such as
vring_new_virtqueue(), from blocking indefinitely.

Signed-off-by: Ricardo Cañuelo &lt;ricardo.canuelo@collabora.com&gt;
Message-Id: &lt;20221012062949.1526176-1-ricardo.canuelo@collabora.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Reviewed-by: Xuan Zhuo &lt;xuanzhuo@linux.alibaba.com&gt;
</content>
</entry>
<entry>
<title>virtio_test: fixup for vq reset</title>
<updated>2022-09-27T22:30:49Z</updated>
<author>
<name>Xuan Zhuo</name>
<email>xuanzhuo@linux.alibaba.com</email>
</author>
<published>2022-08-30T11:05:49Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=dbe449d8f8f2ef91af729f0adcc9bef785873168'/>
<id>urn:sha1:dbe449d8f8f2ef91af729f0adcc9bef785873168</id>
<content type='text'>
Fix virtio test compilation failure caused by vq reset.

../../drivers/virtio/virtio_ring.c: In function ‘vring_create_virtqueue_packed’:
../../drivers/virtio/virtio_ring.c:1999:8: error: ‘struct virtqueue’ has no member named ‘reset’
 1999 |  vq-&gt;vq.reset = false;
      |        ^
../../drivers/virtio/virtio_ring.c: In function ‘__vring_new_virtqueue’:
../../drivers/virtio/virtio_ring.c:2493:8: error: ‘struct virtqueue’ has no member named ‘reset’
 2493 |  vq-&gt;vq.reset = false;
      |        ^
../../drivers/virtio/virtio_ring.c: In function ‘virtqueue_resize’:
../../drivers/virtio/virtio_ring.c:2587:18: error: ‘struct virtqueue’ has no member named ‘num_max’
 2587 |  if (num &gt; vq-&gt;vq.num_max)
      |                  ^
../../drivers/virtio/virtio_ring.c:2596:11: error: ‘struct virtio_device’ has no member named ‘config’
 2596 |  if (!vdev-&gt;config-&gt;disable_vq_and_reset)
      |           ^~
../../drivers/virtio/virtio_ring.c:2599:11: error: ‘struct virtio_device’ has no member named ‘config’
 2599 |  if (!vdev-&gt;config-&gt;enable_vq_after_reset)
      |           ^~
../../drivers/virtio/virtio_ring.c:2602:12: error: ‘struct virtio_device’ has no member named ‘config’
 2602 |  err = vdev-&gt;config-&gt;disable_vq_and_reset(_vq);
      |            ^~
../../drivers/virtio/virtio_ring.c:2614:10: error: ‘struct virtio_device’ has no member named ‘config’
 2614 |  if (vdev-&gt;config-&gt;enable_vq_after_reset(_vq))
      |          ^~
make: *** [&lt;builtin&gt;: virtio_ring.o] Error 1

Signed-off-by: Xuan Zhuo &lt;xuanzhuo@linux.alibaba.com&gt;
Message-Id: &lt;20220830110549.103168-1-xuanzhuo@linux.alibaba.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>tools/virtio: fix build</title>
<updated>2022-08-11T08:26:07Z</updated>
<author>
<name>Stefano Garzarella</name>
<email>sgarzare@redhat.com</email>
</author>
<published>2022-07-05T07:22:49Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=d650f830f38b19039958f3f4504ceeb2b5922da7'/>
<id>urn:sha1:d650f830f38b19039958f3f4504ceeb2b5922da7</id>
<content type='text'>
Fix the build caused by the following changes:
- phys_addr_t is now defined in tools/include/linux/types.h
- dev_warn_once() is used in drivers/virtio/virtio_ring.c
- linux/uio.h included by vringh.h use INT_MAX defined in limits.h

Signed-off-by: Stefano Garzarella &lt;sgarzare@redhat.com&gt;
Message-Id: &lt;20220705072249.7867-1-sgarzare@redhat.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Acked-by: Eugenio Pérez &lt;eperezma@redhat.com&gt;
Signed-off-by: Peng Fan &lt;peng.fan@nxp.com&gt;
Acked-by: Jason Wang &lt;jasowang@redhat.com&gt;
</content>
</entry>
<entry>
<title>virtio_ring: split: stop __vring_new_virtqueue as export symbol</title>
<updated>2022-08-11T08:06:38Z</updated>
<author>
<name>Xuan Zhuo</name>
<email>xuanzhuo@linux.alibaba.com</email>
</author>
<published>2022-08-01T06:38:27Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=07d9629d49584b6f79faa6158cd7aef7e6919703'/>
<id>urn:sha1:07d9629d49584b6f79faa6158cd7aef7e6919703</id>
<content type='text'>
There is currently only one place to reference __vring_new_virtqueue()
directly from the outside of virtio core. And here vring_new_virtqueue()
can be used instead.

Subsequent patches will modify __vring_new_virtqueue, so stop it as an
export symbol for now.

Signed-off-by: Xuan Zhuo &lt;xuanzhuo@linux.alibaba.com&gt;
Acked-by: Jason Wang &lt;jasowang@redhat.com&gt;
Message-Id: &lt;20220801063902.129329-8-xuanzhuo@linux.alibaba.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>tools/virtio: compile with -pthread</title>
<updated>2022-03-28T20:52:59Z</updated>
<author>
<name>Michael S. Tsirkin</name>
<email>mst@redhat.com</email>
</author>
<published>2022-03-20T11:02:14Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=f03560a57c1f60db6ac23ffd9714e1c69e2f95c7'/>
<id>urn:sha1:f03560a57c1f60db6ac23ffd9714e1c69e2f95c7</id>
<content type='text'>
When using pthreads, one has to compile and link with -lpthread,
otherwise e.g. glibc is not guaranteed to be reentrant.

This replaces -lpthread.

Reported-by: Matthew Wilcox &lt;willy@infradead.org&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>tools/virtio: fix after premapped buf support</title>
<updated>2022-03-28T20:52:59Z</updated>
<author>
<name>Michael S. Tsirkin</name>
<email>mst@redhat.com</email>
</author>
<published>2022-03-04T17:09:18Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=06f05bc52269e1f8286ce0fba03b565528fb1456'/>
<id>urn:sha1:06f05bc52269e1f8286ce0fba03b565528fb1456</id>
<content type='text'>
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
</feed>
