From: Keir Fraser Subject: Re: Question: dom0 electrocuted by implicitly unmapped grantrefs Date: Mon, 23 Nov 2009 22:52:31 +0000 Message-ID: References: <1259016236.2758.277.camel@ramone.somacoma.net> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1259016236.2758.277.camel@ramone.somacoma.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Daniel Stodden , Xen Developers List-Id: xen-devel@lists.xenproject.org On 23/11/2009 22:43, "Daniel Stodden" wrote: > I assume 'implicitly unmapped' therein refers to a case where rd is gone > because ld in some or the other way already managed to tear down a > mapping without an exlicit gnttab call? This correct? Otherwise killing > ld would seem a bit rough to me :} You are correct. > Either way: is domain_crash(ld) the appropriate response? Why not just > fail the op and let the caller live and learn? It's arguable I suppose. An implicitly unmapped grant leaves a grant entry which cannot be released until the mapping domain dies. It's a nasty kind of leak, and I made the hypervisor's response to it suitably abrupt. -- Keir