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

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] How to suspend a domU from within the domain itself
From: Long Wang <longwang.longwang@xxxxxxxxx>
Date: Tue, 17 Aug 2010 05:04:15 -0700
Delivery-date: Tue, 17 Aug 2010 05:04:44 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=Bnr+rKXFBPeDfVWb36HSYiU8NyKKHiV4jkR3siO2UN0=; b=jdxlEVcsDYWPFM1uYg9cR0E7pAmE4iPl8QDsMuoQc5vswGrJce/MCPxCucth7oz3D4 /GjqNxP4Uuvj2zNyhSfM93IWa5O4p3WFM6UlZ23OfNFqWj1pzpfXmEjWdFMT9CyzeWzr AV5ETzUfT1ScYPo+D3dhUPoox0zTZnF4YTEDY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=BVAIsunId/1aBowsy/7GV9ailRcR4TY6l0AhIALLU75kX3Bi1qOKGeHvxZ2sof8eQU 2Sx2DdfBKMwAoGM6DYQQ3T1wRmBLxlqbdyrEa2Ld6Z18y1qnE52REQtGLUgH/IZ4dDQG +xhYY3uyucjdp8ql6Z7Mpdxi7eeAv9i5fB9iQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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
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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

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