[libvirt] [PATCH v5] openvswitch: Add new port VLAN mode "802.1ad"

2019-02-24 Thread ZhiPeng LU
This patch adds functionality to allow libvirt to configure the '802.1ad' modes(802.1ad double-tagged) on openvswitch networks. For example: Signed-off-by: ZhiPeng Lu --- v1->v2: 1. Fix "make syntax-check" failur

[libvirt] [PATCHv4 RESEND] vhost-user: add support reconnect for vhost-user ports

2018-01-17 Thread ZhiPeng Lu
For vhost-user ports, Open vSwitch acts as the server and QEMU the client. When OVS crashes or restarts, the QEMU process should be reconnected to OVS. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> Signed-off-by: Michal Privoznik <mpriv...@redhat.com> --- v1->v2: - modify xm

[libvirt] [PATCH] virsh: domifstat: clarify description of --help option

2017-11-17 Thread ZhiPeng Lu
can be the interface target by name or MAC address. So clarify description of --help option Signed-off-by:ZhiPeng Lu --- tools/virsh-domain-monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/virsh-domain-monitor.c

[libvirt] [PATCH v4] vhost-user: add support reconnect for vhost-user ports

2017-11-12 Thread ZhiPeng Lu
For vhost-user ports, Open vSwitch acts as the server and QEMU the client. When OVS crashes or restarts, the QEMU process should be reconnected to OVS. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> Signed-off-by: Michal Privoznik <mpriv...@redhat.com> --- v1->v2: - modify xml

[libvirt] [PATCH] Add output of local time when adding the option of "--pretty" for virsh domtime

2017-10-22 Thread ZhiPeng Lu
Add more human-friendly output of domain's system time. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> Reviewed-by: Jiyun Fan <fan.ji...@zte.com.cn> --- tools/virsh-domain-monitor.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tools/virsh-domain

[libvirt] [PATCH v3 RESEND] vhost-user: add support reconnect for vhost-user ports

2017-10-08 Thread ZhiPeng Lu
For vhost-user ports, Open vSwitch acts as the server and QEMU the client. When OVS crashes or restarts, the QEMU process should be reconnected to OVS. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- docs/schemas/domaincommon.rng | 26 -- sr

[libvirt] [PATCH v3 RESEND] vhost-user: add support reconnect for vhost-user ports

2017-09-29 Thread ZhiPeng Lu
For vhost-user ports, Open vSwitch acts as the server and QEMU the client. When OVS crashes or restarts, the QEMU process should be reconnected to OVS. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- docs/schemas/domaincommon.rng | 26 -- sr

[libvirt] [PATCH] nwfilter: Don't leak @val

2017-09-26 Thread ZhiPeng Lu
In virNWFilterIPAddrMapAddIPAddr the @val may be leaked. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- src/conf/nwfilter_ipaddrmap.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/conf/nwfilter_ipaddrmap.c b/src/conf/nwfilter_ipaddrmap.c index 4

[libvirt] [PATCH v3] nwfilter: Don't leak @inetaddr

2017-09-26 Thread ZhiPeng Lu
In learnIPAddressThread()the @inetaddr may be leaked. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- src/nwfilter/nwfilter_learnipaddr.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/nwfilter/nwfilter_learnipaddr.c b/src/nwfilter/nwfilter_learnip

[libvirt] [PATCH v2] nwfilter: Don't leak @inetaddr

2017-09-26 Thread ZhiPeng Lu
In learnIPAddressThread()the @inetaddr may be leaked. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- src/nwfilter/nwfilter_learnipaddr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nwfilter/nwfilter_learnipaddr.c b/src/nwfilter/nwfilter_learnipaddr.c

[libvirt] [PATCH] nwfilter: Don't leak @inetaddr

2017-09-26 Thread ZhiPeng Lu
In learnIPAddressThread()the @inetaddr may be leaked. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- src/nwfilter/nwfilter_learnipaddr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nwfilter/nwfilter_learnipaddr.c b/src/nwfilter/nwfilter_learnipaddr.c

[libvirt] [PATCH v3] vhost-user: add support reconnect for vhost-user ports

2017-09-26 Thread ZhiPeng Lu
For vhost-user ports, Open vSwitch acts as the server and QEMU the client. When OVS crashes or restarts, the QEMU process should be reconnected to OVS. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- docs/schemas/domaincommon.rng | 26 -- sr

[libvirt] [PATCH] vhost-user: add support reconnect for vhost-user ports

2017-09-21 Thread ZhiPeng Lu
For vhost-user ports, Open vSwitch acts as the server and QEMU the client. When OVS crashed or restart, QEMU shoule be reconnect to OVS. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- v1->v2: - modify xml format --- --- docs/schemas/domaincommon.rng

[libvirt] [PATCH v2] qemu: handle reconnect on chardev hotplug

2017-09-12 Thread ZhiPeng Lu
The patch passes the reconnect timeout to QEMU by monitor on chardev hotplug. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- v1->v2: - Fix syntax errors about Curly brackets --- src/qemu/qemu_monitor_json.c | 17 + 1 file changed, 17 insertions(+) diff --git a

[libvirt] [PATCH] qemu: handle reconnect on chardev hotplug

2017-09-11 Thread ZhiPeng Lu
The patch passes the reconnect timeout to QEMU by monitor on chardev hotplug. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- src/qemu/qemu_monitor_json.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_

[libvirt] [PATCH] vhost-user: add support reconnect for vhost-user ports

2017-09-08 Thread ZhiPeng Lu
For vhost-user ports, Open vSwitch acts as the server and QEMU the client. When OVS crashed or restart, QEMU shoule be reconnect to OVS. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- docs/formatdomain.html.in | 6 +++-- docs/schemas/domaincomm

[libvirt] [PATCH] mpath: Fix memory leak in virStorageBackendCreateVols

2017-07-18 Thread ZhiPeng Lu
@map_device, allocated by virAsprintf in virStorageBackendCreateVols, was not freed and leaked. Signed-off-by: Zhipeng Lu <lu.zhip...@zte.com.cn> --- src/storage/storage_backend_mpath.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/storage/storage_backend_mpath.c b/src/s

[libvirt] [PATCH RESEND] phyp: Fix memory leak in phypUUIDTable_Push

2017-07-18 Thread ZhiPeng Lu
@remote_file, allocated by virAsprintf, was not freed and leaked. Signed-off-by: Zhipeng Lu <lu.zhip...@zte.com.cn> --- src/phyp/phyp_driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/phyp/phyp_driver.c b/src/phyp/phyp_driver.c index 9121581..662e2f7 100644 --- a/sr

[libvirt] [PATCH] phyp: Fix memory leak in phypUUIDTable_Push

2017-07-17 Thread ZhiPeng Lu
@remote_file, allocated by virAsprintf, was not freed and leaked. Signed-off-by: Zhipeng Lu <lu.zhip...@zte.com.cn> --- src/phyp/phyp_driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/phyp/phyp_driver.c b/src/phyp/phyp_driver.c index 9121581..662e2f7 100644 --- a/sr

[libvirt] [PATCH RESEND] virpcimock: Fix memory leak in pci_driver_new

2017-07-14 Thread ZhiPeng Lu
@driverpath, allocated by virAsprintfQuiet, was not freed and leaked. Signed-off-by: Zhipeng Lu <lu.zhip...@zte.com.cn> --- tests/virpcimock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/virpcimock.c b/tests/virpcimock.c index e9408aa..dec9e01 100644 --- a/tests/virpcimock.c

[libvirt] [PATCH] virpcimock: Fix memory leak in pci_driver_new

2017-07-13 Thread ZhiPeng Lu
@driverpath, allocated by virAsprintfQuiet, was not freed and leaked. Signed-off-by: Zhipeng Lu <lu.zhip...@zte.com.cn> --- tests/virpcimock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/virpcimock.c b/tests/virpcimock.c index e9408aa..dec9e01 100644 --- a/tests/virpcimock.c

[libvirt] [PATCH v2] network: allow to specify buffer size for netlink socket

2017-07-11 Thread ZhiPeng Lu
This patchs allow to set the buffer size for netlink socket in the libvirtd configuration file. The default buffer size remain as before at 128k. Signed-off-by: Zhipeng Lu <lu.zhip...@zte.com.cn> --- daemon/libvirtd-config.c| 6 ++ daemon/libvirtd-config.h| 2 ++

[libvirt] [PATCH] util: increase libnl buffer size to 1M

2017-06-29 Thread ZhiPeng Lu
Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- src/util/virnetlink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/virnetlink.c b/src/util/virnetlink.c index 92ecf77..bb56c54 100644 --- a/src/util/virnetlink.c +++ b/src/util/virnetlink.c @@

[libvirt] [v2 RESEND PATCH] qemu: reduce packet loss rate for vm with macvtap passthrough mode in migration

2017-06-13 Thread ZhiPeng Lu
of migration source and destination have the same MAC address. The patch later calling qemuMigrationVPAssociatePortProfiles sets mac address of VF in migration finish step instead of start step. The patch aims to reduce packet loss rate. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- sr

[libvirt] [PATCH v2] qemu: reduce packet loss rate for vm with macvtap passthrough mode in migration

2017-05-11 Thread ZhiPeng Lu
of migration source and destination have the same MAC address. The patch later calling qemuMigrationVPAssociatePortProfiles sets mac address of VF in migration finish step instead of start step. The patch aims to reduce packet loss rate. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- sr

[libvirt] [PATCH] qemu: reduce packet loss rate for vm with macvtap passthrough mode in migration

2017-05-11 Thread ZhiPeng Lu
of migration source and destination have the same MAC address. The patch later calling qemuMigrationVPAssociatePortProfiles sets mac address of VF in migration finish step instead of start step. The patch aims to reduce packet loss rate. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- sr

[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] [PATCH v2] qemu: clean up network interfaces before qemuProcessKill is called in qemuProcessStop

2017-05-08 Thread ZhiPeng Lu
at it happens before qemuProcessKill is called. Signed-off-by: Zhipeng Lu <lu.zhip...@zte.com.cn> Signed-off-by: Laine Stump <la...@laine.org> --- src/qemu/qemu_process.c | 99 - 1 file changed, 49 insertions(+), 50 deletions(-) diff --git a/sr

[libvirt] [PATCH] qemu: change the name of tap device for a tap and bridge network

2017-04-28 Thread ZhiPeng Lu
mid to vm's nic name. For example, the vm's domid is 1 and vnet0 is renamed to vnet1.0. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- src/qemu/qemu_interface.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/qemu/qemu_interface.c b/src/qemu/qemu_interfac

[libvirt] [PATCH] virsh-domain: update attach-interface to support bridge type

2017-04-25 Thread ZhiPeng Lu
Adding this feature will allow users to attach a network to linux bridge or openvswitch. The interface can be attached using --brtype=linux or --brtype=openvswitch. If --brtype is not set, the network is attached to linux bridge. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- tools

[libvirt] [PATCH] qemu: fix argument of virDomainNetGetActualDirectMode

2017-04-25 Thread ZhiPeng Lu
it should be a comparison of modes between new and old devices. So the argument of the second virDomainNetGetActualDirectMode should be newdev. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- src/qemu/qemu_hotplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git