Re: [libvirt PATCH 0/2] docs: less docs for insecure SASL mechanisms

2021-03-04 Thread Erik Skultety
On Thu, Mar 04, 2021 at 06:10:11PM +, Daniel P. Berrangé wrote: > GSSAPI and SCRAM-SHA-256 are the only two SASL mechanisms we > especially want people to be using. Even the latter is a little > questionable due to storing passwords in cleartext on the server. At what point of the SCRAM-SHA-25

Re: [PATCH v2 1/3] fdc: Drop deprecated floppy configuration

2021-03-04 Thread Markus Armbruster
Peter Krempa writes: > On Thu, Mar 04, 2021 at 17:23:05 +0100, Markus Armbruster wrote: >> Daniel P. Berrangé writes: >> >> > On Thu, Mar 04, 2021 at 03:26:55PM +0100, Markus Armbruster wrote: >> >> Daniel P. Berrangé writes: >> >> >> >> > On Thu, Mar 04, 2021 at 11:00:57AM +0100, Markus Armb

Re: [PATCH v6 0/5] migration/dirtyrate: Introduce APIs for getting domain memory dirty rate

2021-03-04 Thread Hao Wang
Great thanks for your reviewing! I will update 5/5 and possibly 4/5 according to expected more suggestion in the next version. BR, Hao On 2021/3/3 19:31, Michal Privoznik wrote: > On 2/26/21 9:35 AM, Hao Wang wrote: >> >> Hao Wang (5): >>    migration/dirtyrate: Introduce virDomainStartDirtyRate

[PATCH] vm : forbid to start a removing vm

2021-03-04 Thread Hogan Wang
From: Zhuang Shengen When a vm is doing migration phase confirm, and then start it concurrently, it will lead to the vm out of libvirtd control. Cause Analysis: 1. thread1 migrate vm out. 2. thread2 start the migrating vm. 3. thread1 remove vm from domain list after migrate success. 4. thread2 a

[PATCH] docs: Document qemu.conf locations

2021-03-04 Thread Michal Privoznik
Surprisingly, we never documented the relationship between connection URI and the location of qemu.conf. Users might wonder what qemu.conf is loaded when they are connecting to the session daemon or embed URI. And what to do if the file doesn't exist for the URI they're using. Signed-off-by: Micha

Re: [PATCH 0/4] Replace virFileMakePath*() with g_mkdir_with_parents()

2021-03-04 Thread Michal Privoznik
On 3/4/21 6:08 PM, Ján Tomko wrote: On a Monday in 2021, Michal Privoznik wrote: While reading through glib manual I've noticed there's g_mkdir_with_parents() which does the same as our virFileMakePath() and virFileMakePathWithMode(). Michal Prívozník (4):  virfile: Replace virFileMakePathHelpe

Re: [PATCH 07/16] test_driver: Rewrite testBuildFilename

2021-03-04 Thread Ján Tomko
On a Tuesday in 2021, Peter Krempa wrote: Use glib functions to do the relative name lookup instead of manual assembly. Signed-off-by: Peter Krempa --- src/test/test_driver.c | 35 ++- 1 file changed, 6 insertions(+), 29 deletions(-) Reviewed-by: Ján Tomko Ja

Re: [PATCH 06/16] xenParseXMDisk: Replace g_new + virStrncpy by g_strndup

2021-03-04 Thread Ján Tomko
On a Tuesday in 2021, Peter Krempa wrote: Signed-off-by: Peter Krempa --- src/libxl/xen_xm.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) Reviewed-by: Ján Tomko Jano signature.asc Description: PGP signature

Re: [PATCH 05/16] virFileLoopDeviceAssociate: Use virStrcpy instead of virStrncpy

2021-03-04 Thread Ján Tomko
On a Tuesday in 2021, Peter Krempa wrote: Passing 'strlen(src)' for length makes it equivalent to virStrcpy. Signed-off-by: Peter Krempa --- src/util/virfile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) Reviewed-by: Ján Tomko Jano signature.asc Description: PGP signature

Re: [PATCH 04/16] virDevMapperGetTargetsImpl: Use virStrcpy instead of virStrncpy

2021-03-04 Thread Ján Tomko
On a Tuesday in 2021, Peter Krempa wrote: virStrncpy was called with -1 for lenght of the copied source which is length equivalent to virStrcpy. Signed-off-by: Peter Krempa --- src/util/virdevmapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Ján Tomko Jano si

Re: [PATCH 03/16] sanlock: Use virStrcpy instead of virStrncpy

2021-03-04 Thread Ján Tomko
On a Tuesday in 2021, Peter Krempa wrote: We want a (possibly truncated) copy of the full source string so virStrcpy is a better fit. Signed-off-by: Peter Krempa --- src/locking/lock_driver_sanlock.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) Reviewed-by: Ján Tomko Jano sign

Re: [PATCH 02/16] virProcessRunInForkHelper: Use virStrcpyStatic for static buffers

2021-03-04 Thread Ján Tomko
On a Tuesday in 2021, Peter Krempa wrote: Signed-off-by: Peter Krempa --- src/util/virprocess.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) Reviewed-by: Ján Tomko Jano signature.asc Description: PGP signature

Re: [PATCH 01/16] util: virstring: Always copy string in virStrcpy

2021-03-04 Thread Ján Tomko
On a Tuesday in 2021, Peter Krempa wrote: 15 out of 72 invocations of virStrcpy(Static) That's almost 21% ignore the return value as it's either impossible to fail or in certain cases a truncated copy is still good enough.Unfortunately virStrcpy doesn't copy anything in such case as the check

Re: [PATCH 16/33] virfirewall: Remove impossible OOM error reporting

2021-03-04 Thread Ján Tomko
On a Wednesday in 2021, Peter Krempa wrote: There's nothing that would set the 'err' field of virFirewallPtr to ENOMEM so we can remove the checks. Signed-off-by: Peter Krempa --- src/util/virfirewall.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/util/virfir

[libvirt PATCH 2/2] docs: stop mentioning insecure / broken SASL mechanisms

2021-03-04 Thread Daniel P . Berrangé
We don't need to go to the trouble of telling users about existance of insecure SASL mechanisms only to then say that they shouldn't be used. We should only tell people about the GSSAPI mechanism for TCP sockets. For the SCRAM mechanism we should be telling people about the SHA256 variant only, an

[libvirt PATCH 1/2] docs: convert auth page into RST format

2021-03-04 Thread Daniel P . Berrangé
Signed-off-by: Daniel P. Berrangé --- docs/auth.html.in | 368 -- docs/auth.rst | 350 +++ docs/meson.build | 2 +- 3 files changed, 351 insertions(+), 369 deletions(-) delete mode 100644 docs/auth.html.in

[libvirt PATCH 0/2] docs: less docs for insecure SASL mechanisms

2021-03-04 Thread Daniel P . Berrangé
GSSAPI and SCRAM-SHA-256 are the only two SASL mechanisms we especially want people to be using. Even the latter is a little questionable due to storing passwords in cleartext on the server. Daniel P. Berrangé (2): docs: convert auth page into RST format docs: stop mentioning insecure / broken

Re: [PATCH] tests: Don't return -1 as program return value

2021-03-04 Thread Ján Tomko
On a Thursday in 2021, Peter Krempa wrote: In cases we use -1 for failure internally we still must return EXIT_FAILURE. Signed-off-by: Peter Krempa --- tests/qemucommandutiltest.c| 3 +-- tests/virnetdevbandwidthtest.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) Reviewed-by: J

Re: [PATCH] conf: Rewrite network virtio driver formatting using virXMLFormatElement

2021-03-04 Thread Ján Tomko
On a Thursday in 2021, Peter Krempa wrote: Simplify the logic picking which element form to format by using virBuffers for the partial properties and virXMLFormatElement for combining them. Signed-off-by: Peter Krempa --- src/conf/domain_conf.c | 93 -- 1

Re: [PATCH] virBufferAdd: Ensure that the buffer is initialized also when len == 0

2021-03-04 Thread Ján Tomko
On a Thursday in 2021, Peter Krempa wrote: There's an optimization in virBufferAdd which returns early when the length of the added string is 0 (given that auto-indent is disabled). The optimization causes inconsistent behaviour between these two cases: virBufferAdd(buf, "", 0); // this doesn'

[PATCH] tests: Don't return -1 as program return value

2021-03-04 Thread Peter Krempa
In cases we use -1 for failure internally we still must return EXIT_FAILURE. Signed-off-by: Peter Krempa --- tests/qemucommandutiltest.c| 3 +-- tests/virnetdevbandwidthtest.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/qemucommandutiltest.c b/tests/qemucomma

[PATCH] conf: Rewrite network virtio driver formatting using virXMLFormatElement

2021-03-04 Thread Peter Krempa
Simplify the logic picking which element form to format by using virBuffers for the partial properties and virXMLFormatElement for combining them. Signed-off-by: Peter Krempa --- src/conf/domain_conf.c | 93 -- 1 file changed, 35 insertions(+), 58 deletion

[PATCH] virBufferAdd: Ensure that the buffer is initialized also when len == 0

2021-03-04 Thread Peter Krempa
There's an optimization in virBufferAdd which returns early when the length of the added string is 0 (given that auto-indent is disabled). The optimization causes inconsistent behaviour between these two cases: virBufferAdd(buf, "", 0); // this doesn't initialize the buffer and virBufferAdd(

Re: [PATCH 0/4] Replace virFileMakePath*() with g_mkdir_with_parents()

2021-03-04 Thread Ján Tomko
On a Monday in 2021, Michal Privoznik wrote: While reading through glib manual I've noticed there's g_mkdir_with_parents() which does the same as our virFileMakePath() and virFileMakePathWithMode(). Michal Prívozník (4): virfile: Replace virFileMakePathHelper() with g_mkdir_with_parents() Thi

Re: [PATCH 3/4] lib: Replace virFileMakePath() with g_mkdir_with_parents()

2021-03-04 Thread Ján Tomko
On a Monday in 2021, Michal Privoznik wrote: Generated using the following spatch: @@ expression path; @@ - virFileMakePath(path) + g_mkdir_with_parents(path, 0777) However, 14 occurrences were not replaced, e.g. in virHostdevManagerNew(). I don't really understand why. d/I don't really

Re: [PATCH v2 1/3] fdc: Drop deprecated floppy configuration

2021-03-04 Thread Daniel P . Berrangé
On Thu, Mar 04, 2021 at 05:52:50PM +0100, Peter Krempa wrote: > On Thu, Mar 04, 2021 at 17:23:05 +0100, Markus Armbruster wrote: > > Daniel P. Berrangé writes: > > > > > On Thu, Mar 04, 2021 at 03:26:55PM +0100, Markus Armbruster wrote: > > >> Daniel P. Berrangé writes: > > >> > > >> > On Thu,

Re: [PATCH 0/6] util: virerror: Avoid stack'd buffers for error message formatting

2021-03-04 Thread Ján Tomko
On a Tuesday in 2021, Peter Krempa wrote: We don't need OOM resiliency nowadays. Peter Krempa (6): util: virerror: Don't use stack'd buffers in error report helpers util: virerror: Avoid a copy of the error messages util: virprocess: Use local maximum error message size qemuProcessReportLogE

Re: [PATCH v2 1/3] fdc: Drop deprecated floppy configuration

2021-03-04 Thread Peter Krempa
On Thu, Mar 04, 2021 at 17:23:05 +0100, Markus Armbruster wrote: > Daniel P. Berrangé writes: > > > On Thu, Mar 04, 2021 at 03:26:55PM +0100, Markus Armbruster wrote: > >> Daniel P. Berrangé writes: > >> > >> > On Thu, Mar 04, 2021 at 11:00:57AM +0100, Markus Armbruster wrote: > >> >> Drop the

Re: [PATCH] meson: tools: depend on keycode generated sources

2021-03-04 Thread Ján Tomko
On a Wednesday in 2021, Roman Bogorodskiy wrote: Tools depend on keycode generated sources, so declare that as an explicit dependency, otherwise it might fail with: ../tools/virsh-completer-domain.c:35:10: fatal error: 'virkeynametable_linux.h' file not found ^

Re: [PATCH v2 0/6] use g_autofree and g_autoptr

2021-03-04 Thread Ján Tomko
On a Wednesday in 2021, Kristina Hanicova wrote: This is v2 from https://listman.redhat.com/archives/libvir-list/2021-February/msg01117.html I split commit 3/4 into more commits and left out autofreeing outer array as suggested by Jan Tomko. Patches 2/6 and 6/6 (previously 2/4 and 4/4) have alre

Re: [libvirt PATCH] docs: Spell out our policy concerning minor releases

2021-03-04 Thread Erik Skultety
On Wed, Mar 03, 2021 at 10:37:13AM +0100, Andrea Bolognani wrote: > We've already applied this policy on multiple occasions, but it's > good to have it written down so that there can be no confusion. > > Signed-off-by: Andrea Bolognani > --- Reviewed-by: Erik Skultety

Re: [PATCH v2 3/6] netdev_bandwidth_conf: Refractor virNetDevBandwidthParse()

2021-03-04 Thread Ján Tomko
On a Wednesday in 2021, Kristina Hanicova wrote: Refractoring includes: * removal of VIR_FREE * inversion of the condition * use of g_steal_pointer The conversion to g_steal_pointer was in your patch: Use g_steal_pointer where possible and is already merged as commit 155151a3d061e3641709

Re: [PATCH v2 1/3] fdc: Drop deprecated floppy configuration

2021-03-04 Thread Markus Armbruster
Daniel P. Berrangé writes: > On Thu, Mar 04, 2021 at 03:26:55PM +0100, Markus Armbruster wrote: >> Daniel P. Berrangé writes: >> >> > On Thu, Mar 04, 2021 at 11:00:57AM +0100, Markus Armbruster wrote: >> >> Drop the crap deprecated in commit 4a27a638e7 "fdc: Deprecate >> >> configuring floppies

Re: [libvirt PATCH 12/18] qemu: populate element with default config

2021-03-04 Thread Daniel P . Berrangé
On Wed, Mar 03, 2021 at 06:18:28PM +, Daniel P. Berrangé wrote: > Currently the QEMU driver secretly sets the QEMU_AUDIO_DRV env variable > > - VNC - set to "none", unless passthrough of host env variable is set > - SPICE - always set to "spice" > - SDL - always passthrough host env > - No

Re: [PATCH v2 1/3] fdc: Drop deprecated floppy configuration

2021-03-04 Thread Daniel P . Berrangé
On Thu, Mar 04, 2021 at 03:26:55PM +0100, Markus Armbruster wrote: > Daniel P. Berrangé writes: > > > On Thu, Mar 04, 2021 at 11:00:57AM +0100, Markus Armbruster wrote: > >> Drop the crap deprecated in commit 4a27a638e7 "fdc: Deprecate > >> configuring floppies with -global isa-fdc" (v5.1.0). > >

Re: [PATCH v2 1/3] fdc: Drop deprecated floppy configuration

2021-03-04 Thread Markus Armbruster
Daniel P. Berrangé writes: > On Thu, Mar 04, 2021 at 11:00:57AM +0100, Markus Armbruster wrote: >> Drop the crap deprecated in commit 4a27a638e7 "fdc: Deprecate >> configuring floppies with -global isa-fdc" (v5.1.0). >> >> Signed-off-by: Markus Armbruster >> --- >> docs/system/deprecated.rst

[PATCH] qemu: don't raise error upon interface update without for in coalesce

2021-03-04 Thread Kristina Hanicova
With this, incomplete XML without for in coalesce won't raise error as before. It will leave the coalesce parameter empty, thanks to passing it as a parameter and return an integer to indicate error state - previously it returned pointer (or NULL for both error and incomplete XML). The code went

Re: [PATCH v4 1/1] qemu: add per-vcpu delay stats

2021-03-04 Thread Daniel Henrique Barboza
On 2/19/21 5:08 PM, Aleksei Zakharov wrote: This patch adds delay time (steal time inside guest) to libvirt domain per-vcpu stats. Delay time is an important performance metric. It is a consequence of the overloaded CPU. Knowledge of the delay time of a virtual machine helps to understand if i

Re: [libvirt PATCH v2 1/1] qemuProcessUpdateGuestCPU: Check host cpu for forbidden features

2021-03-04 Thread Daniel Henrique Barboza
On 2/25/21 10:23 AM, Tim Wiederhake wrote: See https://bugzilla.redhat.com/show_bug.cgi?id=1840770 Signed-off-by: Tim Wiederhake --- Reviewed-by: Daniel Henrique Barboza src/qemu/qemu_process.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/src/qemu/

Re: [PATCH] meson: Add documentation installation directory option

2021-03-04 Thread Daniel Henrique Barboza
On 2/26/21 4:11 PM, Chris Mayo wrote: Allow the directory to be chosen at installation time, to support local conventions e.g. versioning. Signed-off-by: Chris Mayo --- Reviewed-by: Daniel Henrique Barboza meson.build | 6 +- meson_options.txt | 1 + 2 files changed, 6 ins

Re: [libvirt PATCH 1/2] util: Move glib event loop workaround to glibcompat

2021-03-04 Thread Daniel P . Berrangé
On Thu, Mar 04, 2021 at 10:20:14AM +, Daniel P. Berrangé wrote: > On Thu, Mar 04, 2021 at 10:48:10AM +0100, Martin Kletzander wrote: > > This way it can be used from other places as well. > > > > Signed-off-by: Martin Kletzander > > --- > > src/util/glibcompat.c | 35 ++

Re: [PATCH 0/4] Refactoring node_device_conf

2021-03-04 Thread Michal Privoznik
On 3/3/21 5:17 PM, Kristina Hanicova wrote: This refactors file node_device_conf in order to remove VIR_FREE (if possible) and removes redundant variables and labels. Kristina Hanicova (4): node_device_conf: Use g_autofree where possible node_device_conf: Refactoring functions in order to

Re: [PATCH 3/4] node_device_conf: use g_autoptr in virNodeDevCapPCIDevIommuGroupParseXML()

2021-03-04 Thread Michal Privoznik
On 3/3/21 5:17 PM, Kristina Hanicova wrote: Signed-off-by: Kristina Hanicova --- src/conf/node_device_conf.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/conf/node_device_conf.c b/src/conf/node_device_conf.c index cfc72299de..a64be74011 100644 --- a/s

Re: [PATCH v2 1/3] fdc: Drop deprecated floppy configuration

2021-03-04 Thread Daniel P . Berrangé
On Thu, Mar 04, 2021 at 11:00:57AM +0100, Markus Armbruster wrote: > Drop the crap deprecated in commit 4a27a638e7 "fdc: Deprecate > configuring floppies with -global isa-fdc" (v5.1.0). > > Signed-off-by: Markus Armbruster > --- > docs/system/deprecated.rst | 26 -- > docs/system/remove

Re: [libvirt PATCH 5/5] domain_conf: Fix check for hyperv stimer

2021-03-04 Thread Michal Privoznik
On 3/4/21 9:35 AM, Tim Wiederhake wrote: VIR_DOMAIN_HYPERV_STIMER happens to have the same numerical value as VIR_DOMAIN_FEATURE_HYPERV, resulting in the if-block to always being executed when a "" tag is found, whether or not it actually contained a "" tag. This had no ill effects, as virXPathNo

Re: [libvirt PATCH 0/5] Some fixes in domain_conf.c: virDomainFeaturesDefParse

2021-03-04 Thread Michal Privoznik
On 3/4/21 9:35 AM, Tim Wiederhake wrote: Patches 1-4 are minor cleanups, patch 5 is the actual one that I want out of the way before continuing down my rabbit hole of the week. Tim Wiederhake (5): domain_conf: Reduce scope of tmp in virDomainFeaturesDefParse domain_conf: Reduce scope of gi

Re: [libvirt PATCH 1/2] util: Move glib event loop workaround to glibcompat

2021-03-04 Thread Daniel P . Berrangé
On Thu, Mar 04, 2021 at 10:48:10AM +0100, Martin Kletzander wrote: > This way it can be used from other places as well. > > Signed-off-by: Martin Kletzander > --- > src/util/glibcompat.c | 35 +++ > src/util/glibcompat.h | 11 +++ > src/util/vireventgl

Re: [libvirt PATCH 2/2] glib: Use safe glib event workaround in other event loops

2021-03-04 Thread Daniel P . Berrangé
On Thu, Mar 04, 2021 at 10:48:11AM +0100, Martin Kletzander wrote: > Similarly to the crash workaround: > > commit 0db4743645b7a0611a3c0687f834205c9956f7fc > Author: Daniel P. Berrangé > Date: Tue Jul 28 16:52:47 2020 +0100 > > util: avoid crash due to race in glib event loop code >

[PATCH v2 3/3] blockdev: Drop deprecated bogus -drive interface type

2021-03-04 Thread Markus Armbruster
Drop the crap deprecated in commit a1b40bda08 "blockdev: Deprecate -drive with bogus interface type" (v5.1.0). Signed-off-by: Markus Armbruster --- docs/system/deprecated.rst | 7 -- docs/system/removed-features.rst | 7 ++ include/sysemu/blockdev.h| 1 - blockdev.c

[PATCH v2 0/3] Drop deprecated floppy config & bogus -drive if=T

2021-03-04 Thread Markus Armbruster
v2: * Rebased, straightforward conflict with commit f5d33dd51f "hw/block/fdc: Remove the check_media_rate property" resolved * PATCH 2: Commit message fixed [Kevin] Markus Armbruster (3): fdc: Drop deprecated floppy configuration fdc: Inline fdctrl_connect_drives() into fdctrl_realize_common

[PATCH v2 1/3] fdc: Drop deprecated floppy configuration

2021-03-04 Thread Markus Armbruster
Drop the crap deprecated in commit 4a27a638e7 "fdc: Deprecate configuring floppies with -global isa-fdc" (v5.1.0). Signed-off-by: Markus Armbruster --- docs/system/deprecated.rst | 26 -- docs/system/removed-features.rst | 26 ++ hw/block/fdc.c | 54 +-- tests/qemu-iot

[PATCH v2 2/3] fdc: Inline fdctrl_connect_drives() into fdctrl_realize_common()

2021-03-04 Thread Markus Armbruster
The previous commit rendered the name fdctrl_connect_drives() somewhat misleading. Get rid of it by inlining the (now pretty simple) function into its only caller. Signed-off-by: Markus Armbruster --- hw/block/fdc.c | 23 --- 1 file changed, 8 insertions(+), 15 deletions(-)

[libvirt PATCH 1/2] util: Move glib event loop workaround to glibcompat

2021-03-04 Thread Martin Kletzander
This way it can be used from other places as well. Signed-off-by: Martin Kletzander --- src/util/glibcompat.c | 35 +++ src/util/glibcompat.h | 11 +++ src/util/vireventglib.c | 30 -- 3 files changed, 46 insertions(+), 30 d

[libvirt PATCH 2/2] glib: Use safe glib event workaround in other event loops

2021-03-04 Thread Martin Kletzander
Similarly to the crash workaround: commit 0db4743645b7a0611a3c0687f834205c9956f7fc Author: Daniel P. Berrangé Date: Tue Jul 28 16:52:47 2020 +0100 util: avoid crash due to race in glib event loop code we need to do this in the other event loop as crash in that one was also reported:

[libvirt PATCH 0/2] glib: Avoid yet another crash due to race in event loop code

2021-03-04 Thread Martin Kletzander
Similarly to commit 0db4743645b7 we need to fix the other event loop as well. To be completely honest I do not completely understand all the details in the original workaround, so I just hope this is the best way to fix the issue. Hopefully-resolves: https://bugzilla.redhat.com/show_bug.cgi?id=193

[libvirt PATCH 4/5] domain_conf: Add missing break in switch

2021-03-04 Thread Tim Wiederhake
Signed-off-by: Tim Wiederhake --- src/conf/domain_conf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 4bc82b69fc..48fd078b90 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -18449,6 +18449,7 @@ virDomainFeaturesDefPa

[libvirt PATCH 3/5] domain_conf: Reduce scope of node in virDomainFeaturesDefParse

2021-03-04 Thread Tim Wiederhake
Signed-off-by: Tim Wiederhake --- src/conf/domain_conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index f73814f3c7..4bc82b69fc 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -18156,7 +18156,6 @@ vi

[libvirt PATCH 5/5] domain_conf: Fix check for hyperv stimer

2021-03-04 Thread Tim Wiederhake
VIR_DOMAIN_HYPERV_STIMER happens to have the same numerical value as VIR_DOMAIN_FEATURE_HYPERV, resulting in the if-block to always being executed when a "" tag is found, whether or not it actually contained a "" tag. This had no ill effects, as virXPathNodeSet() would simply return 0 if that tag d

[libvirt PATCH 2/5] domain_conf: Reduce scope of gic_version in virDomainFeaturesDefParse

2021-03-04 Thread Tim Wiederhake
Signed-off-by: Tim Wiederhake --- src/conf/domain_conf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 1d0ef17318..f73814f3c7 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -18157,7 +18157,6 @@ virD

[libvirt PATCH 1/5] domain_conf: Reduce scope of tmp in virDomainFeaturesDefParse

2021-03-04 Thread Tim Wiederhake
Variables using `g_autofree` should not be manually VIR_FREE'd and reused. Signed-off-by: Tim Wiederhake --- src/conf/domain_conf.c | 26 +- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index f194909b13..1d

[libvirt PATCH 0/5] Some fixes in domain_conf.c: virDomainFeaturesDefParse

2021-03-04 Thread Tim Wiederhake
Patches 1-4 are minor cleanups, patch 5 is the actual one that I want out of the way before continuing down my rabbit hole of the week. Tim Wiederhake (5): domain_conf: Reduce scope of tmp in virDomainFeaturesDefParse domain_conf: Reduce scope of gic_version in virDomainFeaturesDefParse doma

Re: [libvirt PATCH] cpu_map: Fix spelling of svme-addr-chk feature

2021-03-04 Thread Tim Wiederhake
On Thu, 2021-03-04 at 08:44 +0100, Jiri Denemark wrote: > Commit a208176ca1d9eedf8aa6bf12fde6a7a9579ab549 introduced this > feature > with an incorrect "svme-addr-check" spelling. > > Signed-off-by: Jiri Denemark My bad. Reviewed-by: Tim Wiederhake > --- > src/cpu_map/sync_qemu_i386.py | 2