[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Re: Reg domU shutdown
On Friday 11 July 2008, Sandesh wrote: > > I also looked at the xen drivers in domU kernel source. There i found > > cpu_die func in drivers/xen/core/smpboot.c and am assuming this might be > > the one invoked for shuting down domU. > > i think shutdown_handler of drivers/xen/core/reboot.c is used to > terminate the guest. I want to know what mechanism is used to invoke > it?? > I see that it is setup as a watch function on xenbus. But how is it > triggered?? > Please tell me if my understanding is correct. I think you've got the right idea. When you use the xm command, it talks to Xend in dom0 to instruct it to perform the appropriate management tasks. The shutdown is then initiated by Xend in dom0 writing to Xenstore. The Xenbus driver (the Linux interface to Xenstore) picks up this modification to Xenstore and forwards it on to the registered watcher, resulting in shutdown_handler() being called in reboot.c. This in turn causes a userspace program to be run to initiate a clean domain shutdown. Hope that helps. Cheers, Mark Cheers, Mark -- Push Me Pull You - Distributed SCM tool (http://www.cl.cam.ac.uk/~maw48/pmpu/) _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |