Re: [PATCH] Save on separate connection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Mar 23, 2008 at 09:54:47PM +0100, Soren Hansen wrote:
> Here's another patch I've been neglecting to forward. :(
> 
> Requests to kvm to save its state is sent from a different thread, but
> on the same connection as any other communication with the relevant
> libvirtd instance.  This has a good chance of causing responses to come
> back out of order, and that makes libvirt cry. :(
> 
> This patch creates a separate connection for the save operation. I'm
> almost sure it's not correct, but it seems to do the job. :) 

Rather that creating a full vmmConnection() object, I think its a little
simpler to just make the save() method on the vmmDomain() object take a
flag such as 'background', and if set make it use a separate libvirt level
connection() object. Same end result, but closer to the design we'll need
when libvirt gets support for a VIR_DOMAIN_SAVE_ASYNC flag on the save()
method.

Regards,
Daniel.
-- 
|: Red Hat, Engineering, Boston   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux