[libvirt] [PATCH] nodedev_udev: Fix missing events when kernel report lots of udev events within a short time

2017-05-08 Thread ZhiPeng Lu
From: "ning.bo" When create Virtual Function for Inter XL710 use below commands: for i in `seq 0 1`; do echo 63 > /sys/devices/pci:00/:00:03.2/:07:00.$i/sriov_numvfs done for i in `seq 0 3`; do echo 31 >

[libvirt] 答复: Re: [PATCH] qemu: change the name of tap device for a tapand bridge network

2017-05-08 Thread lu.zhipeng
On Mon, May 08, 2017 at 03:03:30PM +0800, ZhiPeng Lu wrote:>> In qemuProcessStop we explicitly remove the port from the openvswitch bridge after>> qemuProcessKill is called. But there is a certain interval of time between>> deleting tap device and removing it from bridge. The problem occurs

[libvirt] [libvirt-php PATCH 2/2] implement additional network functions.

2017-05-08 Thread Dawid Zamirski
* add libvirt_network_get_uuid_string * add libvirt_network_get_uuid * add libvirt_network_get_name Those are useful when working with network resources returned from libvirt_list_all_networks. --- src/libvirt-php.c | 87 +++ src/libvirt-php.h

[libvirt] [libvirt-php PATCH 0/2] implement a few network API bindings

2017-05-08 Thread Dawid Zamirski
Hello, The followinig two patches add a few useful API bindings for dealing with libvirt networks: * virConnectListAllNetworks - allows for better control when filtering and returns array of handles to virNetworkPtr which can then be used to get other info for each network such as name,

[libvirt] [libvirt-php PATCH 1/2] implement binding for virConnectListAllNetworks.

2017-05-08 Thread Dawid Zamirski
Some hypervisors (like Hyper-V) allow duplicate network names which makes existing libvirt_list_networks not very useful as it returns just names. Since virConnectListAllNetworks returns array of handles to virNetworkPtr, one can use e.g. virNetworkGetUUIDString to resolve such ambiguity issues.

Re: [libvirt] [PATCH 2/3] Add support for CPU cache specification

2017-05-08 Thread Daniel P. Berrange
On Tue, Apr 25, 2017 at 08:48:44PM +0200, Jiri Denemark wrote: > This patch introduces > > > > > > sub element of /domain/cpu. Currently only a single element is > allowed. > > Signed-off-by: Jiri Denemark > --- > docs/formatdomain.html.in

[libvirt] [PATCH] Add support for VNC autoport feature for bhyve hypervisor.

2017-05-08 Thread Alexander Nusov
This patch adds support for automatic VNC port assignment for bhyve guests. --- src/bhyve/bhyve_command.c | 9 + src/bhyve/bhyve_driver.c | 5 + src/bhyve/bhyve_utils.h | 3 +++ 3 files changed, 17 insertions(+) diff --git a/src/bhyve/bhyve_command.c b/src/bhyve/bhyve_command.c

[libvirt] [PATCH] Add "io" option to virsh attach-disk sub-command.

2017-05-08 Thread Gordon Messmer
--- tools/virsh-domain.c | 14 +++--- tools/virsh.pod | 2 ++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 0d19d0e..d2a2a05 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -267,6 +267,10 @@ static

Re: [libvirt] [PATCH] configure: enforce presence of python for build

2017-05-08 Thread Roman Bogorodskiy
Daniel P. Berrange wrote: > The API docs extractor, ESX code generator and keycodemapdb tools > rely on python. Historically every platform that this present, but > with switch to Python3 by default, we're increasingly seeing > installs without a /usr/bin/python. > > This tightens up the check

[libvirt] [PATCH] configure: enforce presence of python for build

2017-05-08 Thread Daniel P. Berrange
The API docs extractor, ESX code generator and keycodemapdb tools rely on python. Historically every platform that this present, but with switch to Python3 by default, we're increasingly seeing installs without a /usr/bin/python. This tightens up the check during configure, so it exits

Re: [libvirt] 答复: Re: 答复: Re: [PATCH v2] qemu: clean up network interfaces beforeqemuProcessKill is called in qemuProcessStop

2017-05-08 Thread Daniel P. Berrange
On Mon, May 08, 2017 at 06:18:25PM +0800, lu.zhip...@zte.com.cn wrote: > I may not have described it clearly. > > i need to ensure the order of adding port to bridge and deleting from > bridge. > > i rename tap device to avoid the problem in my first patch.i think it can > solve the

[libvirt] 答复: Re: 答复: Re: [PATCH v2] qemu: clean up network interfaces beforeqemuProcessKill is called in qemuProcessStop

2017-05-08 Thread lu.zhipeng
I may not have described it clearly. i need to ensure the order of adding port to bridge and deleting from bridge. i rename tap device to avoid the problem in my first patch.i think it can solve the problem. my second patch may can't resolve the problem . Do you have any better ideas?

[libvirt] [PATCH] Don't use ceph-devel on Fedora

2017-05-08 Thread Daniel P. Berrange
A previous commit changed the spec to use librbd1-devel on RHEL-7, since this replaces ceph-devel from RHEL-6: commit 6cfc8834c858849cc74c3082078dc91fb1cbae38 Author: Peter Krempa Date: Thu Mar 5 11:40:54 2015 +0100 spec: Enable RBD storage driver in RHEL-7

Re: [libvirt] 答复: Re: [PATCH v2] qemu: clean up network interfaces beforeqemuProcessKill is called in qemuProcessStop

2017-05-08 Thread Daniel P. Berrange
On Mon, May 08, 2017 at 05:18:17PM +0800, lu.zhip...@zte.com.cn wrote: > >This fix won't work correctly either. You cannot assume that libvirt has > >control over when the QEMU process exits. It may exit itself *before* > >libvirt runs any of its cleanup code. > > I don't think there's a problem.

[libvirt] 答复: Re: [PATCH v2] qemu: clean up network interfaces beforeqemuProcessKill is called in qemuProcessStop

2017-05-08 Thread lu.zhipeng
>This fix won't work correctly either. You cannot assume that libvirt has>control over when the QEMU process exits. It may exit itself *before*>libvirt runs any of its cleanup code. I don't think there's a problem. Although libvirt does not runs cleanup code .but tap devices don't exist when

[libvirt] [PATCH] Detect VMDK version 3 files

2017-05-08 Thread Daniel P. Berrange
The metadata libvirt cares about is identical for version 3 as for previous versions, so we merely need list the new version number. Signed-off-by: Daniel P. Berrange --- src/util/virstoragefile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [libvirt] [PATCH v2] qemu: clean up network interfaces before qemuProcessKill is called in qemuProcessStop

2017-05-08 Thread Daniel P. Berrange
On Mon, May 08, 2017 at 03:03:30PM +0800, ZhiPeng Lu wrote: > In qemuProcessStop we explicitly remove the port from the openvswitch bridge > after > qemuProcessKill is called. But there is a certain interval of time between > deleting tap device and removing it from bridge. The problem occurs

Re: [libvirt] RFE: virsh list improvement (--description and --details)

2017-05-08 Thread Przemysław Sztoch
Dear Michal and Pavel, We cover about 100 clients who have their own and simple CentOS KVM installations. Their technical skills are far from writing python scripts. They expect simple solutions. Talking to our helpdesk, I found that 70% of libvirt and virtualization problems are: A) lack

[libvirt] [PATCH v2] qemu: clean up network interfaces before qemuProcessKill is called in qemuProcessStop

2017-05-08 Thread ZhiPeng Lu
In qemuProcessStop we explicitly remove the port from the openvswitch bridge after qemuProcessKill is called. But there is a certain interval of time between deleting tap device and removing it from bridge. The problem occurs when two vms start and shutdown with the same name's network interface