From: Keir Fraser Subject: Re: [PATCH] Allow programatic iomem permissions Date: Fri, 13 Jul 2007 15:12:17 +0100 Message-ID: References: <1184331833.4144.20.camel@moonstone.uk.level5networks.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1184331833.4144.20.camel@moonstone.uk.level5networks.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Kieran Mansley Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 13/7/07 14:03, "Kieran Mansley" wrote: >> The issue is that the granter is informed that the grant is released before >> stale grantee TLB entries are flushed. If the grantee is multi-vcpu then he >> could theoretically still access a granted page via a stale TLB entry after >> the granter has recycled the page. The window is extremely tiny though! The >> correct fix is to reorder the unmap operation to be unmap-list-of-grants >> then TLB-flush then update-grant-entries-to-indicate-release. Then the whole >> problem disappears. > > OK, that makes sense, and doesn't at first impression look too hard to > rectify. > > Am I right in thinking that it's the shared grant table entry that is > the critical one in this sense (as opposed to the "active" entry). That's correct. -- Keir