Re: [PATCH v6 19/19] iommufd: Add a selftest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 30, 2022 at 03:14:32PM +0800, Yi Liu wrote:
> On 2022/11/30 04:29, Jason Gunthorpe wrote:
> > Cover the essential functionality of the iommufd with a directed test from
> > userspace. This aims to achieve reasonable functional coverage using the
> > in-kernel self test framework.
> > 
> > A second test does a failure injection sweep of the success paths to study
> > error unwind behaviors.
> > 
> > This allows achieving high coverage of the corner cases in pages.c.
> > 
> > Tested-by: Nicolin Chen <nicolinc@xxxxxxxxxx>
> > Tested-by: Matthew Rosato <mjrosato@xxxxxxxxxxxxx> # s390
> > Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxx>
> > Signed-off-by: Nicolin Chen <nicolinc@xxxxxxxxxx>
> > Signed-off-by: Yi Liu <yi.l.liu@xxxxxxxxx>
> 
> with sudo echo 4 > /proc/sys/vm/nr_hugepages
>
> Both "sudo ./iommufd" and "sudo ./iommufd_fail_nth" works on my
> side.

It is interesting that you need that, my VM doesn't, I wonder what the
difference is

Thanks,
Jason



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux