From: George Dunlap Subject: Re: Unplugging a dom0 vcpu and domain destruction Date: Fri, 20 Feb 2009 18:59:06 +0000 Message-ID: References: <499EF347.4040300@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <499EF347.4040300@goop.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge Cc: "xen-devel@lists.xensource.com" , Keir Fraser List-Id: xen-devel@lists.xenproject.org On Fri, Feb 20, 2009 at 6:15 PM, Jeremy Fitzhardinge wrote: > Is it that the offline cpu still has a cr3 reference to a pagetable, and > that's not being given up? Or gdt? But that would be a reference in Xen, would it not -- from the d0v1's vcpu struct in Xen? The last reference to the domain pages went away when d0v1 wrote to one of its own l1e's. So one of dom0's l1's still contained a reference to those pages. The curious bit is why they weren't unmapped immediately if d0v1 wasn't online, and why they were unmapped immediately when d0v1 came back online. > In the pvops kernels we also keep a reference to the vcpu info structure, > since we place it the kernel's memory rather than keeping it in the shared > info structure. For a while that had bugs that left zombie domains lying > around, but I don't think anyone backported that stuff to 2.6.18. Hmm, I'll take a look tomorrow and see if I can work out what those two pages that were being kept are. -George