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 12:52:33 -0700
Delivery-date: Tue, 17 Aug 2010 12:53:10 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=Bnr+rKXFBPeDfVWb36HSYiU8NyKKHiV4jkR3siO2UN0=; b=KIerJ5jtB0DgKgwTnKjhZ4qwzEt8YnjaOo92ktXbq64T+cInWgw9UvxgxpmhqxWe+w WX/5vgAIxhq+HkYniX9k3tm8H/48ew8u1boQlXsNIdO1oE/W25UKDdVwNIETeEVrHjqD MW/oaCWVx5bac3RKMrn/1FV0GwQNGbkCWjW1k=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=bs2jyHdj8iVAl/P3kq5XQW4SMCgO/kAXNvu0aXPIa2ZXHgW1l7HtyWHoXPKeXGfn+8 b4wFfo0geo9AjvSH94D5L2WPUNDXxNil0duk3N2GQiotUzi6NboeKxoGManRBFZecP+o 5rgRTBNDZzV6vbzDeZl9yhpOS/sHxE3MqnSwc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTi=QCjb0TWxQXB+GCwrx0Z+s9ktM++MVbU1fJvfr@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>
References: <AANLkTi=QCjb0TWxQXB+GCwrx0Z+s9ktM++MVbU1fJvfr@xxxxxxxxxxxxxx>
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