John Levon wrote: > On Sun, Apr 27, 2008 at 10:31:54PM -0700, Antonello Cruz wrote: >> One way to avoid the abandon_contract() code, it to set the inherit >> parameter for the process contracts holding the qemu process. Just call >> ct_pr_tmpl_set_param(cfd, CT_PR_INHERIT) >> before you ct_tmpl_activate() >> >> This way, if xend is restarted, svc.startd will transfer the qemu >> contracts to the contract holding xend. If desired, after xend is >> restarted, it can adopt the qemu contracts from the process contract >> xend is member of. I attached an example based on your code exemplifying >> the behavior described above. Please let me know if you have questions. > > If it inherits, won't that mean that restarting xend's owner > (svc.startd) will then kill the qemu processes? We basically want them > to keep running at all times. If xend is restarted and the qemu processes are in their own contract with the inherit bit set, they will not be killed by svc.startd. You can run the test code I sent you and check for yourself. Even better, just set the inherit bit in your create_contract() code and don't call your abandon_contract() function to test.
Antonello _______________________________________________ xen-discuss mailing list [email protected]
