From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Martin Subject: Re: Consuming PCI device in PV kernel Date: Fri, 25 Jul 2014 15:36:30 +0100 Message-ID: <263120224.20140725153630@gmail.com> References: <524794479.20140703121338@gmail.com> <20140703180957.GD13710@konrad-lan.dumpdata.com> <1376452421.20140707092147@gmail.com> <1083121389.20140707122233@gmail.com> <623751089.20140718153713@gmail.com> <20140718190942.GG15947@laptop.dumpdata.com> <538610044.20140721111330@gmail.com> <1405940004.25022.10.camel@kazak.uk.xensource.com> <357303711.20140725135638@gmail.com> <1406293821.24842.8.camel@kazak.uk.xensource.com> <1035381797.20140725142116@gmail.com> <1406295478.24842.15.camel@kazak.uk.xensource.com> <53D2609A.4000802@citrix.com> <13170235.20140725152048@gmail.com> <53D268DF.6010906@citrix.com> <1211427291.20140725153012@gmail.com> <1406298816.24842.19.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1406298816.24842.19.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Andrew Cooper , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Hello Ian, >> > 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. Thanks Ian. I'm off traveling next week so I'll pick up on this again in August. I wonder what has grant mapped this memory area.... -- Best regards, Simon mailto:furryfuttock@gmail.com