mimeType is initialized to NULL, and then only set in one place, just
before a check (not involving mimeType) that then VIR_FREEs mimeType
if it fails. If we just reorder the code to do the check prior to
setting mimeType, then there won't be any need to VIR_FREE(mimeType)
on failure (because it
switching to g_autofree left many cleanup: sections empty.
Signed-off-by: Laine Stump
---
src/esx/esx_driver.c | 22 ++-
src/esx/esx_storage_backend_vmfs.c | 22 +--
src/esx/esx_util.c | 8 ++
src/esx/esx_vi.c | 45
These are all cases when 1) the pointer is passed by reference from
the caller (ie.e. **) and expects it to be NULL on return if there is
an error, or 2) the variable holding the pointer is being checked or
re-used in the same function, but not right away.
Signed-off-by: Laine Stump
---
All of these strings are allocated once, freed once, and are never
returned out of the function where they are created, used, and are
freed.
Signed-off-by: Laine Stump
---
src/esx/esx_driver.c | 128 +
src/esx/esx_storage_backend_vmfs.c | 102
Although the three functions esxFreePrivate(), esxFreeStreamPrivate(),
and esxUtil_FreeParsedUri() are calling VIR_FREE on *object, and so in
theory the caller of the function might rely on "object" (the free
function's arg) being set to NULL, in practice these functions are
only called from a
Or when it will be immediately have a new value assigned to it.
Signed-off-by: Laine Stump
---
src/esx/esx_driver.c| 4 ++--
src/esx/esx_network_driver.c| 2 +-
src/esx/esx_storage_backend_iscsi.c | 4 ++--
src/esx/esx_storage_backend_vmfs.c | 4 ++--
src/esx/esx_util.c
If we put the potential return string into the g_autofreed tmpResult,
and the move it to the returned "result" only as a final step ater, we
can avoid the need to explicitly VIR_FREE (or g_free) on failure.
Signed-off-by: Laine Stump
---
src/esx/esx_driver.c | 12
1 file changed, 4
These strings were being VIR_FREEd multiple times because they were
defined at the top of a function, but then set each time through a
loop. But they are only used inside that loop, so they can be
converted to use g_autofree if their definition is also placed inside
that loop.
Signed-off-by:
142 more down, 3084 to go :-)
This goes through all the standard methods of eliminating VIR_FREE -
first converting as many pointers as possible to g_autofree, then
converting a few more *Free* functions (that were more questionable
than previous Frees) to use g_free, then some trivial
volumeName was defined at the top of the function, then a new string
was assigned to it each time through a loop, but after the first
iteration of the loop, the previous string wasn't freed before
allocating a new string the next time. By reducing the scope of
volumeName to be just the loop, and
On 2/9/21 11:01 AM, Daniel P. Berrangé wrote:
> Signed-off-by: Daniel P. Berrangé
> ---
> src/conf/domain_conf.c | 17
> src/conf/domain_conf.h | 1 +
> src/libvirt_private.syms | 2 ++
> src/qemu/qemu_domain.h | 3 +++
> src/qemu/qemu_driver.c | 58
On 2/12/21 5:25 AM, Daniel P. Berrangé wrote:
On Fri, Feb 12, 2021 at 11:07:21AM +0100, Erik Skultety wrote:
On Fri, Feb 12, 2021 at 10:43:56AM +0100, Martin Kletzander wrote:
On Fri, Feb 12, 2021 at 12:54:02AM -0500, Laine Stump wrote:
I've looked at a few of these, and one thing I've found
The function takes ownership of @value on success so the proper
semantics will be to clear out the @value pointer. Convert @value to a
double pointer to do this.
Signed-off-by: Peter Krempa
---
src/util/virjson.c | 13 +++--
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git
virJSONValueNew* won't return error nowadays so NULL checks are not
necessary. The memory can be cleared via g_autoptr.
Signed-off-by: Peter Krempa
---
src/util/virjson.c | 68 --
1 file changed, 24 insertions(+), 44 deletions(-)
diff --git
Use automatic memory freeing and don't check return value of
virJSONValueNewString as it can't fail.
Signed-off-by: Peter Krempa
---
src/util/virmacmap.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/util/virmacmap.c b/src/util/virmacmap.c
index
Use g_autofree for the pointer of the added object and remove the NULL
checks for values returned by virJSONValueNew* (except
virJSONValueNewNumberDouble) since they can't fail nowadays.
Signed-off-by: Peter Krempa
---
src/util/virjson.c | 88 ++
1
Signed-off-by: Peter Krempa
---
src/qemu/qemu_agent.c | 39 +--
1 file changed, 13 insertions(+), 26 deletions(-)
diff --git a/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c
index 9aec0fdb4b..9a74b802b8 100644
--- a/src/qemu/qemu_agent.c
+++
Signed-off-by: Peter Krempa
---
src/qemu/qemu_monitor_json.c | 25 +++--
1 file changed, 11 insertions(+), 14 deletions(-)
diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c
index 94365c775b..76401c4d3c 100644
--- a/src/qemu/qemu_monitor_json.c
+++
Signed-off-by: Peter Krempa
---
tests/testutilsqemuschema.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/testutilsqemuschema.c b/tests/testutilsqemuschema.c
index 101687e657..4bb303a427 100644
--- a/tests/testutilsqemuschema.c
+++ b/tests/testutilsqemuschema.c
@@
Avoid pointless copies of temporary strings when constructing number
JSON objects.
Signed-off-by: Peter Krempa
---
src/util/virjson.c | 36 +---
1 file changed, 17 insertions(+), 19 deletions(-)
diff --git a/src/util/virjson.c b/src/util/virjson.c
index
The function calls virJSONValueObjectAppend/virJSONValueArrayAppend, so
by taking a double pointer we can drop the pointer clearing from
callers.
Signed-off-by: Peter Krempa
---
src/util/virjson.c | 26 ++
1 file changed, 10 insertions(+), 16 deletions(-)
diff --git
Use g_autoptr for the JSON value objects and remove the cleanup label
and inline freeing of objects.
Signed-off-by: Peter Krempa
---
src/util/virjson.c | 22 +++---
1 file changed, 7 insertions(+), 15 deletions(-)
diff --git a/src/util/virjson.c b/src/util/virjson.c
index
The parent array takes ownership of the inserted value once all checks
pass. Don't make the callers second-guess when that happens and modify
the function to take a double pointer so that it can be cleared once the
ownership is taken.
Signed-off-by: Peter Krempa
---
src/locking/lock_daemon.c
Signed-off-by: Peter Krempa
---
src/util/virjson.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/util/virjson.c b/src/util/virjson.c
index e4d71d3e09..7b52525797 100644
--- a/src/util/virjson.c
+++ b/src/util/virjson.c
@@ -305,7 +305,7 @@
Signed-off-by: Peter Krempa
---
src/qemu/qemu_agent.c | 18 ++
1 file changed, 6 insertions(+), 12 deletions(-)
diff --git a/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c
index 4712aeb529..d6816ef9de 100644
--- a/src/qemu/qemu_agent.c
+++ b/src/qemu/qemu_agent.c
@@ -1175,23
We know the exact number of keys or array members for the copied objects
so we can pre-allocate the arrays rather than inserting into them in a
loop incurring realloc copy penalty.
Also virJSONValueCopy now can't fail since all of the functions
allocating the different cases use just
The parent object takes ownership of the inserted value once all checks
pass. Don't make the callers second-guess when that happens and modify
the function to take a double pointer so that it can be cleared once the
ownership is taken.
Signed-off-by: Peter Krempa
---
src/locking/lock_daemon.c
Switch to using the 'g_auto*' helpers.
Signed-off-by: Peter Krempa
---
src/util/virlockspace.c | 51 +
1 file changed, 21 insertions(+), 30 deletions(-)
diff --git a/src/util/virlockspace.c b/src/util/virlockspace.c
index 7df319004e..1b6b51b649 100644
Switch to using the 'g_auto*' helpers.
Signed-off-by: Peter Krempa
---
src/qemu/qemu_agent.c | 29 -
1 file changed, 12 insertions(+), 17 deletions(-)
diff --git a/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c
index 51cc00c618..4712aeb529 100644
---
The functions report errors already and the error can nowadays only
happen on programmer errors (if the passed virJSONValue isn't an
object), which won't happen. Remove the reporting.
Signed-off-by: Peter Krempa
---
src/rpc/virnetserver.c | 42 ++
1 file
Switch to using the 'g_auto*' helpers.
Signed-off-by: Peter Krempa
---
src/rpc/virnetserver.c | 41 -
1 file changed, 16 insertions(+), 25 deletions(-)
diff --git a/src/rpc/virnetserver.c b/src/rpc/virnetserver.c
index ab8dafb1bb..ee402e8ea0 100644
---
Switch to using the 'g_auto*' helpers.
Signed-off-by: Peter Krempa
---
src/rpc/virnetserverclient.c | 26 +++---
1 file changed, 11 insertions(+), 15 deletions(-)
diff --git a/src/rpc/virnetserverclient.c b/src/rpc/virnetserverclient.c
index 4d01e87e21..0789ad9154 100644
Switch to using the 'g_auto*' helpers.
Signed-off-by: Peter Krempa
---
src/rpc/virnetserverservice.c | 36 ++-
1 file changed, 14 insertions(+), 22 deletions(-)
diff --git a/src/rpc/virnetserverservice.c b/src/rpc/virnetserverservice.c
index
Switch to using the 'g_auto*' helpers.
Signed-off-by: Peter Krempa
---
src/rpc/virnetdaemon.c | 27 +++
1 file changed, 11 insertions(+), 16 deletions(-)
diff --git a/src/rpc/virnetdaemon.c b/src/rpc/virnetdaemon.c
index 2c18da790b..6132615093 100644
---
Switch to using the 'g_auto*' helpers.
Signed-off-by: Peter Krempa
---
src/logging/log_handler.c | 42 ---
1 file changed, 17 insertions(+), 25 deletions(-)
diff --git a/src/logging/log_handler.c b/src/logging/log_handler.c
index a77c1e0250..cacf9584cd
Switch to using the 'g_auto*' helpers.
Signed-off-by: Peter Krempa
---
src/locking/lock_daemon.c | 81 +--
1 file changed, 35 insertions(+), 46 deletions(-)
diff --git a/src/locking/lock_daemon.c b/src/locking/lock_daemon.c
index 94fe374df6..5913c0cb9c
Peter Krempa (25):
virLockDaemonPreExecRestart: Refactor memory cleanup
virLogDaemonPreExecRestart: Refactor memory cleanup
virLogHandlerPreExecRestart: Refactor memory cleanup
virNetDaemonPreExecRestart: Refactor memory cleanup
virNetServerServicePreExecRestart: Refactor memory cleanup
Switch to using the 'g_auto*' helpers.
Signed-off-by: Peter Krempa
---
src/logging/log_daemon.c | 54 +---
1 file changed, 23 insertions(+), 31 deletions(-)
diff --git a/src/logging/log_daemon.c b/src/logging/log_daemon.c
index 770f6dd273..ceffa6a368 100644
On Fri, Feb 12, 2021 at 05:42:19PM +0100, Michal Privoznik wrote:
> The root directory can be provided by user (or a temporary one is
> generated) and is always formatted into connection URI for both
> secret driver and QEMU driver, like this:
>
> qemu:///embed?root=$root
>
> But if it so
The root directory can be provided by user (or a temporary one is
generated) and is always formatted into connection URI for both
secret driver and QEMU driver, like this:
qemu:///embed?root=$root
But if it so happens that there is an URI unfriendly character in
root directory or path to it
The .repo files for Fedora Rawhide are already pointing to the
Fedora 35 key, but all RPMs are still signed with the Fedora 34
key, resulting in
GPG key at file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-35-x86_64 (0x9867C58F)
is already installed
The GPG keys listed for the "Fedora - Rawhide -
The FreeBSD 12.1 image on Cirrus CI is currently broken, but
that's okay because a FreeBSD 12.2 image is also available and
we'd rather build on the more up-to-date target anyway.
Signed-off-by: Andrea Bolognani
---
.gitlab-ci.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff
Signed-off-by: Andrea Bolognani
---
ci/containers/ci-centos-7.Dockerfile | 3 ++-
ci/containers/ci-centos-8.Dockerfile | 3 ++-
ci/containers/ci-centos-stream.Dockerfile| 3 ++-
ci/containers/ci-debian-10-cross-aarch64.Dockerfile | 3
Various workarounds that are necessary due to breakages in external
services and distribution archives, plus fixes for a couple of issues
that were discovered in the process.
Changes from [v1]:
* the first three patches have been dropped from the series as
they've been pushed already;
*
On Fri, 2021-02-12 at 14:12 +, Daniel P. Berrangé wrote:
> On Fri, Feb 12, 2021 at 02:25:24PM +0100, Tim Wiederhake wrote:
> > "clang-tidy" is a static code analysis tool for c and c++ code. See
> > https://listman.redhat.com/archives/libvir-list/2021-January/msg01152.html
> > for some issues
On Fri, 2021-02-12 at 14:48 +0100, Ján Tomko wrote:
> On a Friday in 2021, Tim Wiederhake wrote:
> > "clang-tidy" is a static code analysis tool for c and c++ code. See
> > https://listman.redhat.com/archives/libvir-list/2021-January/msg01152.html
> > for some issues found by clang-tidy and more
On Fri, Feb 12, 2021 at 04:04:04PM +0100, Andrea Bolognani wrote:
> On Fri, 2021-02-12 at 15:19 +0100, Erik Skultety wrote:
> > @@ -239,6 +241,7 @@ ci-help:
> > @echo "CI_CLEAN=0 - do not delete '$(CI_SCRATCHDIR)' after
> > completion"
> > @echo "CI_REUSE=1 -
On Fri, 2021-02-12 at 15:19 +0100, Erik Skultety wrote:
> @@ -239,6 +241,7 @@ ci-help:
> @echo "CI_CLEAN=0 - do not delete '$(CI_SCRATCHDIR)' after
> completion"
> @echo "CI_REUSE=1 - re-use existing '$(CI_SCRATCHDIR)'
> content"
> @echo "
The purpose of this script was to prepare a customized environment in
the container, but was actually never used and it required the usage of
sudo to switch the environment from root's context to a regular user's
one.
The thing is that once someone needs a custom script they would very
likely to
More often than not I find myself debugging in the containers which
means that I need to have root inside, but without manually tweaking
the Makefile each time the execution would simply fail thanks to the
uid/gid mapping we do. What if we expose the CI_USER_LOGIN variable, so
that when needed,
The prepare.sh script isn't currently used and forces us to make use
of sudo to switch the user inside the container from root to $USER
which created a problem on our Debian Slim-based containers which don't
have the 'sudo' package installed.
This patch removes the sudo invocation and instead runs
This is necessary for the follow up patch, because the default
entrypoint for a Dockerfile is exec.
Signed-off-by: Erik Skultety
Reviewed-by: Andrea Bolognani
---
ci/build.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ci/build.sh b/ci/build.sh
index 740b46a935..0f23df1fa3 100644
---
Our Debian containers don't have sudo pre-installed and the only reason we
actually needed it was to run a custom prepare script which as it turns out
does nothing really.
Since v1:
- applied quoting to the variables as asked during the review process
- simplified setting of CI_PODMAN_ARGS
-
On Fri, Feb 12, 2021 at 02:25:24PM +0100, Tim Wiederhake wrote:
> "clang-tidy" is a static code analysis tool for c and c++ code. See
> https://listman.redhat.com/archives/libvir-list/2021-January/msg01152.html
> for some issues found by clang-tidy and more background information.
>
> Meson has
On Fri, 2021-02-12 at 13:41 +0100, Erik Skultety wrote:
> On Fri, Feb 12, 2021 at 01:27:42PM +0100, Andrea Bolognani wrote:
> > On Wed, 2021-02-10 at 18:00 +0100, Erik Skultety wrote:
> > > # We also need the user's login and home directory to prepare the
> > > # environment the way some
On a Friday in 2021, Tim Wiederhake wrote:
"clang-tidy" is a static code analysis tool for c and c++ code. See
https://listman.redhat.com/archives/libvir-list/2021-January/msg01152.html
for some issues found by clang-tidy and more background information.
Meson has support for clang-tidy and
Preparation for next patch.
Signed-off-by: Tim Wiederhake
---
scripts/run-clang-tidy.py | 24
1 file changed, 20 insertions(+), 4 deletions(-)
diff --git a/scripts/run-clang-tidy.py b/scripts/run-clang-tidy.py
index 1d1038df0f..945a1f75d4 100755
---
With an empty cache, the first run of the clang-tidy scan in the CI will
fail. While the instinctive reaction "press the rerun button" will eventually
lead to the situation where enough files are cached that the entire scan fits
within the time window, this creates friction for e.g. new
A better solution would be to have an explicit target that creates all
generated files, similar to libvirt-pot-dep.
Signed-off-by: Tim Wiederhake
---
.gitlab-ci.yml | 88 ++
1 file changed, 88 insertions(+)
diff --git a/.gitlab-ci.yml
Randomizing the order of files to scan has no impact for local use of the
script. The same holds true for use in the CI, if the amount of cached
files is big enough for the entire scan to finish before timeout.
If the cache is empty or not filled enough to ensure timely completion,
randomizing
clang-tidy's focus is on c++. Disable all checks that do not apply to the
libVirt code base. Also disable all checks that are currently failing, to
prevent introduction of new issues, while we work down the list of existing
issues and / or decide on disabling some checks permanently.
GitLab's CI output is capped at a certain size. Filter out all status
messages that do not add value.
Signed-off-by: Tim Wiederhake
---
scripts/run-clang-tidy.py | 25 +++--
1 file changed, 23 insertions(+), 2 deletions(-)
diff --git a/scripts/run-clang-tidy.py
Defining a custom timeout allows the scan to finish (albeit unsuccessfully)
before GitLab's 60 minute limit and thus preserve the cache of already
scanned files.
A successive run, e.g. when the "rerun" button in GitLab's web interface is
clicked, roughly picks up where the previous run stopped,
Similar to the "official" run-clang-tidy script. Defaults to run one thread
per core, making the tool more pleasant to use locally.
Signed-off-by: Tim Wiederhake
---
scripts/run-clang-tidy.py | 38 +-
1 file changed, 29 insertions(+), 9 deletions(-)
diff
Run clang-tidy with default configuration on all files listed in the
compilation database. Note that the generated files in the build directory
have to be built first. The simplest way to achieve this is to build libVirt
first.
Example:
$ meson build && ninja -C build
$
"clang-tidy" is a static code analysis tool for c and c++ code. See
https://listman.redhat.com/archives/libvir-list/2021-January/msg01152.html
for some issues found by clang-tidy and more background information.
Meson has support for clang-tidy and generates target named "clang-tidy" if
it finds
Cache the results of clang-tidy. The cache is keyed, for each file, on:
* the file name,
* the exact command used to compile the file to detect changes in arguments,
* the hash of the preprocessor stage output to detect changes in includes.
A later patch also adds the list of enabled checks to
On Fri, Feb 12, 2021 at 01:27:42PM +0100, Andrea Bolognani wrote:
> On Wed, 2021-02-10 at 18:00 +0100, Erik Skultety wrote:
> > # We need the container process to run with current host IDs
> > # so that it can access the passed in build directory
> > -CI_UID = $(shell id -u)
> > -CI_GID =
On Fri, Feb 12, 2021 at 12:14:27PM +0100, Michal Privoznik wrote:
> On 2/12/21 11:07 AM, Erik Skultety wrote:
> > On Fri, Feb 12, 2021 at 10:43:56AM +0100, Martin Kletzander wrote:
> > > On Fri, Feb 12, 2021 at 12:54:02AM -0500, Laine Stump wrote:
> > > > I've looked at a few of these, and one
On Wed, 2021-02-10 at 18:00 +0100, Erik Skultety wrote:
> The purpose of this script was to prepare a customized environment in
> the container, but was actually never used and it required the usage of
> sudo to switch the environment from root's context to a regular user's
> one.
> The thing is
On Wed, 2021-02-10 at 18:00 +0100, Erik Skultety wrote:
> # We need the container process to run with current host IDs
> # so that it can access the passed in build directory
> -CI_UID = $(shell id -u)
> -CI_GID = $(shell id -g)
> +CI_UID = $(shell id -u $(CI_USER_LOGIN))
> +CI_GID = $(shell id
On Fri, Feb 12, 2021 at 12:13:58 +, Daniel P. Berrangé wrote:
> On Fri, Feb 12, 2021 at 11:55:36AM +0100, Peter Krempa wrote:
> > On Fri, Feb 12, 2021 at 10:49:02 +, Daniel Berrange wrote:
> > > On Thu, Feb 11, 2021 at 04:37:47PM +0100, Peter Krempa wrote:
> > > > Format the new volumes
On Fri, Feb 12, 2021 at 11:55:36AM +0100, Peter Krempa wrote:
> On Fri, Feb 12, 2021 at 10:49:02 +, Daniel Berrange wrote:
> > On Thu, Feb 11, 2021 at 04:37:47PM +0100, Peter Krempa wrote:
> > > Format the new volumes with 'compat=1.1' since the minimum supported
> > > qemu version is now 1.5
On Wed, 2021-02-10 at 18:00 +0100, Erik Skultety wrote:
> The prepare.sh script isn't currently used and forces us to make use
> of sudo to switch the user inside the container from root to $USER
> which created a problem on our Debian Slim-based containers which don't
> have the 'sudo' package
On Wed, 2021-02-10 at 18:00 +0100, Erik Skultety wrote:
> This is necessary for the follow up patch, because the default
> entrypoint for a Dockerfile is exec.
>
> Signed-off-by: Erik Skultety
> ---
> ci/build.sh | 2 ++
> 1 file changed, 2 insertions(+)
Reviewed-by: Andrea Bolognani
--
On 2/12/21 11:07 AM, Erik Skultety wrote:
On Fri, Feb 12, 2021 at 10:43:56AM +0100, Martin Kletzander wrote:
On Fri, Feb 12, 2021 at 12:54:02AM -0500, Laine Stump wrote:
I've looked at a few of these, and one thing I've found is that very
often we have a function called
On Fri, Feb 12, 2021 at 10:49:02 +, Daniel Berrange wrote:
> On Thu, Feb 11, 2021 at 04:37:47PM +0100, Peter Krempa wrote:
> > Format the new volumes with 'compat=1.1' since the minimum supported
> > qemu version is now 1.5 rather the pre-historic compat=0.10.
>
> I understand the desire to
On Thu, Feb 11, 2021 at 04:37:47PM +0100, Peter Krempa wrote:
> Format the new volumes with 'compat=1.1' since the minimum supported
> qemu version is now 1.5 rather the pre-historic compat=0.10.
I understand the desire to do this, but this is none the less a
semantic change to the behaviour of
On Thu, Feb 11, 2021 at 16:37:47 +0100, Peter Krempa wrote:
> Format the new volumes with 'compat=1.1' since the minimum supported
> qemu version is now 1.5 rather the pre-historic compat=0.10.
>
> Signed-off-by: Peter Krempa
> ---
> src/storage/storage_util.c
On Thu, Feb 11, 2021 at 16:37:46 +0100, Peter Krempa wrote:
> Use scripts/test-wrap-argv.py to rewrap the output files so that any
> further changes don't introduce churn since we are rewrapping the output
> automatically now.
>
> Signed-off-by: Peter Krempa
> ---
>
On Thu, Feb 11, 2021 at 16:37:45 +0100, Peter Krempa wrote:
> The suffix is used for output files of 'storagevolxml2argvtest.
>
> Signed-off-by: Peter Krempa
> ---
> tests/testutils.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tests/testutils.c b/tests/testutils.c
> index
On Fri, Feb 12, 2021 at 11:07:21AM +0100, Erik Skultety wrote:
> On Fri, Feb 12, 2021 at 10:43:56AM +0100, Martin Kletzander wrote:
> > On Fri, Feb 12, 2021 at 12:54:02AM -0500, Laine Stump wrote:
> > > I've looked at a few of these, and one thing I've found is that very
> > > often we have a
On Thu, Feb 11, 2021 at 16:37:44 +0100, Peter Krempa wrote:
> Use g_autofree for 'dom_xml' to free it on some of the (unlikely) code
> paths jumping to cleanup prior to the deallocation which is done right
> after it's not needed any more since it's a big string.
>
> Noticed when running under
On Thu, Feb 11, 2021 at 16:37:43 +0100, Peter Krempa wrote:
> It's already initialized to '1'.
>
> Signed-off-by: Peter Krempa
> ---
> src/libvirt-domain.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c
> index dba89a7d3a..e9688a15b4
On Thu, Feb 11, 2021 at 16:37:42 +0100, Peter Krempa wrote:
> Such images don't support stuff like dirty bitmaps. Note that the
> synthetic test for detecting bitmaps is used as an example to prevent
> adding additional test cases.
>
> Signed-off-by: Peter Krempa
> ---
> src/qemu/qemu_monitor.h
On Fri, Feb 12, 2021 at 09:30:25 +0100, Peter Krempa wrote:
> On Fri, Feb 12, 2021 at 08:57:08 +0100, Jiri Denemark wrote:
> > On Thu, Feb 11, 2021 at 16:37:41 +0100, Peter Krempa wrote:
> > > The capability represents qemu's ability to setup mappings for migrating
> > > block dirty bitmaps and is
On Thu, Feb 11, 2021 at 16:37:40 +0100, Peter Krempa wrote:
> Include the 'transform' member of 'block-bitmap-mapping'.
>
> Note that this is based on uncommited patches and will be updated once
> they are merged.
> ---
> .../caps_6.0.0.x86_64.replies | 510 ++
>
On Fri, Feb 12, 2021 at 10:43:56AM +0100, Martin Kletzander wrote:
> On Fri, Feb 12, 2021 at 12:54:02AM -0500, Laine Stump wrote:
> > I've looked at a few of these, and one thing I've found is that very
> > often we have a function called somethingSomethingClear(), and:
> >
> > 1) The only places
On Fri, Feb 12, 2021 at 12:54:02AM -0500, Laine Stump wrote:
I've looked at a few of these, and one thing I've found is that very
often we have a function called somethingSomethingClear(), and:
1) The only places it is ever called will immediately free the memory
of the object as soon as they
On 2/12/21 6:54 AM, Laine Stump wrote:
I've looked at a few of these, and one thing I've found is that very
often we have a function called somethingSomethingClear(), and:
1) The only places it is ever called will immediately free the memory
of the object as soon as they clear it.
and very
On 2/12/21 6:28 AM, Laine Stump wrote:
Only 90 this time. These are all functions that behave similar to the
*Free() functions, but their names don't end in "Free" so I missed
them last time.
Laine Stump (8):
esx: replace VIR_FREE with g_free in any ESX_VI__TEMPLATE__FREE
conf: convert
On Fri, Feb 12, 2021 at 08:57:08 +0100, Jiri Denemark wrote:
> On Thu, Feb 11, 2021 at 16:37:41 +0100, Peter Krempa wrote:
> > The capability represents qemu's ability to setup mappings for migrating
> > block dirty bitmaps and is based on presence of the 'transform' property
> > of the
92 matches
Mail list logo