[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] I cannot get any message from domU by console / pv_ops domU kernel crashes with xen_create_contiguous_region failed



On Tue, Dec 22, 2009 at 04:09:36PM +0000, Ian Campbell wrote:
> On Tue, 2009-12-22 at 15:47 +0000, Konrad Rzeszutek Wilk wrote:
> > > I thought it used to be that you could only (successfully) make order>0
> > > increase_reservation or mem_exchange hypercalls if you had I/O
> > > privileges? Has this changed?
> > 
> > I am looking at the 3.4 code I am not seeing any I/O privileges check.
> > 
> > I did not even know that those existed actually - could you give me an idea
> > when was the last time you saw it?
> 
> In xen-unstable multipage_allocation_permitted is called from
> memory_exchange() and increase_reservation() and is defined as 
> #define multipage_allocation_permitted(d, order)        \
>     (((order) <= 9) || /* allow 2MB superpages */       \
>      !rangeset_is_empty((d)->iomem_caps) ||             \
>      !rangeset_is_empty((d)->arch.ioport_caps))
> 
> The ((order) <= 9) || is new and isn't present in the 3.4 tree,
> previously you would have had to add a passthrough device to cause one
> of the other rangesets to become non-empty. 

AAh, and since the exchange of memory is done in small chunks we pass
underneath the radar even if did not have the passthrough device set.

Ian, thanks for finding the culprit. Let me roll out a patch that
will do what was done in the past (ie, turn SWIOTLB for DomU only
when iommu=soft was passed in) as a fix.

Later (next year) I can propose the more dynamic SWIOTLB mechanism
that should make this more automatic.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.