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

Re: [Xen-devel] Consuming PCI device in PV kernel



On Fri, 2014-07-25 at 15:30 +0100, Simon Martin wrote:
> Hello Andrew,
> 
> Friday, July 25, 2014, 3:25:35 PM, you wrote:
> 
> > Once you grant map a page from another domain, your domain no longer
> > owns the PTE.  You should either avoid that PTE, or grant unmap the
> > foreign frame first.
> 
> I  have  not  grant mapped this. I have just called update_va_mapping.
> Should I be using grant?

Andrew is saying that the mapping which is currently at the virtual
address is *already* a grant mapping, not that you are trying to grant
map something here. Grant maps need to be unmapped with the grant unmap
hypercall, not just by rewriting the PTE. (IIRC).

You should not be using grants to map PCI IO space, no.

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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