Re: [libvirt] [PATCH 1/1] Support a new peer-to-peer migration mode

2009-10-02 Thread Daniel P. Berrange
On Thu, Oct 01, 2009 at 11:43:17PM +0200, Paolo Bonzini wrote: + +if (dconn) +ddomain = virDomainLookupByName (dconn, dname ? dname : domain-name); +else { +ddomain = domain; +virDomainRef (domain); +} This bit of code is

Re: [libvirt] [PATCH 1/1] Support a new peer-to-peer migration mode

2009-10-02 Thread Paolo Bonzini
On 10/02/2009 01:53 PM, Daniel P. Berrange wrote: This bit of code is exactly why we need a new API - the return value is declared to be a virDomainPtr on the destination host, not just a copy of the original source domain which no longer even exists on the source host if it was a transient

[libvirt] [PATCH 1/1] Support a new peer-to-peer migration mode

2009-10-01 Thread Paolo Bonzini
This patch introduces a peer-to-peer migration protocol where the client only invokes the virDomainMigratePerform method, expecting the source host driver to do whatever is required to complete the entire migration process. This method is used by virsh whenever the hypervisor supports it and the