[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:06:15 -0700
  • Delivery-date: Tue, 17 Aug 2010 05:06:43 -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=gyCik9hGFxY07RcbE2HTg9OuvrDEAMwJbc+y9ENkQvnZXmIoF5/vzIzdA0k9PPe/hL 3H+mePbDQ5OTnQjyRws7e+yZsb+hUQfuFcAKlkxBIY+JRSTeKhrvWSOQIXvioxMq7QgJ P8jcgDMGHyUKRGr3xYtT79mwjG0hJUnYIvfCs=
  • 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®.