[PATCH] Implement finer grained migration control for Xen (was: Re: [libvirt] [PATCH] Finer grained migration control)
Maximilian Wilhelm
max at rfc2324.org
Tue Oct 13 22:40:25 UTC 2009
Anno domini 2009 Daniel Veillard scripsit:
> On Mon, Oct 12, 2009 at 01:32:26PM +0200, Chris Lalancette wrote:
> > Normally, when you migrate a domain from host A to host B,
> > the domain on host A remains defined but shutoff and the domain
> > on host B remains running but is a "transient". Add a new
> > flag to virDomainMigrate() to allow the original domain to be
> > undefined on source host A, and a new flag to virDomainMigrate() to
> > allow the new domain to be persisted on the destination host B.
> > Signed-off-by: Chris Lalancette <clalance at redhat.com>
Thanks for the ground work!
Attached you can find a patch implementing the same flags for Xen:
* src/xen/xen_driver.c: Add support for VIR_MIGRATE_PERSIST_DEST flag
* src/xen/xend_internal.c: Add support for VIR_MIGRATE_UNDEFINE_SOURCE flag
I'm not totaly sure if there are better ways to handle all the error
cases. The current solution seemed to be a same one for me.
Ciao
Max
--
Eine Freie Meinung in einem Freien Kopf
für einen Freien Staat voll Freier Bürger.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xen_migrate_persist.patch
Type: text/x-diff
Size: 3429 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20091014/4b76d357/attachment-0001.bin>
More information about the libvir-list
mailing list