Re: [PATCH v2 RESEND] qemu: fix memory leak about virDomainEventTunableNew

2022-09-27 Thread luzhipeng
在 2022/9/27 16:11, Jiri Denemark 写道: On Mon, Sep 26, 2022 at 19:55:52 +0800, luzhipeng wrote: From: lu zhipeng For prevent memory leak and easier to use, So change virDomainEventTunableNew to get virTypedParameterPtr *params and set it = NULL. Signed-off-by: lu zhipeng --- src/conf

[PATCH v2 RESEND] qemu: fix memory leak about virDomainEventTunableNew

2022-09-26 Thread luzhipeng
From: lu zhipeng For prevent memory leak and easier to use, So change virDomainEventTunableNew to get virTypedParameterPtr *params and set it = NULL. Signed-off-by: lu zhipeng --- src/conf/domain_event.c| 14 +++--- src/conf/domain_event.h| 4 ++-- src/qemu/qemu_driver.c

[PATCH v2 RESEND] qemu: fix memory leak about virDomainEventTunableNew

2022-09-23 Thread luzhipeng
From: lu zhipeng For prevent memory leak and easier to use, So change virDomainEventTunableNew to get virTypedParameterPtr *params and set it = NULL. Signed-off-by: lu zhipeng --- v1: https://patchew.org/Libvirt/20220922130038.1616-1-luzhip...@cestc.cn/ src/conf/domain_event.c| 12

[PATCH v2] qemu: fix memory leak about virDomainEventTunableNew

2022-09-22 Thread luzhipeng
From: lu zhipeng For prevent memory leak and easier to use, So change virDomainEventTunableNew to get virTypedParameterPtr *params and set it = NULL. Signed-off-by: lu zhipeng --- v1: https://patchew.org/Libvirt/20220922130038.1616-1-luzhip...@cestc.cn/ src/conf/domain_event.c| 12

[PATCH] qemu: fix memory leak on some paths

2022-09-22 Thread luzhipeng
From: lu zhipeng virTypedParamsAddString may return -1 but alloc params, so free it. Signed-off-by: lu zhipeng --- src/qemu/qemu_driver.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 94b70872d4..c4501cd705

[PATCH RESEND] apibuild: Fix self.waring method call

2022-05-06 Thread luzhipeng
The parameters of self.warning is inconsistent with it's definition, So fix it. Signed-off-by: luzhipeng --- scripts/apibuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/apibuild.py b/scripts/apibuild.py index 2a343208c5..23a66734ac 100755 --- a/scripts

[PATCH] scripts: Fix the parameter of warning function

2022-03-14 Thread luzhipeng
The parameter of self.warning is inconsistent with it's definition, So fix it. Signed-off-by: luzhipeng --- scripts/apibuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/apibuild.py b/scripts/apibuild.py index bdd3077c48..99b16f47fa 100755 --- a/scripts

[PATCH] scripts: Fix the parameter of warning function

2022-03-14 Thread luzhipeng
--- scripts/apibuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/apibuild.py b/scripts/apibuild.py index bdd3077c48..99b16f47fa 100755 --- a/scripts/apibuild.py +++ b/scripts/apibuild.py @@ -317,7 +317,7 @@ class index: if type in type_map:

[PATCH 1/1] scripts: Fix the parameter of warning function

2022-03-14 Thread luzhipeng
--- scripts/apibuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/apibuild.py b/scripts/apibuild.py index bdd3077c48..99b16f47fa 100755 --- a/scripts/apibuild.py +++ b/scripts/apibuild.py @@ -317,7 +317,7 @@ class index: if type in type_map:

[PATCH 0/1]scripts: Fix the parameter of warning function

2022-03-14 Thread luzhipeng
luzhipeng (1): scripts: Fix the parameter of warning function scripts/apibuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.34.0.windows.1

[libvirt] [PATCH v4 RESEND] openvswitch: Add new port VLAN mode "dot1q-tunnel"(802.1ad double-tagged)

2018-12-11 Thread luzhipeng
From: ZhiPeng Lu This patch adds functionality to allow libvirt to configure the 'dot1q-tunnel' modes(802.1ad double-tagged) on openvswitch networks. For example: Signed-off-by: ZhiPeng Lu --- v1->v2:

[libvirt] [PATCH v4] openvswitch: Add new port VLAN mode "dot1q-tunnel"(802.1ad double-tagged)

2018-12-07 Thread luzhipeng
From: ZhiPeng Lu This patch adds functionality to allow libvirt to configure the 'dot1q-tunnel' modes(802.1ad double-tagged) on openvswitch networks. For example: Signed-off-by: ZhiPeng Lu --- v1->v2:

[libvirt] [PATCH v3 RESEND] openvswitch: Add new port VLAN mode "dot1q-tunnel"

2018-12-03 Thread luzhipeng
From: ZhiPeng Lu Signed-off-by: ZhiPeng Lu --- v1->v2: 1. Fix "make syntax-check" failure v2->v3: 1. remove other_config when updating vlan docs/formatnetwork.html.in | 17 + docs/schemas/networkcommon.rng | 1 + src/conf/netdev_vlan_conf.c | 2 +-

[libvirt] [PATCH v3] openvswitch: Add new port VLAN mode "dot1q-tunnel"

2018-12-02 Thread luzhipeng
From: ZhiPeng Lu Signed-off-by: ZhiPeng Lu --- v1->v2: 1. Fix "make syntax-check" failure v2->v3: 1. remove other_config when updating vlan docs/formatnetwork.html.in | 17 + docs/schemas/networkcommon.rng | 1 + src/conf/netdev_vlan_conf.c | 2 +-

[libvirt] [PATCH v2] openvswitch: Add new port VLAN mode "dot1q-tunnel"

2018-11-29 Thread luzhipeng
From: ZhiPeng Lu Signed-off-by: ZhiPeng Lu --- v1->v2: 1. Fix "make syntax-check" failure docs/formatnetwork.html.in | 17 + docs/schemas/networkcommon.rng | 1 + src/conf/netdev_vlan_conf.c | 2 +- src/util/virnetdevopenvswitch.c | 5 +

[libvirt] [PATCH] openvswitch: Add new port VLAN mode "dot1q-tunnel"

2018-11-28 Thread luzhipeng
From: ZhiPeng Lu Signed-off-by: ZhiPeng Lu --- docs/formatnetwork.html.in | 13 +++-- docs/schemas/networkcommon.rng | 1 + src/conf/netdev_vlan_conf.c | 2 +- src/util/virnetdevopenvswitch.c | 5 + src/util/virnetdevvlan.h| 1 + 5 files changed, 15

[libvirt] [PATCH] docs: remove redundant words and blank lines

2018-11-19 Thread luzhipeng
From: ZhiPeng Lu Signed-off-by: ZhiPeng Lu --- docs/formatdomain.html.in | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 8a23b78..de25ad3 100644 --- a/docs/formatdomain.html.in +++

[libvirt] [PATCH] [patch] docs: remove redundant words and blank lines

2018-11-19 Thread luzhipeng
From: ZhiPeng Lu Signed-off-by: ZhiPeng Lu --- docs/formatdomain.html.in | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 8a23b78..de25ad3 100644 --- a/docs/formatdomain.html.in +++

[libvirt] [PATCH] docs: remove redundant word

2018-11-19 Thread luzhipeng
From: ZhiPeng Lu Signed-off-by: ZhiPeng Lu --- docs/formatdomain.html.in | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 8a23b78..fa5fa19 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -2835,7 +2835,6 @@