From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Turton Subject: Re: SetPageForeign in netback Date: Fri, 27 Jun 2008 16:59:01 +0100 Message-ID: <48650E45.9040505@solarflare.com> References: <20080625004218.47BAC13681C@ncic.ac.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080625004218.47BAC13681C@ncic.ac.cn> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Zang Hongyong Cc: xen-devel , gm281 List-Id: xen-devel@lists.xenproject.org Hi Zang, You wrote: > I noticed that the plug-in accelerator is available in Xen3.2 Source code. The > accelerator is used for direct IO network devices such as Infiniband and > Solarflare 10G Nic. > Can it be used for the PCIE IOV devices? > and is there any referece implementation of PCIE IOV Nics now? The accelerator plug-in framework is designed to be general-purpose, so it should work fine with IOV devices. It requires a plug-in driver to be written for both netfront and netback. Between them, these drivers will need to ensure that BAR pages are mapped into the guest, IOMMU page tables are setup and interrupts passed to the guest. These jobs are outside the scope of the accelerator framework which is just concerned with handing over traffic from netfront/netback. I don't know of a reference implementation of an IOV NIC - just the Solarflare one, but the PCI passthrough code should help you with mapping interrupts and pages. Which NIC are you wanting to use? Cheers, Neil.