From: Mark Williamson Subject: Re: Can I expose a pci device to HVM domU? Date: Thu, 21 Feb 2008 02:03:02 +0000 Message-ID: <200802210203.02755.mark.williamson@cl.cam.ac.uk> References: <6bc632150802191238v19371a70ha60ee5950c027c06@mail.gmail.com> <78C9135A3D2ECE4B8162EBDCE82CAD77030E2B83@nekter> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <78C9135A3D2ECE4B8162EBDCE82CAD77030E2B83@nekter> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Caitlin Bestler List-Id: xen-devel@lists.xenproject.org > > Can i assign a PCI device(e.g a NIC) exclusively to a Linux HVM > > domainU after hiding it from domain 0? > > > > I know that only PV guests are the best candidates for this but I > > still want to ask, hoping someone might have done some work in latest > > xen-unstable. > > > > Is there any known way to do this? > > > > PS:- NIC Is does not have Intel's VT-d. > > If the Guest is HVM, how would it know how to give usable > DMA addresses to the NIC? (Whether it should be trusted to > in the absence of an Address Translation Service is the next > question, but first is whether it could even do it at all). > > A PV Guest, by contrast, would know the distinction between > GPAs and SPAs (not that it makes it any more trustworthy). Guys from Neocleus (I think) have been working on making PCI passthrough to HVM guests happen, without using an IOMMU. There is code out there that these guys have released. It's a clever bit of lateral thinking that makes this possible :-) However, doing this without an IOMMU still doesn't address the security concerns and I'm not sure if it scales to many (or even if they support more than one) HVM guests controlling PCI devices. Cheers, Mark -- Push Me Pull You - Distributed SCM tool (http://www.cl.cam.ac.uk/~maw48/pmpu/)