qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v9 2/4] qemu: URI parsing library


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v9 2/4] qemu: URI parsing library
Date: Mon, 24 Sep 2012 07:11:30 -0400 (EDT)


----- Messaggio originale -----
> Da: "Richard W.M. Jones" <address@hidden>
> A: "Bharata B Rao" <address@hidden>
> Cc: address@hidden, "Paolo Bonzini" <address@hidden>, "Kevin Wolf" 
> <address@hidden>, "Avi Kivity"
> <address@hidden>, "Anthony Liguori" <address@hidden>, "Stefan Hajnoczi" 
> <address@hidden>, "Blue Swirl"
> <address@hidden>, "Anand Avati" <address@hidden>, "Vijay Bellur" 
> <address@hidden>, "Amar Tumballi"
> <address@hidden>, "Harsh Bora" <address@hidden>, "Daniel Veillard" 
> <address@hidden>
> Inviato: Lunedì, 24 settembre 2012 12:27:38
> Oggetto: Re: [PATCH v9 2/4] qemu: URI parsing library
> 
> 
> On Mon, Sep 24, 2012 at 02:42:02PM +0530, Bharata B Rao wrote:
> > qemu: URI parsing library
> > 
> > From: Paolo Bonzini <address@hidden>
> > 
> > Add a new URI parsing library to QEMU. The code has been borrowed
> > from libxml2 and libvirt.
> 
> Rather than duplicating the libxml2 code, I think it would be better
> to depend on libxml2.  While it's not ideal to add more external
> dependencies, libxml2 is very commonly available.  Also libxml2 gets
> frequent security updates and you never know when the URI code here
> might be found to contain some sort of bug / security issue.

You're preaching to the choir here, but I think there are limited
advantages in this case.  The URI parsing has seen hardly any change
in the last 2 years and is surprisingly self-contained even in libxml2:
the dependencies were limited to memory allocation hooks basically.

A better plan would be to incorporate this code into glib, completing
the extremely sparse URI support that is already there.  However, we
would not be able to use it anyway, because we support compiling on old
glib versions.

Paolo

> This will need a change to the qemu configure script of course.
> 
> Rich.
> 
> --
> Richard Jones, Virtualization Group, Red Hat
> http://people.redhat.com/~rjones
> virt-df lists disk usage of guests without needing to install any
> software inside the virtual machine.  Supports Linux and Windows.
> http://et.redhat.com/~rjones/virt-df/
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]