[libvirt] [PATCH] Fix incorrect use of private data in remote driver

Philipp Hahn hahn at univention.de
Thu Jul 22 12:21:55 UTC 2010


Hello,

Am Donnerstag 22 Juli 2010 11:37:06 schrieb Daniel P. Berrange:
> For upstream bug
>
>   https://bugzilla.redhat.com/show_bug.cgi?id=576796
>
> The remote driver is using the wrong privateData field in
> a couple of functions. THis is harmless for stateful
> drivers like QEMU/UML/LXC, but will crash with Xen
>
> * src/remote/remote_driver.c: Fix use of privateData field

Your patch seems to fix the problem; doing a quick test doesn't SEGV anymore.
#!/usr/bin/python
import libvirt
c = libvirt.open('xen:///')
n = c.networkLookupByName('default')
n.isPersistent()
n.isActive()

Thank you for your work.
Sincerely

Philipp
-- 
Philipp Hahn           Open Source Software Engineer      hahn at univention.de   
Univention GmbH        Linux for Your Business        fon: +49 421 22 232- 0
Mary-Somerville-Str.1  28359 Bremen                   fax: +49 421 22 232-99
                                                    http://www.univention.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100722/23d10a0e/attachment-0001.sig>


More information about the libvir-list mailing list