From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bp5AS-00022x-6A for qemu-devel@nongnu.org; Tue, 27 Sep 2016 23:04:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bp5AN-0007Br-5G for qemu-devel@nongnu.org; Tue, 27 Sep 2016 23:04:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60678) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bp5AM-0007An-Uq for qemu-devel@nongnu.org; Tue, 27 Sep 2016 23:04:15 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D25CCA1F6C for ; Wed, 28 Sep 2016 03:04:13 +0000 (UTC) Date: Wed, 28 Sep 2016 11:04:10 +0800 From: Peter Xu Message-ID: <20160928030410.GA11134@pxdev.xzpeter.org> References: <1474524908-18716-1-git-send-email-peterx@redhat.com> <20160922182305.hulm7yfx24gor5fg@redhat.com> <20160927063744.GC10363@pxdev.xzpeter.org> <20160927083819.GD10363@pxdev.xzpeter.org> <1274680733.3041530.1474971209712.JavaMail.zimbra@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1274680733.3041530.1474971209712.JavaMail.zimbra@redhat.com> Subject: Re: [Qemu-devel] [PATCH] pci-testdev: enhance to support new testcases List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: "Michael S. Tsirkin" , qemu-devel@nongnu.org, marcel@redhat.com 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 specifically, or which IRQ to trigger. That's something we > > cannot do right now. And I don't want to just add a new test case for > > that specifically. I think we can make it more common. > > Do we need to use the pci-testdev? There's also for example > the edu device, or we could just use virtio-serial with a null > backend. It's interesting to know that there is such an edu device. So it not only suits for education, but tailored for IOMMU unit test as well. :) -- peterx