[libvirt] [PATCH 1/2] Fix AM_LDFLAGS typo

2013-09-01 Thread Guido Günther
--- This should probably go into 1.1.2 src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 636bcbc..19dfb81 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1455,7 +1455,7 @@ libvirt_driver_nwfilter_la_CFLAGS = \

[libvirt] [PATCH 2/2] Pass AM_LDFLAGS to driver modules too

2013-09-01 Thread Guido Günther
This gives us a RO got, otherwise Debian's lintian complains: W: libvirt-bin: hardening-no-relro usr/lib/libvirt/connection-driver/libvirt_driver_qemu.so W: libvirt-bin: hardening-no-relro usr/lib/libvirt/connection-driver/libvirt_driver_storage.so W: libvirt-bin: hardening-no-relro

Re: [libvirt] [PATCH v2] kvm: warn if num cpus is greater than num recommended

2013-09-01 Thread Gleb Natapov
On Fri, Aug 23, 2013 at 03:24:37PM +0200, Andrew Jones wrote: The comment in kvm_max_vcpus() states that it's using the recommended procedure from the kernel API documentation to get the max number of vcpus that kvm supports. It is, but by always returning the maximum number supported. The

[libvirt] [PATCHv5 1/5] domifaddr: Implement the public APIs

2013-09-01 Thread Nehal J Wani
Define a new API virDomainInterfaceAddresses, which returns the address information of a running domain's interfaces(s). If no interface name is specified, it returns the information of all interfaces, otherwise it only returns the information of the specificed interface. The address information

[libvirt] [PATCHv5 0/5] Introduce API to query IP addresses for given domain

2013-09-01 Thread Nehal J Wani
This feature has been requested for a very long time. Since qemu guest agent gives us reliable results, now the wait is over. The RFC was first proposed by Michal Privoznik: http://www.redhat.com/archives/libvir-list/2012-February/msg00437.html A patch was submitted, using structs:

[libvirt] [PATCHv5 2/5] domifaddr: Implement the remote protocol

2013-09-01 Thread Nehal J Wani
daemon/remote.c * Define remoteSerializeDomainInterface, remoteDispatchDomainInterfaceAddresses src/remote/remote_driver.c * Define remoteDomainInterfaceAddresses src/remote/remote_protocol.x * New RPC procedure: REMOTE_PROC_DOMAIN_INTERFACE_ADDRESSES * Define structs

[libvirt] [PATCHv5 4/5] domifaddr: Add virsh support

2013-09-01 Thread Nehal J Wani
Use virDomainInterfaceAddresses in virsh tools/virsh-domain-monitor.c * Introduce new command : domifaddr Usage: domifaddr domain [interface] [full] Example output: virsh # domifaddr f18 Name MAC address Protocol IP Address

[libvirt] [PATCHv5 5/5] domifaddr: Expose python binding

2013-09-01 Thread Nehal J Wani
Expose virDomainInterfaceAddresses to python binding examples/python/Makefile.am: * Add new file domipaddrs.py examples/python/README: * Add documentation for the python example python/libvirt-override-api.xml: * Add new symbol for virDomainInterfaceAddresses python/libvirt-override.c:

[libvirt] [PATCHv5 3/5] domifaddr: Implement the API for qemu

2013-09-01 Thread Nehal J Wani
By querying the qemu guest agent with the QMP command guest-network-get-interfaces and converting the received JSON output to structured objects. Although ifconfig is deprecated, IP aliases created by ifconfig are supported by this API. The legacy syntax of an IP alias is: ifname:alias-name.

Re: [libvirt] [PATCHv3 2/6] virsh: Add vshCmdCompleter and vshOptCompleter

2013-09-01 Thread Tomas Meszaros
On 28/08/13 at 06:00am, Eric Blake wrote: [re-adding the list, which was accidentally omitted] On 08/28/2013 05:26 AM, Tomas Meszaros wrote: Per-option completions make sense. For example, 'virsh vol-key --pool TAB' wants to use a pool completer, while 'virsh vol-key --vol TAB' wants to

Re: [libvirt] [PATCH v2] kvm: warn if num cpus is greater than num recommended

2013-09-01 Thread Marcelo Tosatti
On Fri, Aug 23, 2013 at 03:24:37PM +0200, Andrew Jones wrote: The comment in kvm_max_vcpus() states that it's using the recommended procedure from the kernel API documentation to get the max number of vcpus that kvm supports. It is, but by always returning the maximum number supported. The

Re: [libvirt] [PATCH] qemu_hotplug: Resolve DEADCODE coverity error

2013-09-01 Thread John Ferlan
On 08/31/2013 07:24 AM, John Ferlan wrote: Remove unused 'cgroup' variable in qemuDomainAttachDeviceDiskLive() to resolve coverity DEADCODE complaint --- Refactoring of qemuDomainAttachDeviceDiskLive() in the following patch:

Re: [libvirt] Can I request a new release of libvirt-java?

2013-09-01 Thread Daniel Veillard
On Fri, Aug 30, 2013 at 12:31:55PM +0200, Wido den Hollander wrote: On 08/15/2013 11:00 AM, Wido den Hollander wrote: Hello, In the recent months various new methods were added to libvirt-java which we (Apache CloudStack) would like to use in our KVM code. For example resizing storage

Re: [libvirt] Entering freeze for libvirt-1.1.2

2013-09-01 Thread Daniel Veillard
On Fri, Aug 30, 2013 at 02:58:35PM +0200, Viktor Mihajlovski wrote: On 08/28/2013 06:25 PM, Daniel Veillard wrote: I am a day late but I finally tagged the release candidate 1 of 1.1.2 in git and push the tarball and rpms to the usual place: ftp://libvirt.org/libvirt/ so the plan

[libvirt] Release of libvirt-1.1.2

2013-09-01 Thread Daniel Veillard
As scheduled I have pushed the tarballs and rpms of the new release at the usual place: ftp://libvirt.org/libvirt/ This is a medium sized release with less than 300 commits, with a inclination toward code improvements and bugs fixes, in particular fixes for 4 CVEs. It may be a good idea to

Re: [libvirt] [PATCH 1/3] CPU: Implement guestData for PPC CPU driver

2013-09-01 Thread Li Zhang
Any comments about my CPU patches? On 2013年08月29日 16:46, Li Zhang wrote: From: Li Zhang zhlci...@linux.vnet.ibm.com On Power platform, Power7+ can support Power7 guest. It needs to define XML configuration to specify guest's CPU model. For exmaple: cpu match='exact'

Re: [libvirt] [PATCH 1/3] CPU: Implement guestData for PPC CPU driver

2013-09-01 Thread Doug Goldstein
On Thu, Aug 29, 2013 at 3:46 AM, Li Zhang zhlci...@gmail.com wrote: From: Li Zhang zhlci...@linux.vnet.ibm.com On Power platform, Power7+ can support Power7 guest. It needs to define XML configuration to specify guest's CPU model. For exmaple: cpu match='exact'

Re: [libvirt] [PATCHv3 1/4] VMX: Create virVMXFormatDisk() from HD and CD-ROM

2013-09-01 Thread Doug Goldstein
On Thu, Aug 29, 2013 at 5:19 AM, Michal Privoznik mpriv...@redhat.comwrote: On 28.08.2013 23:53, Doug Goldstein wrote: virVMXFormatHardDisk() and virVMXFormatCDROM() duplicated a lot of code from each other and made a lot of nested if checks to build each part of the VMX file. This