Re: [PATCH RFC 1/2] qemu: use "-accel" option to specify accelerator instead of "-machine"

2021-01-10 Thread Paolo Bonzini
On 09/01/21 19:58, huang...@chinatelecom.cn wrote: diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 6f970a3..9a64473 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -6711,40 +6711,6 @@ qemuBuildMachineCommandLine(virCommandPtr cmd, virCommandAddArg(

[PATCHv3 0/4] netlink: Extract common code to simplify netlink functions

2021-01-10 Thread Shi Lei
V2 here: https://www.redhat.com/archives/libvir-list/2021-January/msg00174.html Since V2: - Fix the post process of virNetlinkTalk(). If virNetlinkTalk() succeeds and we got an NLMSG_ERROR packet with the zero-value error, it should be regarded as a success. - Several fixes f

[PATCHv3 4/4] netlink: Introduce a helper function to simplify netlink functions

2021-01-10 Thread Shi Lei
Extract common code as helper function virNetlinkTalk, then simplify the functions virNetlink[DumpLink|NewLink|DelLink|GetNeighbor]. Signed-off-by: Shi Lei --- src/util/virnetlink.c | 232 ++ src/util/virnetlink.h | 4 +- 2 files changed, 101 insertions(

[PATCHv3 3/4] netlink: Introduce macro NETLINK_MSG_APPEND to wrap nlmsg_append

2021-01-10 Thread Shi Lei
Introduce a macro NETLINK_MSG_APPEND to wrap nlmsg_append and simplify code. Remove those labels 'buffer_too_small', since they are now useless. Signed-off-by: Shi Lei --- src/util/virnetlink.c | 42 +- 1 file changed, 13 insertions(+), 29 deletions(-) di

[PATCHv3 1/4] netlink: Remove invalid flags(NLM_F_CREATE and NLM_F_EXCL) for RTM_DELLINK

2021-01-10 Thread Shi Lei
NLM_F_CREATE and NLM_F_EXCL are invalid for RTM_DELLINK, so remove them. Signed-off-by: Shi Lei --- src/util/virnetlink.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/util/virnetlink.c b/src/util/virnetlink.c index ca735bb8..17e6eeb9 100644 --- a/src/util/virnetlink.

[PATCHv3 2/4] netlink: Minor changes for macros NETLINK_MSG_[NEST_START|NEST_END|PUT]

2021-01-10 Thread Shi Lei
Move macros NETLINK_MSG_[NEST_START|NEST_END|PUT] from .h into .c; within these macros, replace 'goto' with reporting error and returning; simplify virNetlinkDumpLink and virNetlinkDelLink by using NETLINK_MSG_PUT. Signed-off-by: Shi Lei --- src/util/virnetlink.c | 44 +++

Re: Entering freeze for libvirt-7.0.0

2021-01-10 Thread Jiri Denemark
On Sat, Jan 09, 2021 at 07:45:50 +0100, Jiri Denemark wrote: > I have just tagged v$version-$rc in the repository and pushed signed v7.0.0-rc1 of course :-) > tarballs to https://libvirt.org/sources/. The source RPM is missing > because it is broken for some reason, I will investigate, fix it and