Long Wang
2010-Aug-17 12:04 UTC
[Xen-devel] How to suspend a domU from within the domain itself
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. thanks,, long _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Long Wang
2010-Aug-17 12:06 UTC
[Xen-devel] How to suspend a domU from within the domain itself
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. thanks,, long _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Long Wang
2010-Aug-17 19:52 UTC
[Xen-devel] How to suspend a domU from within the domain itself
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. thanks,, long _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2010-Aug-18 06:33 UTC
Re: [Xen-devel] How to suspend a domU from within the domain itself
On 17/08/2010 20:52, "Long Wang" <longwang.longwang@gmail.com> 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@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel