[libvirt] Java binding

Daniel Veillard veillard at redhat.com
Tue May 12 15:00:18 UTC 2009


On Tue, May 12, 2009 at 04:43:53PM +0300, Zvi Dubitzky wrote:
> Who is the contact for libvirt Java binding ?

  this list, potentially me in the end, but I'm way behind and
not a Java expert !

> In a late mail I said that the Java binding  crashes upon live migrate 
> when  the dname=null .
> It does not crash if dname = source domain name  even though works slow.
> 
> The C code of libvirt / libvirt.c /virDomainMigrate ()  says in its header 
> that :
> "If a hypervisor supports renaming domains during migration,
>  * then you may set the dname parameter to the new name (otherwise
>  * it keeps the same name).  If this is not supported by the
>  * hypervisor, dname must be NULL or else you will get an error."
> 
> So in the kvm case dname = NULL works for the C binding but not for the 
> JAVA binding  as it should .
> 
> Any idea ?

  Someone need to fix the JNI glue code to accept to pass NULL...
could be me but might be faster if someone else does it :-\

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/




More information about the libvir-list mailing list