qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Question about qtest and IOMMU


From: Peter Xu
Subject: Re: [Qemu-devel] Question about qtest and IOMMU
Date: Wed, 29 Jun 2016 15:44:36 +0800
User-agent: Mutt/1.5.24 (2015-08-30)

On Wed, Jun 29, 2016 at 09:08:29AM +0200, Paolo Bonzini wrote:
> 
> 
> On 29/06/2016 08:36, Jan Kiszka wrote:
> > On 2016-06-29 08:32, Peter Xu wrote:
> >> Hi, all,
> >>
> >> I am thinking about whether it's possible to write up a unit test
> >> program for emulated IOMMUs (of course, Intel IOMMU would be the first
> >> one). This can provide us the chance to do quick functional regression
> >> tests for IOMMU just like other devices, as well as customized test
> >> sequences which is hard to do in real guests (e.g., specific cache
> >> invalidations, error injections), etc..
> >>
> >> I see that current qtest framework cannot support well on testing
> >> IOMMUs. For DMA remapping, things would be quite smooth. The problem
> >> is that, we still do not have a complete test framework on the
> >> interrupts. E.g., currently qtest is still an acceleration type, in
> >> which we have no vCPUs, as well as interrupt chips like APICs (please
> >> correct me if I am wrong).
> 
> qtest does have VCPUs, they just run a dummy loop.  You do have an APIC
> too, but reading it doesn't work because cpu_get_current_apic() returns
> NULL.

Right, thanks to point out.

> 
> You can use kvm-unit-tests if qtest is not flexible enough.  It's
> probably the simplest thing to do if you also want to test kernel LAPIC
> and split irqchip operation.

Will have a look. Thanks Paolo. :)

-- peterx



reply via email to

[Prev in Thread] Current Thread [Next in Thread]