From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: pv_ops reassigndev for pci passthrough Date: Mon, 28 Dec 2009 09:27:26 -0500 Message-ID: <20091228142726.GA16375@phenom.dumpdata.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: "xen-devel@lists.xensource.com" , Michael D Labriola , Chris , "xen-devel-bounces@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Wed, Dec 23, 2009 at 09:37:48PM +0000, Keir Fraser wrote: > On 23/12/2009 20:10, "Michael D Labriola" wrote: > > >> New option is reassign_resources. Used like: > >> guestdev=00:01.0,00:02.0 reassign_resources > >> Where you use guestdev= instead of pciback.hide= > > > > Can this be done somehow post boot? As a hack you can eliminate the check in the Xend python code for this and see how far you can go. Just remember that it is a hack :-) > > > > Is it in Jeremy's xen/master? It doesn't seem to be working in my pull > > from 2 hours ago... > > This is in the 2.6.18 tree. It may be that nothing like this is in the > pv_ops tree. I had not ported it over. My thought was to write code in the pciback code that would do this automatically (if BARs are found to be not BAR aligned). Thought I am unsure of why this was not explored - are there any bad technical reasons to make BARs page-aligned after the device has been enabled (and then disabled)? I am taking aside the Linux kernel resources structs (request_resource and its friends), which probabally will throw a fit.