From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Xu Subject: Re: [kvm-unit-tests PATCH v7 06/13] pci: Rework pci_bar_addr() Date: Fri, 23 Sep 2016 16:58:44 +0800 Message-ID: <20160923085844.GE15411@pxdev.xzpeter.org> References: <38dc0bd6c1350568f4978dba3373249753944a61.1471434672.git.agordeev@redhat.com> <20160923071404.GB15411@pxdev.xzpeter.org> <20160923085106.foic7p72qdbp6f4w@hawk.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: Alexander Gordeev , kvm@vger.kernel.org, Thomas Huth , eric.auger@redhat.com To: Andrew Jones Return-path: Received: from mx1.redhat.com ([209.132.183.28]:7770 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936420AbcIWI6s (ORCPT ); Fri, 23 Sep 2016 04:58:48 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (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 B9A76C04B943 for ; Fri, 23 Sep 2016 08:58:47 +0000 (UTC) Content-Disposition: inline In-Reply-To: <20160923085106.foic7p72qdbp6f4w@hawk.localdomain> Sender: kvm-owner@vger.kernel.org List-ID: On Fri, Sep 23, 2016 at 10:51:06AM +0200, Andrew Jones wrote: > On Fri, Sep 23, 2016 at 03:14:04PM +0800, Peter Xu wrote: > > Hi, Alex, > > > > I see that we are adding ARM tests in the series as well, so I am > > thinking whether this work is a prepare work to test ARM SMMU? > > That would be excellent. Adding Eric, he may be able to help here. I should say "Alex" rather than "we". :) And I posted this question since I see that Alex is adding addr translation logic to PCI. That's what I am trying to do for unit tests for Intel IOMMU devices. So I asked. Though (as mentioned in the comment) I don't know whether PCI bar needs translation. I thought only DMA requests are required to be translated in device address space. Please correct if I am wrong. Thanks, -- peterx