[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] How to suspend a domU from within the domain itself
On 17/08/2010 20:52, "Long Wang" <longwang.longwang@xxxxxxxxx> wrote: > I have a question about xen. I want to do the following operation: > When a domU enters the hypervisor (e.g. error handling, or other ways > to enter the hypervisor), the domU suspends itself. > Then the dom0 can resumes the domU which was suspended. > > I find that domain_pause() does not allow a domain to suspend itself. So I > tried > vcpu_sleep_sync(), vcpu_sleep_nosync(), or vcpu_force_reschedule() > within the context of the domU in the hypervisor code. But none of > them works. The domain continues its execution. > > I am working on xen-3.3.1 for my legacy purposes. The domU is a PV (not hvm). > > How can I suspend a domU from within the domU itself? I look forward > to your help. sched_op(SCHEDOP_shutdown, SHUTDOWN_suspend); dom0 can resume execution via xc_domain_resume(). -- Keir > thanks,, > long > > _______________________________________________ > Xen-devel mailing list > Xen-devel@xxxxxxxxxxxxxxxxxxx > http://lists.xensource.com/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |