All of lore.kernel.org
 help / color / mirror / Atom feed
* Unplugging a dom0 vcpu and domain destruction
@ 2009-02-17 17:30 George Dunlap
  2009-02-17 17:39 ` Keir Fraser
  0 siblings, 1 reply; 10+ messages in thread
From: George Dunlap @ 2009-02-17 17:30 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-02-24 17:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-17 17:30 Unplugging a dom0 vcpu and domain destruction George Dunlap
2009-02-17 17:39 ` Keir Fraser
2009-02-20 17:13   ` George Dunlap
2009-02-20 18:15     ` Jeremy Fitzhardinge
2009-02-20 18:59       ` George Dunlap
2009-02-20 20:02         ` Jeremy Fitzhardinge
2009-02-20 21:17         ` Keir Fraser
2009-02-24  9:07           ` George Dunlap
2009-02-24 12:08             ` Keir Fraser
2009-02-24 17:26               ` George Dunlap

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.