From: Paolo Abeni <pabeni@redhat.com>
To: Stefano Garzarella <sgarzare@redhat.com>,
Bobby Eshleman <bobbyeshleman@gmail.com>
Cc: Stefan Hajnoczi <stefanha@redhat.com>,
Shuah Khan <shuah@kernel.org>,
kvm@vger.kernel.org, "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Simon Horman <horms@kernel.org>,
linux-kernel@vger.kernel.org, virtualization@lists.linux.dev,
netdev@vger.kernel.org, linux-kselftest@vger.kernel.org
Subject: Re: [PATCH net-next v7] selftests/vsock: add initial vmtest.sh for vsock
Date: Tue, 20 May 2025 12:58:18 +0200 [thread overview]
Message-ID: <73a4740e-755e-4ba8-8130-df09bd25197a@redhat.com> (raw)
In-Reply-To: <f7dpfvsdupcf4iucmmit2xzgwk53ial6mcl445uxocizw6iow5@rhmh6m2qd3zu>
On 5/20/25 10:24 AM, Stefano Garzarella wrote:
> On Thu, May 15, 2025 at 03:00:48PM -0700, Bobby Eshleman wrote:
>> This commit introduces a new vmtest.sh runner for vsock.
>>
>> It uses virtme-ng/qemu to run tests in a VM. The tests validate G2H,
>> H2G, and loopback. The testing tools from tools/testing/vsock/ are
>> reused. Currently, only vsock_test is used.
>>
>> VMCI and hyperv support is automatically built, though not used.
>>
>> Only tested on x86.
>>
>> To run:
>>
>> $ make -C tools/testing/selftests TARGETS=vsock
>> $ tools/testing/selftests/vsock/vmtest.sh
>
> I am a little confused, now we have removed the kernel build step, so
> how should I test this? (It's running my fedora kernel, but then ssh
> fails to connect)
>
> Would it be better to re-introduce the build phase at least in the
> script as optional (not used by selftest, but usable if you want to use
> the script directly)?
>
> Or at least I think we should explain that the script launches the
> running kernel, because the config file introduced by this patch
> confused me. How it's supposed to be used?
This is the usual selftests schema. The user has to build and install
the kernel including the specified config before running the tests, see
make help |grep kselftest
Also this is what we do for our CI:
https://github.com/linux-netdev/nipa/wiki/How-to-run-netdev-selftests-CI-style
@Bobby: AFAICS this now has all the ingredients to fit NIPA integration
am I correct? the last commit message sentence could possibly be dropped.
Still it could be worthy to re-introduce (behind a command line option)
the ability to build the kernel as per Stefano request, to fit his
existing workflow (sorry for the partial back and forth).
Thanks,
Paolo
next prev parent reply other threads:[~2025-05-20 10:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-15 22:00 [PATCH net-next v7] selftests/vsock: add initial vmtest.sh for vsock Bobby Eshleman
2025-05-20 8:24 ` Stefano Garzarella
2025-05-20 10:58 ` Paolo Abeni [this message]
2025-05-20 11:09 ` Stefano Garzarella
2025-05-20 16:33 ` Bobby Eshleman
2025-05-20 16:31 ` Bobby Eshleman
2025-05-20 11:24 ` Paolo Abeni
2025-05-20 16:09 ` Bobby Eshleman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=73a4740e-755e-4ba8-8130-df09bd25197a@redhat.com \
--to=pabeni@redhat.com \
--cc=bobbyeshleman@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=sgarzare@redhat.com \
--cc=shuah@kernel.org \
--cc=stefanha@redhat.com \
--cc=virtualization@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox