WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] How to suspend a domU from within the domain itself

To: Long Wang <longwang.longwang@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] How to suspend a domU from within the domain itself
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Wed, 18 Aug 2010 07:33:42 +0100
Cc:
Delivery-date: Tue, 17 Aug 2010 23:34:16 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTinV3ME+k8UoNiNwPwyoDFu7w-cLN5NKLsva3H=8@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acs+RdC4DSnU6n2dRvW95gZet3Z0LgAWXwdx
Thread-topic: [Xen-devel] How to suspend a domU from within the domain itself
User-agent: Microsoft-Entourage/12.26.0.100708
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

<Prev in Thread] Current Thread [Next in Thread>