* Migration of paused domains
@ 2006-08-03 13:13 Rob Bradford
2006-08-03 13:25 ` Steven Hand
0 siblings, 1 reply; 7+ messages in thread
From: Rob Bradford @ 2006-08-03 13:13 UTC (permalink / raw)
To: xen-devel
I'm not sure if this is a real bug or not, but when attempting to test
my block device migration system I pause the domain to ensure that no
more writes to the backing block device will occur.
Unfortunately if the domain is pause an xm migrate command simply leads
to the xm migrate command hanging. I would have thought it should be
possible to migrate a paused domain. Is this a bug or is there a real
problem with trying to migrate a paused domain?
Cheers,
Rob
--
Rob Bradford <rob.bradford@xenoservers.net>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Migration of paused domains
2006-08-03 13:13 Migration of paused domains Rob Bradford
@ 2006-08-03 13:25 ` Steven Hand
2006-08-03 17:42 ` Jayesh Salvi
0 siblings, 1 reply; 7+ messages in thread
From: Steven Hand @ 2006-08-03 13:25 UTC (permalink / raw)
To: Rob Bradford; +Cc: xen-devel
> I'm not sure if this is a real bug or not, but when attempting to test
> my block device migration system I pause the domain to ensure that no
> more writes to the backing block device will occur.
>
> Unfortunately if the domain is pause an xm migrate command simply leads
> to the xm migrate command hanging. I would have thought it should be
> possible to migrate a paused domain. Is this a bug or is there a real
> problem with trying to migrate a paused domain?
There is a problem in migrating (or saving) a paused paravirtual
domain - the guest OS needs to be 'aware' that it is being suspended
so that it can ensure there are no stale mfns lying around (since
these will no longer be valid after the resume / on the destination
node).
cheers,
S.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Migration of paused domains
2006-08-03 13:25 ` Steven Hand
@ 2006-08-03 17:42 ` Jayesh Salvi
0 siblings, 0 replies; 7+ messages in thread
From: Jayesh Salvi @ 2006-08-03 17:42 UTC (permalink / raw)
To: Steven Hand; +Cc: Rob Bradford, xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1252 bytes --]
There was a discussion on these lines sometime back.
http://lists.xensource.com/archives/html/xen-devel/2006-05/msg00521.html
On 8/3/06, Steven Hand <Steven.Hand@cl.cam.ac.uk> wrote:
>
>
> > I'm not sure if this is a real bug or not, but when attempting to test
> > my block device migration system I pause the domain to ensure that no
> > more writes to the backing block device will occur.
> >
> > Unfortunately if the domain is pause an xm migrate command simply leads
> > to the xm migrate command hanging. I would have thought it should be
> > possible to migrate a paused domain. Is this a bug or is there a real
> > problem with trying to migrate a paused domain?
>
> There is a problem in migrating (or saving) a paused paravirtual
> domain - the guest OS needs to be 'aware' that it is being suspended
> so that it can ensure there are no stale mfns lying around (since
> these will no longer be valid after the resume / on the destination
> node).
>
>
> cheers,
>
> S.
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
--
Jayesh
------------------------------------------------------------------------
Everything you can imagine is real
[-- Attachment #1.2: Type: text/html, Size: 1807 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Migration of paused domains
@ 2008-07-19 12:33 Alessandro Sardo
2008-07-19 12:37 ` James Harper
0 siblings, 1 reply; 7+ messages in thread
From: Alessandro Sardo @ 2008-07-19 12:33 UTC (permalink / raw)
To: xen-devel
Hello,
today I wanted to find out if it was possible to migrate a paused
domain. So, I tried the following:
# xm pause <dom>
# xm migrate <dom> <dest>
Unfortunately, the migration process would just hang before suspending
the domain and transferring its state. In order to resume it and
complete migration, I had to unpause the domain:
# xm unpause <dom>
After that, the process did get completed successfully.
-----
Then, I tried and track down the reason of this in the sources, and I
came to the following snip (XendDomainInfo.py):
def waitForShutdown(self):
self.state_updated.acquire()
try:
while self._stateGet() in
(DOM_STATE_RUNNING,DOM_STATE_PAUSED):
self.state_updated.wait()
finally:
self.state_updated.release()
It looks like that makes it wait forever, since the domain remains stuck
in the DOM_STATE_PAUSED state.
Now, the question is: is that the right behaviour or am I missing
something? Is it really not possible to migrate a paused domain?
Thanks,
- AS
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Migration of paused domains
2008-07-19 12:33 Alessandro Sardo
@ 2008-07-19 12:37 ` James Harper
2008-07-19 12:46 ` Alessandro Sardo
0 siblings, 1 reply; 7+ messages in thread
From: James Harper @ 2008-07-19 12:37 UTC (permalink / raw)
To: Alessandro Sardo, xen-devel
> today I wanted to find out if it was possible to migrate a paused
> domain. So, I tried the following:
>
> # xm pause <dom>
> # xm migrate <dom> <dest>
>
For PV domains, migrate requires the DomU itself to make a suspend call
to the hypervisor when it is ready to suspend. I guess it can't do that
if it is paused...
James
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Migration of paused domains
2008-07-19 12:37 ` James Harper
@ 2008-07-19 12:46 ` Alessandro Sardo
2008-07-19 15:51 ` Mark Williamson
0 siblings, 1 reply; 7+ messages in thread
From: Alessandro Sardo @ 2008-07-19 12:46 UTC (permalink / raw)
To: James Harper; +Cc: xen-devel
James Harper ha scritto:
>> today I wanted to find out if it was possible to migrate a paused
>> domain. So, I tried the following:
>>
>> # xm pause <dom>
>> # xm migrate <dom> <dest>
>>
>
> For PV domains, migrate requires the DomU itself to make a suspend call
> to the hypervisor when it is ready to suspend. I guess it can't do that
> if it is paused...
>
> James
I see. Would you be so kind to point me at that suspend call in the sources?
Thanks again!
- AS
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Migration of paused domains
2008-07-19 12:46 ` Alessandro Sardo
@ 2008-07-19 15:51 ` Mark Williamson
0 siblings, 0 replies; 7+ messages in thread
From: Mark Williamson @ 2008-07-19 15:51 UTC (permalink / raw)
To: xen-devel; +Cc: James Harper, Alessandro Sardo
On Saturday 19 July 2008, Alessandro Sardo wrote:
> James Harper ha scritto:
> >> today I wanted to find out if it was possible to migrate a paused
> >> domain. So, I tried the following:
> >>
> >> # xm pause <dom>
> >> # xm migrate <dom> <dest>
> >
> > For PV domains, migrate requires the DomU itself to make a suspend call
> > to the hypervisor when it is ready to suspend. I guess it can't do that
> > if it is paused...
> >
> > James
>
> I see. Would you be so kind to point me at that suspend call in the
> sources?
In the Linux sources I think you could start browsing from
drivers/xen/core/reboot.c::xen_suspend().
The final hypercall to suspend the guest (HYPERVISOR_suspend) is done in
drivers/xen/core/machine_reboot.c::take_machine_down()
Hope that helps,
Cheers,
Mark
>
> Thanks again!
>
> - AS
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
--
Push Me Pull You - Distributed SCM tool (http://www.cl.cam.ac.uk/~maw48/pmpu/)
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-07-19 15:51 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-03 13:13 Migration of paused domains Rob Bradford
2006-08-03 13:25 ` Steven Hand
2006-08-03 17:42 ` Jayesh Salvi
-- strict thread matches above, loose matches on Subject: below --
2008-07-19 12:33 Alessandro Sardo
2008-07-19 12:37 ` James Harper
2008-07-19 12:46 ` Alessandro Sardo
2008-07-19 15:51 ` Mark Williamson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.