On 08/28/2012 02:21 AM, liguang wrote:
> src: begin - pass the xml to dst (unchanged for offline)
> dst: prepare - get ready to accept incoming VM (online starts a new qemu
but, how can dst knows the prepared migration is offline or not at src?
By the cookie that was passed in from src from the begin phase. That
is, you need to expand the cookie to pass one more piece of information
- whether this is a live or offline migration.
virDomainObjIsActive will always return 0 at dst at prepare phase,
so, how can we setup a distinguished stream for offline migration here?
a special parameter for this purpose? roughly way, a modified API same
with a new API, I think.
No, we do not need a new API.
--
Eric Blake eblake(a)redhat.com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org