From: George Dunlap Subject: Unplugging a dom0 vcpu and domain destruction Date: Tue, 17 Feb 2009 17:30:03 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org In the course of developing the new scheduler, I noticed something rather strange. If I bring dom0's second cpu offline (echo "0" > /sys/devices/system/cpu/cpu1/online), and then create and destroy a number of domains, xen/common/domain.c:domain_destroy() is not called (nor vcpu_destroy, and the scheduler domain destruction functionality). If I bring the cpu back online (echo 1 > ...), the domains are destroyed almost immediately. domain_destroy() is only called from put_domain(), so presumably there's somehow reference counts held somewhere which aren't released when the second cpu is offline. I've duplicated this using the standard credit scheduler on xen-unstable tip. I'm using a Debian dom0 filesystem, and a linux-2.6.18-xen0 build from a month ago. My box has 2 cores, so dom0 has only 2 cpus; disabling the second causes it to switch to UP primitives. I'm looking into it, but I thought it might ring some bells with someone... -George