[PATCH net] selftests: drv-net: tso: make bkg() wait for socat to quit

2025-06-03 Thread Jakub Kicinski
Commit 846742f7e32f ("selftests: drv-net: add a warning for bkg + shell + terminate") added a warning for bkg() used with terminate=True. The tso test was missed as we didn't have it running anywhere in NIPA. Add exit_wait=True, to avoid: # Warning: combining shell and terminate is risky! #

[PATCH net] selftests: drv-net: tso: fix the GRE device name

2025-06-03 Thread Jakub Kicinski
The device type for IPv4 GRE is "gre" not "ipgre", unlike for IPv6 which uses "ip6gre". Not sure how I missed this when writing the test, perhaps because all HW I have access to is on an IPv6-only network. Fixes: 0d0f4174f6c8 ("selftests: drv-net: add a simple TSO test") Signed-off-by: Jakub Kici

[PATCH net v2] selftests: drv-net: add configs for the TSO test

2025-06-03 Thread Jakub Kicinski
Add missing config options for the tso.py test, specifically to make sure the kernel is built with vxlan and gre tunnels. I noticed this while adding a TSO-capable device QEMU to the CI. Previously we only run virtio tests and it doesn't report LSO stats on the QEMU we have. Fixes: 0d0f4174f6c8 (

[PATCH v2] riscv: sbi: Add SBI Debug Triggers Extension tests

2025-06-03 Thread Jesse Taube
Add tests for the DBTR SBI extension. Signed-off-by: Jesse Taube --- V1 -> V2: - Call report_prefix_pop before returning - Disable compressed instructions in exec_call, update related comment - Remove extra "| 1" in dbtr_test_load - Remove extra newlines - Remove extra tabs in check_exec -

Re: [RFC PATCH 08/33] vfio: selftests: Validate 2M/1G HugeTLB are mapped as 2M/1G in IOMMU

2025-06-03 Thread David Matlack
On Sun, Jun 1, 2025 at 12:45 AM Greg Kroah-Hartman wrote: > > On Sat, May 31, 2025 at 10:09:34PM +0300, Andy Shevchenko wrote: > > On Fri, May 30, 2025 at 02:12:36PM -0700, David Matlack wrote: > > > On Fri, May 23, 2025 at 4:30 PM David Matlack wrote: > > > > ... > > > > > > + if (access("

Re: [RFC PATCH 29/33] vfio: selftests: Make iommufd the default iommu_mode

2025-06-03 Thread David Matlack
On Mon, May 26, 2025 at 10:20 AM Jason Gunthorpe wrote: > > On Fri, May 23, 2025 at 11:30:14PM +, David Matlack wrote: > > Now that VFIO selftests support iommufd, make it the default mode. > > IOMMUFD is the successor to VFIO_TYPE1{,v2}_IOMMU and all new features > > are being added there, so

Re: [RFC PATCH 30/33] vfio: selftests: Add a script to help with running VFIO selftests

2025-06-03 Thread David Matlack
On Mon, Jun 2, 2025 at 4:08 PM Alex Williamson wrote: > On Fri, 23 May 2025 23:30:15 + > > +function add_id() { > > + if echo $(echo ${1} | tr : ' ') > ${2}/new_id 2> /dev/null; then > > + echo "Added ${1} to ${2}" > > + return 0 > > + fi > > + > > + return

Re: [RFC PATCH 04/33] vfio: selftests: Test basic VFIO and IOMMUFD integration

2025-06-03 Thread David Matlack
On Mon, Jun 2, 2025 at 4:08 PM Alex Williamson wrote: > > On Fri, 23 May 2025 23:29:49 + > David Matlack wrote: > > +int main(int argc, char *argv[]) > > +{ > > + char *bdf; > > + > > + if (argc != 2) { > > + printf("Usage: %s bus:device:function\n", argv[0]); > > segment:

Re: [PATCH net] selftests: drv-net: add configs for the TSO test

2025-06-03 Thread Jakub Kicinski
On Tue, 3 Jun 2025 13:17:25 +0200 Paolo Abeni wrote: > On 6/3/25 1:16 AM, Jakub Kicinski wrote: > > diff --git a/tools/testing/selftests/drivers/net/hw/config > > b/tools/testing/selftests/drivers/net/hw/config > > new file mode 100644 > > index ..ea4b70d71563 > > --- /dev/null > > +++

Re: [PATCH net] selftests: drv-net: add configs for the TSO test

2025-06-03 Thread Paolo Abeni
On 6/3/25 1:16 AM, Jakub Kicinski wrote: > diff --git a/tools/testing/selftests/drivers/net/hw/config > b/tools/testing/selftests/drivers/net/hw/config > new file mode 100644 > index ..ea4b70d71563 > --- /dev/null > +++ b/tools/testing/selftests/drivers/net/hw/config > @@ -0,0 +1,6 @@

Re: [PATCH net] Revert "kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests"

2025-06-03 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (main) by Paolo Abeni : On Fri, 30 May 2025 06:58:00 -0700 you wrote: > This reverts commit a571a9a1b120264e24b41eddf1ac5140131bfa84. > > The commit in question breaks kunit for older compilers: > > $ gcc --version > gcc (GCC) 11.5.0 20240719 (Re

Re: [RFC PATCH 02/33] vfio: selftests: Add a helper library for VFIO selftests

2025-06-03 Thread liulongfang
On 2025/5/24 7:29, David Matlack wrote: > Add a basic helper library to be used by VFIO selftests. > > The basic unit of the library is struct vfio_pci_device, which > represents a single PCI device that is bound to the vfio-pci driver. The > library currently only supports a single device per gro

Re: [kvm-unit-tests PATCH] riscv: sbi: Add SBI Debug Triggers Extension tests

2025-06-03 Thread Clément Léger
On 30/05/2025 00:36, Jesse Taube wrote: > Add tests for the DBTR SBI extension. > > Signed-off-by: Jesse Taube > --- > lib/riscv/asm/sbi.h | 28 ++ > lib/riscv/sbi.c | 58 > riscv/Makefile | 1 + > riscv/sbi-dbtr.c| 703 > ris

Re: [RFC PATCH 00/33] vfio: Introduce selftests for VFIO

2025-06-03 Thread Joel Granados
On Tue, May 27, 2025 at 04:01:52PM -0700, David Matlack wrote: > On Mon, May 26, 2025 at 10:09 AM Jason Gunthorpe wrote: > > > > On Fri, May 23, 2025 at 11:29:45PM +, David Matlack wrote: > > > Drivers must implement the following methods: > > > > > > - probe():Check if the driver sup