Re: [libvirt] [PATCH] qemucaps2xmltest: fix test to successfully run without kvm support

2015-03-31 Thread Guido Günther
Hi, On Wed, Mar 25, 2015 at 03:24:53PM +0100, Guido Günther wrote: Hi, On Wed, Mar 25, 2015 at 12:29:41PM +0100, Pavel Hrdina wrote: On Wed, Mar 25, 2015 at 12:12:20PM +0100, Ján Tomko wrote: On Wed, Mar 25, 2015 at 10:50:52AM +0100, Pavel Hrdina wrote: Function

Re: [libvirt] [PATCH] virDomainShutdown*: Describe blocking behaviour

2015-03-31 Thread Michal Privoznik
On 30.03.2015 22:38, Eric Blake wrote: On 03/30/2015 06:07 AM, Michal Privoznik wrote: The description to both virDomainShutdown() and virDomainShutdownFlags() is quite misleading when it comes to blocking behaviour of these two APIs. Firstly, we support many shutdown methods, from

Re: [libvirt] [PATCH V2] libxl: fix dom0 balloon logic

2015-03-31 Thread Martin Kletzander
On Tue, Mar 24, 2015 at 02:43:42PM -0600, Jim Fehlig wrote: Recent testing on large memory systems revealed a bug in the Xen xl tool's freemem() function. When autoballooning is enabled, freemem() is used to ensure enough memory is available to start a domain, ballooning dom0 if necessary.

Re: [libvirt] [PATCH 1/2] hostdev: Fix index error in loop after remove an element

2015-03-31 Thread Martin Kletzander
On Thu, Mar 26, 2015 at 10:23:46PM +0800, Huanle Han wrote: 'virPCIDeviceList' is actually an array. Removing one element makes the rest of the element move. Use while loop, increase index only when not virPCIDeviceListDel(pcidevs, dev) Signed-off-by: Huanle Han hanxue...@gmail.com ---

Re: [libvirt] [PATCH 1/3] iscsi: Check for presence of error before creating new one

2015-03-31 Thread Ján Tomko
On Mon, Mar 30, 2015 at 07:16:32PM -0400, John Ferlan wrote: If virStorageBackendSCSIFindLUs fails, but the failure has an error message - the iscsi code didn't honor that creating it's own wonderful message such as error: Failed to find LUs on host 60: ... - not overly helpful. Since a few of

Re: [libvirt] [PATCH 2/2] hostdev: fix net config restore error

2015-03-31 Thread Martin Kletzander
On Thu, Mar 26, 2015 at 10:23:47PM +0800, Huanle Han wrote: Fix for such a case: 1. Domain A and B xml contain the same SRIOV net hostdev(interface type='hostdev' / with same pci address). 2. virsh start A (Successfully, and configure the SRIOV net with custom mac) 3. virsh start B (Fail because

Re: [libvirt] [PATCH 1/2] tests: nodeinfo: Test F21 aarch64 on APM mustang

2015-03-31 Thread Ján Tomko
On Sat, Mar 28, 2015 at 02:31:30PM -0400, Cole Robinson wrote: -- 8 -- ACK to both. Jan signature.asc Description: Digital signature -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [PATCH v2 0/3] A few NUMA fixes

2015-03-31 Thread Michal Privoznik
diff to v1: -reworked to follow Jan's review. Hopefully. Michal Privoznik (3): vircgroup: Introduce virCgroupControllerAvailable qemuProcessHook: Call virNuma*() iff needed virLXCControllerSetupResourceLimits: Call virNuma*() iff needed src/libvirt_private.syms | 1 +

[libvirt] [PATCH v2 3/3] virLXCControllerSetupResourceLimits: Call virNuma*() iff needed

2015-03-31 Thread Michal Privoznik
Like we are doing in qemu driver ($COMMIT_HASH_TO_BE_FILLED_DURING_PUSHING), lets call virNumaSetupMemoryPolicy() only if really needed. Problem is, if we numa_set_membind() child, there's no way to change it from the daemon afterwards. So any later attempts to change the pinning will fail. But in

[libvirt] [PATCH v2 2/3] qemuProcessHook: Call virNuma*() iff needed

2015-03-31 Thread Michal Privoznik
https://bugzilla.redhat.com/show_bug.cgi?id=1198645 Once upon a time, there was a little domain. And the domain was pinned onto a NUMA node and hasn't fully allocated its memory: memory unit='KiB'2355200/memory currentMemory unit='KiB'1048576/currentMemory numatune memory

[libvirt] [PATCH v2 1/3] vircgroup: Introduce virCgroupControllerAvailable

2015-03-31 Thread Michal Privoznik
This new internal API checks if given CGroup controller is available. It is going to be needed later when we need to make a decision whether pin domain memory onto NUMA nodes using cpuset CGroup controller or using numa_set_membind(). Signed-off-by: Michal Privoznik mpriv...@redhat.com ---

Re: [libvirt] connect: ssh: Shall we remove the dependency of netcat ?

2015-03-31 Thread Peter Krempa
On Tue, Mar 31, 2015 at 09:02:23 +0800, zhang bo wrote: On 2015/3/28 0:25, Peter Krempa wrote: On Fri, Mar 27, 2015 at 10:54:26 +0800, zhang bo wrote: Too powerful? That is a ridiculous statement that probably originates from some kind of misunderstanding when creating a security

Re: [libvirt] [PATCH 3/3] scsi: Check for invalid target.path after processLU failure

2015-03-31 Thread Ján Tomko
On Mon, Mar 30, 2015 at 07:16:34PM -0400, John Ferlan wrote: https://bugzilla.redhat.com/show_bug.cgi?id=1171933 After processing all the LU's and find no real LU's - check if perhaps the cause of that was a poorly formed 'target.path'. The expection is generally that the path is

Re: [libvirt] [PATCH 1/3] iscsi: Check for presence of error before creating new one

2015-03-31 Thread John Ferlan
On 03/31/2015 07:03 AM, Ján Tomko wrote: On Mon, Mar 30, 2015 at 07:16:32PM -0400, John Ferlan wrote: If virStorageBackendSCSIFindLUs fails, but the failure has an error message - the iscsi code didn't honor that creating it's own wonderful message such as error: Failed to find LUs on host

Re: [libvirt] [PATCH 3/3] qemu: blockjob: Synchronously update backing chain in XML on ABORT/PIVOT

2015-03-31 Thread Peter Krempa
On Mon, Mar 30, 2015 at 14:51:08 -0600, Eric Blake wrote: On 03/30/2015 03:26 AM, Peter Krempa wrote: When the synchronous pivot option is selected, libvirt would not update the backing chain until the job was exitted. Some applications then s/exitted/exited/ received invalid data as

Re: [libvirt] [PATCH] virDomainShutdown*: Describe blocking behaviour

2015-03-31 Thread Eric Blake
On 03/31/2015 01:37 AM, Michal Privoznik wrote: I don't think this is the right approach. It is okay to block for a small finite amount of time, but if the guest agent really is something that can hang, we should fix that code to return without waiting for the agent response. The problem

Re: [libvirt] [PATCH v4 0/9] qemu: Add quorum support to libvirt

2015-03-31 Thread Matthias Gatto
On Tue, Mar 17, 2015 at 8:25 PM, Matthias Gatto matthias.ga...@outscale.com wrote: The purpose of these patches is to introduce quorum for libvirt I've try to follow this proposal: http://www.redhat.com/archives/libvir-list/2014-May/msg00533.html This feature ask for 6 task: 1) Allow a

[libvirt] [RFC] How to build libvirt package with git commit info from libvirt.git

2015-03-31 Thread Shanzhi Yu
Hello there, Currently I am searching a way to build a libvirt package from latest libvirt.git with package name including git commit info. Like # cd libvirt git describe v1.2.14-rc1-16-g0c4474d then I want to build a libvirt package with name like

[libvirt] [PATCH] Add vmport feature

2015-03-31 Thread Marc-André Lureau
The QEMU machine vmport option allows to set the VMWare IO port emulation. This emulation is useful for absolute pointer input when the guest has vmware input drivers, and is enabled by default for kvm. However it is unnecessary for Spice-enabled VM, since the agent already handles absolute

[libvirt] Lispvirt: porting Libvirt API for Common Lisp

2015-03-31 Thread Julio Faracco
Hi everyone! I'm developing a Libvirt bindings for Common Lisp. The project is called Lispvirt. I created this project because I was doing a project in Lisp to manage Virtual Machines. So, I needed to implement some code using C and set up Lisp to access those methods in C. This project was

Re: [libvirt] [PATCH] virsh: add check for exclusive options for domstats command

2015-03-31 Thread Peter Krempa
On Tue, Mar 31, 2015 at 15:34:10 +0200, Pavel Hrdina wrote: Option --domain cannot be combined with options --list-*. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1143837 Signed-off-by: Pavel Hrdina phrd...@redhat.com --- tools/virsh-domain-monitor.c | 9 + 1 file

Re: [libvirt] [PATCH 0/8] Fix cgroups regresion when default cpuset is specified

2015-03-31 Thread Ján Tomko
On Fri, Mar 27, 2015 at 02:12:04PM +0100, Peter Krempa wrote: Since commit a39f69d2b libvirt would fail to start a VM if the default cpu set was specified and individual vcpus were pinned to cpus outside of that cpuset. Peter Krempa (8): qemu: cgroup: Store auto cpuset instead of

Re: [libvirt] [PATCH 1/2] tests: nodeinfo: Test F21 aarch64 on APM mustang

2015-03-31 Thread Cole Robinson
On 03/31/2015 04:19 PM, Eric Blake wrote: On 03/31/2015 09:19 AM, Cole Robinson wrote: On 03/31/2015 06:06 AM, Ján Tomko wrote: On Sat, Mar 28, 2015 at 02:31:30PM -0400, Cole Robinson wrote: -- 8 -- ACK to both. Jan Thanks, but trying to push I'm getting errors: remote:

Re: [libvirt] [PATCH 1/2] tests: nodeinfo: Test F21 aarch64 on APM mustang

2015-03-31 Thread Eric Blake
On 03/31/2015 09:19 AM, Cole Robinson wrote: On 03/31/2015 06:06 AM, Ján Tomko wrote: On Sat, Mar 28, 2015 at 02:31:30PM -0400, Cole Robinson wrote: -- 8 -- ACK to both. Jan Thanks, but trying to push I'm getting errors: remote: tests/nodeinfodata/linux-f21-mustang/cpu/cpu0/uevent:1:

Re: [libvirt] [PATCH V2] libxl: fix dom0 balloon logic

2015-03-31 Thread Jim Fehlig
Martin Kletzander wrote: On Tue, Mar 24, 2015 at 02:43:42PM -0600, Jim Fehlig wrote: Recent testing on large memory systems revealed a bug in the Xen xl tool's freemem() function. When autoballooning is enabled, freemem() is used to ensure enough memory is available to start a domain,

Re: [libvirt] [PATCH V2] libxl: fix dom0 balloon logic

2015-03-31 Thread Martin Kletzander
On Tue, Mar 31, 2015 at 08:16:09AM -0600, Jim Fehlig wrote: Martin Kletzander wrote: On Tue, Mar 24, 2015 at 02:43:42PM -0600, Jim Fehlig wrote: Recent testing on large memory systems revealed a bug in the Xen xl tool's freemem() function. When autoballooning is enabled, freemem() is used to

[libvirt] [PATCH] virsh: add check for exclusive options for domstats command

2015-03-31 Thread Pavel Hrdina
Option --domain cannot be combined with options --list-*. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1143837 Signed-off-by: Pavel Hrdina phrd...@redhat.com --- tools/virsh-domain-monitor.c | 9 + 1 file changed, 9 insertions(+) diff --git a/tools/virsh-domain-monitor.c

Re: [libvirt] [PATCH] Add vmport feature

2015-03-31 Thread Marc-André Lureau
Hi On Wed, Apr 1, 2015 at 2:45 AM, Marc-André Lureau marcandre.lur...@gmail.com wrote: +span class=sinceSince 1.2.14/span I guess this will have to wait 1.2.15 -- Marc-André Lureau -- libvir-list mailing list libvir-list@redhat.com