[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • 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
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.