[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 05:04:15 -0700
  • Delivery-date: Tue, 17 Aug 2010 05:04:44 -0700
  • 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=
  • 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®.