<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/tools/virtio, branch v6.9.7</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v6.9.7</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v6.9.7'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2024-03-05T10:38:14Z</updated>
<entry>
<title>tools: virtio: introduce vhost_net_test</title>
<updated>2024-03-05T10:38:14Z</updated>
<author>
<name>Yunsheng Lin</name>
<email>linyunsheng@huawei.com</email>
</author>
<published>2024-02-28T09:30:12Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=c5d3705cfd938f6ddd8fa2ff74689cc9b52c00ca'/>
<id>urn:sha1:c5d3705cfd938f6ddd8fa2ff74689cc9b52c00ca</id>
<content type='text'>
introduce vhost_net_test for both vhost_net tx and rx basing
on virtio_test to test vhost_net changing in the kernel.

Steps for vhost_net tx testing:
1. Prepare a out buf.
2. Kick the vhost_net to do tx processing.
3. Do the receiving in the tun side.
4. verify the data received by tun is correct.

Steps for vhost_net rx testing:
1. Prepare a in buf.
2. Do the sending in the tun side.
3. Kick the vhost_net to do rx processing.
4. verify the data received by vhost_net is correct.

Signed-off-by: Yunsheng Lin &lt;linyunsheng@huawei.com&gt;
Acked-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Paolo Abeni &lt;pabeni@redhat.com&gt;
</content>
</entry>
<entry>
<title>tools/virtio: Add dma sync api for virtio test</title>
<updated>2023-10-16T09:32:23Z</updated>
<author>
<name>Liming Wu</name>
<email>liming.wu@jaguarmicro.com</email>
</author>
<published>2023-10-08T03:17:33Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=e07744b43d3ad10b040f0ec464b6323ca96903d6'/>
<id>urn:sha1:e07744b43d3ad10b040f0ec464b6323ca96903d6</id>
<content type='text'>
Fixes: 8bd2f71054bd ("virtio_ring: introduce dma sync api for virtqueue")
also add dma sync api for virtio test.

Signed-off-by: Liming Wu &lt;liming.wu@jaguarmicro.com&gt;
Message-Id: &lt;20231008031734.1095-1-liming.wu@jaguarmicro.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>tools/virtio: fix build break for aarch64</title>
<updated>2023-06-27T14:47:08Z</updated>
<author>
<name>Peng Fan</name>
<email>peng.fan@nxp.com</email>
</author>
<published>2023-03-23T04:00:24Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=77b894f220cbd04301b3d941df8247106e67f8e4'/>
<id>urn:sha1:77b894f220cbd04301b3d941df8247106e67f8e4</id>
<content type='text'>
"-mfunction-return=thunk -mindirect-branch-register" are only valid
for x86. So introduce compiler operation check to avoid such issues

Fixes: 0d0ed4006127 ("tools/virtio: enable to build with retpoline")
Signed-off-by: Peng Fan &lt;peng.fan@nxp.com&gt;
Message-Id: &lt;20230323040024.3809108-1-peng.fan@oss.nxp.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>tools/virtio: use canonical ftrace path</title>
<updated>2023-06-09T16:08:08Z</updated>
<author>
<name>Ross Zwisler</name>
<email>zwisler@chromium.org</email>
</author>
<published>2023-02-15T22:33:49Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=07496eeab577eef1d4912b3e1b502a2b52002ac3'/>
<id>urn:sha1:07496eeab577eef1d4912b3e1b502a2b52002ac3</id>
<content type='text'>
The canonical location for the tracefs filesystem is at /sys/kernel/tracing.

But, from Documentation/trace/ftrace.rst:

  Before 4.1, all ftrace tracing control files were within the debugfs
  file system, which is typically located at /sys/kernel/debug/tracing.
  For backward compatibility, when mounting the debugfs file system,
  the tracefs file system will be automatically mounted at:

  /sys/kernel/debug/tracing

A few spots in tools/virtio still refer to this older debugfs
path, so let's update them to avoid confusion.

Signed-off-by: Ross Zwisler &lt;zwisler@google.com&gt;
Message-Id: &lt;20230215223350.2658616-6-zwisler@google.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Reviewed-by: Mukesh Ojha &lt;quic_mojha@quicinc.com&gt;
</content>
</entry>
<entry>
<title>tools/virtio: Add .gitignore for ringtest</title>
<updated>2023-06-08T19:43:08Z</updated>
<author>
<name>Rong Tao</name>
<email>rongtao@cestc.cn</email>
</author>
<published>2023-05-25T08:37:28Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=c66dbc39a7104c5a9f033c0450dfa6f697a71f94'/>
<id>urn:sha1:c66dbc39a7104c5a9f033c0450dfa6f697a71f94</id>
<content type='text'>
Ignore executables for ringtest.

Signed-off-by: Rong Tao &lt;rongtao@cestc.cn&gt;
Message-Id: &lt;tencent_C121802C93CB4095C6D7D95113442E830A07@qq.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>tools/virtio: Fix arm64 ringtest compilation error</title>
<updated>2023-06-08T19:43:08Z</updated>
<author>
<name>Rong Tao</name>
<email>rongtao@cestc.cn</email>
</author>
<published>2023-05-24T12:31:24Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=57380fd1249b20ef772549af2c58ef57b21faba7'/>
<id>urn:sha1:57380fd1249b20ef772549af2c58ef57b21faba7</id>
<content type='text'>
Add cpu_relax() for arm64 instead of directly assert(), and add assert.h
header file. Also, add smp_wmb and smp_mb for arm64.

Compilation error as follows, avoid __always_inline undefined.

    $ make
    cc -Wall -pthread -O2 -ggdb -flto -fwhole-program -c -o ring.o ring.c
    In file included from ring.c:10:
    main.h: In function ‘busy_wait’:
    main.h:99:21: warning: implicit declaration of function ‘assert’
    [-Wimplicit-function-declaration]
    99 | #define cpu_relax() assert(0)
        |                     ^~~~~~
    main.h:107:17: note: in expansion of macro ‘cpu_relax’
    107 |                 cpu_relax();
        |                 ^~~~~~~~~
    main.h:12:1: note: ‘assert’ is defined in header ‘&lt;assert.h&gt;’; did you
    forget to ‘#include &lt;assert.h&gt;’?
    11 | #include &lt;stdbool.h&gt;
    +++ |+#include &lt;assert.h&gt;
    12 |
    main.h: At top level:
    main.h:143:23: error: expected ‘;’ before ‘void’
    143 | static __always_inline
        |                       ^
        |                       ;
    144 | void __read_once_size(const volatile void *p, void *res, int
    size)
        | ~~~~
    main.h:158:23: error: expected ‘;’ before ‘void’
    158 | static __always_inline void __write_once_size(volatile void *p,
    void *res, int size)
        |                       ^~~~~
        |                       ;
    make: *** [&lt;builtin&gt;: ring.o] Error 1

Signed-off-by: Rong Tao &lt;rongtao@cestc.cn&gt;
Message-Id: &lt;tencent_F53E159DD7925174445D830DA19FACF44B07@qq.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>tools/virtio: fix build caused by virtio_ring changes</title>
<updated>2023-04-21T07:02:35Z</updated>
<author>
<name>Shunsuke Mie</name>
<email>mie@igel.co.jp</email>
</author>
<published>2023-04-17T02:20:37Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=e9c4962c5d69b8a238bb8bd51e8fdce39be13e5b'/>
<id>urn:sha1:e9c4962c5d69b8a238bb8bd51e8fdce39be13e5b</id>
<content type='text'>
Fix the build dependency for virtio_test. The virtio_ring that is used from
the test requires container_of_const(). Change to use container_of.h kernel
header directly and adapt related codes.

Signed-off-by: Shunsuke Mie &lt;mie@igel.co.jp&gt;
Message-Id: &lt;20230417022037.917668-2-mie@igel.co.jp&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>tools/virtio: virtio_test -h,--help should return directly</title>
<updated>2023-04-21T07:02:30Z</updated>
<author>
<name>Rong Tao</name>
<email>rongtao@cestc.cn</email>
</author>
<published>2023-03-09T08:42:50Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=6b27cd84a7917b995f66c052fd3453fdbd6e3d70'/>
<id>urn:sha1:6b27cd84a7917b995f66c052fd3453fdbd6e3d70</id>
<content type='text'>
When we get help information, we should return directly, and we should not
execute test cases. Move the exit() directly into the help() function and
remove it from case '?'.

Signed-off-by: Rong Tao &lt;rongtao@cestc.cn&gt;
Message-Id: &lt;tencent_822CEBEB925205EA1573541CD1C2604F4805@qq.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>tools/virtio: virtio_test: Fix indentation</title>
<updated>2023-04-21T07:02:30Z</updated>
<author>
<name>Rong Tao</name>
<email>rtoax@foxmail.com</email>
</author>
<published>2023-03-09T06:13:20Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=9b2b3de63c07123c0ec9b912d7b8e77b150e520b'/>
<id>urn:sha1:9b2b3de63c07123c0ec9b912d7b8e77b150e520b</id>
<content type='text'>
Replace eight spaces with Tab.

Signed-off-by: Rong Tao &lt;rtoax@foxmail.com&gt;
Message-Id: &lt;tencent_89579C514BC4020324A1A4ACA44B5B95BB07@qq.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>tools/virtio: fix typo in README instructions</title>
<updated>2023-04-04T15:01:58Z</updated>
<author>
<name>Ross Zwisler</name>
<email>zwisler@chromium.org</email>
</author>
<published>2023-02-15T22:33:50Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=9513c55ce3e8f0f118c47423452c4a4bdaa80222'/>
<id>urn:sha1:9513c55ce3e8f0f118c47423452c4a4bdaa80222</id>
<content type='text'>
We need to have a unique chardev for each data path, else the chardevs
will collide and qemu will die with this message:

  qemu-system-x86_64: -device
  virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel0,
  id=channel1,name=trace-path-cpu0:
  Property 'virtserialport.chardev' can't take value 'charchannel0':
  Device 'charchannel0' is in use

Signed-off-by: Ross Zwisler &lt;zwisler@google.com&gt;
Message-Id: &lt;20230215223350.2658616-7-zwisler@google.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
</feed>
