From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 95DE58D99 for ; Mon, 1 Feb 2016 13:47:25 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP; 01 Feb 2016 04:47:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,380,1449561600"; d="scan'208";a="645128140" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.66.49]) by FMSMGA003.fm.intel.com with ESMTP; 01 Feb 2016 04:47:24 -0800 Date: Mon, 1 Feb 2016 20:48:45 +0800 From: Yuanhan Liu To: Santosh Shukla Message-ID: <20160201124845.GC4257@yliu-dev.sh.intel.com> References: <0000-cover-letter.patch> <1454091717-32251-1-git-send-email-sshukla@mvista.com> <1454091717-32251-6-git-send-email-sshukla@mvista.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1454091717-32251-6-git-send-email-sshukla@mvista.com> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: dev@dpdk.org, Rakesh Krishnamurthy , Rizwan Ansari Subject: Re: [dpdk-dev] [PATCH v6 6/8] virtio: add vfio api to rd/wr ioport space X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2016 12:47:26 -0000 On Fri, Jan 29, 2016 at 11:51:55PM +0530, Santosh Shukla wrote: > For vfio case - Use pread/pwrite api to access virtio > ioport space. > > Signed-off-by: Santosh Shukla > Signed-off-by: Rizwan Ansari > Signed-off-by: Rakesh Krishnamurthy > --- > v5-->v6: > - renamed inport_in/out to vfio_in/out > - Renamed file from virtio_vfio_rw.h to virtio_vfio_io.h > > drivers/net/virtio/virtio_vfio_io.h | 104 +++++++++++++++++++++++++++++++++++ > 1 file changed, 104 insertions(+) > create mode 100644 drivers/net/virtio/virtio_vfio_io.h > > diff --git a/drivers/net/virtio/virtio_vfio_io.h b/drivers/net/virtio/virtio_vfio_io.h > new file mode 100644 > index 0000000..218d4ed > --- /dev/null > +++ b/drivers/net/virtio/virtio_vfio_io.h ... > @@ -0,0 +1,104 @@ > +#ifndef _VIRTIO_VFIO_IO_H_ > +#define _VIRTIO_VFIO_IO_H_ > + > +#include "virtio_logs.h" > +#if defined(RTE_EAL_VFIO) && defined(RTE_LIBRTE_EAL_LINUXAPP) Won't it cause build failure if above "#if ..." is false, as virtio_read/write_reg_x() reference them unconditionally? BTW, why above check is needed? We have rte_eal_pci_read/write_bar() implementation with both VFIO and BSD, don't we? > +#endif /* _VIRTIO_VFIO_RW_H_ */ ^^^^ You forgot to do rename here. BTW, I didn't follow the noIOMMU discussion; how did it end? Do we still need that? Is this patch a full story to enable virtio on ARM? --yliu