Re: [Qemu-devel] [PATCH] pci-testdev: enhance to support new testcases

2016-09-27 Thread Peter Xu
On Tue, Sep 27, 2016 at 06:13:29AM -0400, Paolo Bonzini wrote: > > > Take my example: IOMMU unit test would want the guest to send DMA/IRQ > > request from the device's perspective. In that case, we would like to > > "tell" the pci-testdev about where to write the DMA, and what data to > > write s

Re: [Qemu-devel] [PATCH] pci-testdev: enhance to support new testcases

2016-09-27 Thread Paolo Bonzini
> Take my example: IOMMU unit test would want the guest to send DMA/IRQ > request from the device's perspective. In that case, we would like to > "tell" the pci-testdev about where to write the DMA, and what data to > write specifically, or which IRQ to trigger. That's something we > cannot do rig

Re: [Qemu-devel] [PATCH] pci-testdev: enhance to support new testcases

2016-09-27 Thread Peter Xu
On Tue, Sep 27, 2016 at 02:37:44PM +0800, Peter Xu wrote: > On Thu, Sep 22, 2016 at 09:23:05PM +0300, Michael S. Tsirkin wrote: > > On Thu, Sep 22, 2016 at 02:15:08PM +0800, Peter Xu wrote: > > > pci-testdev is used mostly in kvm-unit-test for some eventfd tests. > > > However I see it a good frame

Re: [Qemu-devel] [PATCH] pci-testdev: enhance to support new testcases

2016-09-26 Thread Peter Xu
On Thu, Sep 22, 2016 at 09:23:05PM +0300, Michael S. Tsirkin wrote: > On Thu, Sep 22, 2016 at 02:15:08PM +0800, Peter Xu wrote: > > pci-testdev is used mostly in kvm-unit-test for some eventfd tests. > > However I see it a good framework for other tests as well (e.g., the > > IOMMU unit test in the

Re: [Qemu-devel] [PATCH] pci-testdev: enhance to support new testcases

2016-09-22 Thread Peter Xu
On Thu, Sep 22, 2016 at 01:18:24PM +0200, Andrew Jones wrote: > On Thu, Sep 22, 2016 at 02:15:08PM +0800, Peter Xu wrote: > > pci-testdev is used mostly in kvm-unit-test for some eventfd tests. > > However I see it a good framework for other tests as well (e.g., the > > IOMMU unit test in the futur

Re: [Qemu-devel] [PATCH] pci-testdev: enhance to support new testcases

2016-09-22 Thread Michael S. Tsirkin
On Thu, Sep 22, 2016 at 02:15:08PM +0800, Peter Xu wrote: > pci-testdev is used mostly in kvm-unit-test for some eventfd tests. > However I see it a good framework for other tests as well (e.g., the > IOMMU unit test in the future). So enhanced it to support more > testcases. > > The original memo

Re: [Qemu-devel] [PATCH] pci-testdev: enhance to support new testcases

2016-09-22 Thread Andrew Jones
On Thu, Sep 22, 2016 at 02:15:08PM +0800, Peter Xu wrote: > pci-testdev is used mostly in kvm-unit-test for some eventfd tests. > However I see it a good framework for other tests as well (e.g., the > IOMMU unit test in the future). So enhanced it to support more > testcases. > > The original memo