Re: [PATCH] qemuxml2xmltests.c: convert pseries tests to DO_TEST_CAPS_ARCH_LATEST

2022-05-23 Thread Daniel Henrique Barboza
On 5/23/22 07:39, Martin Kletzander wrote: On Sat, May 21, 2022 at 01:59:05PM -0300, Daniel Henrique Barboza wrote: qemuxml2xmltests that have "pseries" in the name now use the DO_TEST_CAPS_LATEST_ARCH() macro. Signed-off-by: Daniel Henrique Barboza Reviewed-by: Martin Kletzander

Re: [PATCH 0/3] qemuxml2argvtest: add ARG_CAPS_HOST_CPU_MODEL

2022-05-23 Thread Daniel Henrique Barboza
Pushed fixing the typo in patch 2. Thanks! Daniel On 5/20/22 17:47, Daniel Henrique Barboza wrote: Hi, This series attempts to fix a problem I found when converting the "pseries-cpu-compat-power9" to use DO_TEST_CAPS_ARCH_LATEST* macros. More information about the problem per se can be found

[libvirt PATCH 07/13] syntax-check: Drop unused machinery

2022-05-23 Thread Andrea Bolognani
_equal is not used anywhere; the rest of the code implements the syntax-check target, which takes care of figuring out the list of checks that have been defined and running them, printing the name of each check along with its execution time. This was useful when we were using autotools, but these

[libvirt PATCH 12/13] syntax-check: Drop sc_ prefix when adding checks to meson

2022-05-23 Thread Andrea Bolognani
All checks are added to the syntax-check suite, and this name is displayed prominently in the output of 'meson test', so there really is no need to include the sc_ prefix too. Signed-off-by: Andrea Bolognani --- build-aux/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[libvirt PATCH 13/13] syntax-check: Enforce sc_prohibit_backslash_alignment everywhere

2022-05-23 Thread Andrea Bolognani
Basically all files in the repository are already passing the check, except for syntax-check.mk itself. Fix that, and stop limiting the files on which the test is performed. These changes have been generated by running $ sed -Ei 's/[ '$'\t'']+\\$/ \\/g' $(git grep -El '[ '$'\t'']+\\$')

[libvirt PATCH 10/13] syntax-check: Reorganize file

2022-05-23 Thread Andrea Bolognani
Due to the way make works, we are not forced to follow a strict order in defining rules and variables. In fact _sc_search_regexp, which is used by all checks, is only defined halfway through the file. Shuffle things around so that the things that we need to look at the most frequently are closer

[libvirt PATCH 11/13] syntax-check: Add all target

2022-05-23 Thread Andrea Bolognani
The makefile is an implementation detail, so point users towards the proper way of running syntax-check if they happen to call it directly. Signed-off-by: Andrea Bolognani --- build-aux/syntax-check.mk | 5 + 1 file changed, 5 insertions(+) diff --git a/build-aux/syntax-check.mk

[libvirt PATCH 05/13] syntax-check: Use VC_LIST_EXCEPT in sc_prohibit_backup_files

2022-05-23 Thread Andrea Bolognani
We can assume that VC_LIST_ALWAYS_EXCLUDE_REGEX will not be defined in a way that would catch backup files. Signed-off-by: Andrea Bolognani --- build-aux/syntax-check.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk

[libvirt PATCH 09/13] syntax-check: Detect awk the same as all other programs

2022-05-23 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- build-aux/Makefile.in | 1 + build-aux/meson.build | 3 +++ build-aux/syntax-check.mk | 5 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/build-aux/Makefile.in b/build-aux/Makefile.in index 9ccbec7b1b..7ee4680847 100644 ---

[libvirt PATCH 03/13] syntax-check: Remove sc_copyright_usage exception

2022-05-23 Thread Andrea Bolognani
The pattern in build-aux/syntax-check.mk is written specifically so that it won't match itself, which makes having an exception for the file unnecessary. Signed-off-by: Andrea Bolognani --- build-aux/syntax-check.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[libvirt PATCH 08/13] syntax-check: Drop ME variable

2022-05-23 Thread Andrea Bolognani
It's only used in diagnostics, and even there it's not particularly useful and can make it more difficult to spot the actual error message. Signed-off-by: Andrea Bolognani --- build-aux/syntax-check.mk | 58 ++- 1 file changed, 27 insertions(+), 31

[libvirt PATCH 02/13] syntax-check: Remove sc_gettext_init exception

2022-05-23 Thread Andrea Bolognani
The file src/util/vireventglib.c doesn't contain a main() function and so it's not even considered by the check. Signed-off-by: Andrea Bolognani --- build-aux/syntax-check.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-aux/syntax-check.mk

[libvirt PATCH 01/13] syntax-check: Drop sc_bindtextdomain check

2022-05-23 Thread Andrea Bolognani
This is one of the standard checks that we have inherited from gnulib, but it's not applicable to libvirt because we don't want plain bindtextdomain() to be used: virGettextInitialize() is our own private API that should be used instead. The sc_gettext_init check ensures that our private API is

[libvirt PATCH 06/13] syntax-check: Simplify VC_LIST_ALWAYS_EXCLUDE_REGEX

2022-05-23 Thread Andrea Bolognani
Most of the pattern is no longer relevant, because the files it was intended to match have been dropped from the repository. Specifically: filescommitdate -- -- *.gif 6cb131e5cbd0 2022-01-19

[libvirt PATCH 04/13] syntax-check: Improve sc_prohibit_config_h_in_headers check

2022-05-23 Thread Andrea Bolognani
In its current form, the check will not only catch the intended #include but also stuff like #include #include "qemu_interop_config.h" #include The last one is problematic, because it's used in config.h itself. Making the pattern more strict allows us to drop the exception.

[libvirt PATCH 00/13] syntax-check: Cleanups and improvements

2022-05-23 Thread Andrea Bolognani
$ meson test --suite blurb Andrea Bolognani (13): syntax-check: Drop sc_bindtextdomain check syntax-check: Remove sc_gettext_init exception syntax-check: Remove sc_copyright_usage exception syntax-check: Improve sc_prohibit_config_h_in_headers check syntax-check: Use VC_LIST_EXCEPT in

Re: [PATCH RFC 06/10] virprocess: Core Scheduling support

2022-05-23 Thread Daniel P . Berrangé
On Mon, May 09, 2022 at 05:02:13PM +0200, Michal Privoznik wrote: > Since its 5.14 release the Linux kernel allows userspace to > define trusted groups of processes/threads that can run on > sibling Hyper Threads (HT) at the same time. This is to mitigate > side channel attacks like L1TF or MDS.

Re: [PATCH RFC 05/10] qemu_virtiofs: Separate PID read code into qemuVirtioFSGetPid

2022-05-23 Thread Daniel P . Berrangé
On Mon, May 09, 2022 at 05:02:12PM +0200, Michal Privoznik wrote: > In near future it will be necessary to know the PID of virtiofsd > started for QEMU. Move the code into a separate function > (qemuVirtioFSGetPid()) and export it in the header file. > > Signed-off-by: Michal Privoznik > --- >

Re: [PATCH RFC 04/10] qemu_tpm: Expose qemuTPMEmulatorGetPid()

2022-05-23 Thread Daniel P . Berrangé
On Mon, May 09, 2022 at 05:02:11PM +0200, Michal Privoznik wrote: > In near future it will be necessary to know the PID of swtpm > process for QEMU. Export the function that does just that > (qemuTPMEmulatorGetPid()). > > Signed-off-by: Michal Privoznik > --- > src/qemu/qemu_tpm.c | 2 +- >

Re: [PATCH RFC 03/10] qemu_vhost_user_gpu: Export qemuVhostUserGPUGetPid()

2022-05-23 Thread Daniel P . Berrangé
On Mon, May 09, 2022 at 05:02:10PM +0200, Michal Privoznik wrote: > In near future it will be necessary to know the PID of > vhost-user-gpu process for QEMU. Export the function that does > just that (qemuVhostUserGPUGetPid()). > > Signed-off-by: Michal Privoznik > --- >

Re: [PATCH RFC 02/10] qemu_dbus: Separate PID read code into qemuDBusGetPID

2022-05-23 Thread Daniel P . Berrangé
On Mon, May 09, 2022 at 05:02:09PM +0200, Michal Privoznik wrote: > In near future it will be necessary to know the PID of DBus > daemon started for QEMU. Move the code into a separate function > (qemuDBusGetPID()) and export it in the header file. > > Signed-off-by: Michal Privoznik > --- >

Re: [PATCH RFC 01/10] qemu_tpm: Make APIs work over a single virDomainTPMDef

2022-05-23 Thread Daniel P . Berrangé
On Mon, May 09, 2022 at 05:02:08PM +0200, Michal Privoznik wrote: > In qemu_extdevice.c lives code that handles helper daemons that > are required for some types of devices (e.g. virtiofsd, > vhost-user-gpu, swtpm, etc.). These devices have their own > handling code in separate files, with only a

Re: [PATCH RFC 07/10] virCommand: Introduce APIs for core scheduling

2022-05-23 Thread Daniel P . Berrangé
On Mon, May 09, 2022 at 05:02:14PM +0200, Michal Privoznik wrote: > There are two modes of core scheduling that are handy wrt > virCommand: > > 1) create new trusted group when executing a virCommand > > 2) place freshly executed virCommand into the trusted group of >another process. > >

Re: [PATCH RFC 10/10] qemu: Place helper processes into the same trusted group

2022-05-23 Thread Daniel P . Berrangé
On Mon, May 09, 2022 at 05:02:17PM +0200, Michal Privoznik wrote: > Since the level of trust that QEMU has is the same level of trust > that helper processes have there's no harm in placing all of them > into the same group. This assumption feels like it might be a bit of a stretch. I recall

Re: [PATCH] qemu_hotplug: Deny changing @rss and @rss_hash_report attributes of virtio vNICs

2022-05-23 Thread Laine Stump
On 5/23/22 11:22 AM, Michal Privoznik wrote: We have virDomainUpdateDeviceFlags() API that allows changing of some attributes of a device whilst domain is still running (e.g. setting different QoS, link state change on vNICs). But only very limited set of attributes can be changed and we have to

Re: [PATCH RFC 00/10] qemu: Enable SCHED_CORE for domains and helper processes

2022-05-23 Thread Daniel P . Berrangé
On Mon, May 09, 2022 at 05:02:07PM +0200, Michal Privoznik wrote: > The Linux kernel offers a way to mitigate side channel attacks on Hyper > Threads (e.g. MDS and L1TF). Long story short, userspace can define > groups of processes (aka trusted groups) and only processes within one > group can run

[PATCH] nodedev: prevent internal error on dev_busid parse

2022-05-23 Thread Boris Fiuczynski
As "none" is a legal value represented in the sysfs attribute dev_busid this patch prevents libvirt from incorrectly reporting an internal error. Signed-off-by: Boris Fiuczynski Suggested-by: Michal Privoznik --- src/node_device/node_device_udev.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH 00/17] nodedev: add optional device address of channel device to css device

2022-05-23 Thread Boris Fiuczynski
On 5/23/22 4:40 PM, Michal Prívozník wrote: I'm fixing small memleaks I've raised in 16/17 and merging. Reviewed-by: Michal Privoznik Michal Thanks Michal -- Mit freundlichen Grüßen/Kind regards Boris Fiuczynski IBM Deutschland Research & Development GmbH Vorsitzender des Aufsichtsrats:

Re: [PATCH 16/17] nodedev: add optional device address of channel device to css device

2022-05-23 Thread Boris Fiuczynski
On 5/23/22 4:40 PM, Michal Prívozník wrote: On 5/13/22 12:31, Boris Fiuczynski wrote: Add the new introduced sysfs attribute dev_busid which provides the address of the device in the subchannel independent from the bound device driver. It is added if available in the sysfs as optional

[PATCH] qemu_hotplug: Deny changing @rss and @rss_hash_report attributes of virtio vNICs

2022-05-23 Thread Michal Privoznik
We have virDomainUpdateDeviceFlags() API that allows changing of some attributes of a device whilst domain is still running (e.g. setting different QoS, link state change on vNICs). But only very limited set of attributes can be changed and we have to check whether user isn't trying to sneak in a

Re: [libvirt PATCH] qemu: Do not return NULL when qemuMigrationSrcBegin succeeds

2022-05-23 Thread Michal Prívozník
On 5/23/22 16:46, Jiri Denemark wrote: > My recent commit v8.3.0-201-gc500955e95 tried to fix a regression which > would cause the function to return success even if virCloseCallbacksSet > failed. But due to a strange code flow in the function introduced an > opposite regression. The function

[libvirt PATCH] qemu: Do not return NULL when qemuMigrationSrcBegin succeeds

2022-05-23 Thread Jiri Denemark
My recent commit v8.3.0-201-gc500955e95 tried to fix a regression which would cause the function to return success even if virCloseCallbacksSet failed. But due to a strange code flow in the function introduced an opposite regression. The function would return NULL on success when called without

Re: [PATCH 16/17] nodedev: add optional device address of channel device to css device

2022-05-23 Thread Michal Prívozník
On 5/13/22 12:31, Boris Fiuczynski wrote: > Add the new introduced sysfs attribute dev_busid which provides the address > of the device in the subchannel independent from the bound device driver. > It is added if available in the sysfs as optional channel_dev_addr element > into > the css device

Re: [PATCH 00/17] nodedev: add optional device address of channel device to css device

2022-05-23 Thread Michal Prívozník
On 5/13/22 12:30, Boris Fiuczynski wrote: > While this series started with the intend to add the optional device > address of a subchannel device to the nodedev css device the outcome now > also includes a small fix in the error reporting of css cap XML parsing > as well as a refactoring of

[PATCH 3/3] network: Generate TFTP config regardless of DHCP

2022-05-23 Thread Michal Privoznik
We already allow users to provide TFTP root path in network XML and not specify any DHCP. This makes sense, because dnsmasq is not only DHCP server but also TFTP server and users might have a DHCP server configured on their own, outside of libvirt's control and want just the TFTP part. By moving

[PATCH 2/3] network: Separate DHCP config generator into a function

2022-05-23 Thread Michal Privoznik
Generating configuration file for dnsmasq is done in networkDnsmasqConfContents() which is this big, self-contained function. Separate at least DHCP part into its own function for better readability. Signed-off-by: Michal Privoznik --- src/network/bridge_driver.c | 227

[PATCH 1/3] network: Initialize variables in networkDnsmasqConfContents()

2022-05-23 Thread Michal Privoznik
In networkDnsmasqConfContents() there's a for() loop which initializes some variables in its initialization block. This makes both the loop() statement and variable declaration block look needlessly ugly. Speaking of variable declaration, also move some variables which are used only within blocks

[PATCH RESEND 0/3] network: Generate TFTP config regardless of DHCP

2022-05-23 Thread Michal Privoznik
This is rebased version of: https://listman.redhat.com/archives/libvir-list/2021-December/226045.html Michal Prívozník (3): network: Initialize variables in networkDnsmasqConfContents() network: Separate DHCP config generator into a function network: Generate TFTP config regardless of DHCP

[PATCH 12/17] virDomainChrDefParseXML: Switch to virXMLPropEnumDefault()

2022-05-23 Thread Michal Privoznik
The virDomainChrDefParseXML() function uses old style of parsing XML (virXMLPropString + str2enum conversion). Use virXMLPropEnumDefault() which encapsulates those steps. Signed-off-by: Michal Privoznik --- src/ch/ch_monitor.c | 2 +- src/conf/domain_conf.c | 82

[PATCH 11/17] virDomainDiskDefParseSourceXML: Switch to virXMLPropEnumDefault()

2022-05-23 Thread Michal Privoznik
The virDomainDiskDefParseSourceXML() function uses old style of parsing XML (virXMLPropString + str2enum conversion). Use virXMLPropEnumDefault() which encapsulates those steps. Signed-off-by: Michal Privoznik --- src/conf/domain_conf.c | 14 +- 1 file changed, 5 insertions(+), 9

[PATCH 16/17] virDomainHubDefParseXML: Switch to virXMLPropEnumDefault()

2022-05-23 Thread Michal Privoznik
The virDomainHubDefParseXML() function uses old style of parsing XML (virXMLPropString + str2enum conversion). Use virXMLPropEnumDefault() which encapsulates those steps. Signed-off-by: Michal Privoznik --- src/conf/domain_conf.c | 17 - src/conf/domain_conf.h | 14

[PATCH 15/17] virDomainInputDefParseXML: Switch to virXMLPropEnumDefault()

2022-05-23 Thread Michal Privoznik
The virDomainInputDefParseXML() function uses old style of parsing XML (virXMLPropString + str2enum conversion). Use virXMLPropEnumDefault() which encapsulates those steps. Signed-off-by: Michal Privoznik --- src/conf/domain_audit.c | 2 +- src/conf/domain_conf.c | 86

[PATCH 17/17] virDomainTimerDefParseXML: Switch to virXMLPropEnumDefault()

2022-05-23 Thread Michal Privoznik
The virDomainTimerDefParseXML() function uses old style of parsing XML (virXMLPropString + str2enum conversion). Use virXMLPropEnumDefault() which encapsulates those steps. Signed-off-by: Michal Privoznik --- src/conf/domain_conf.c | 105 +--

[PATCH 14/17] virDomainPanicDefParseXML: Switch to virXMLPropEnumDefault()

2022-05-23 Thread Michal Privoznik
The virDomainPanicDefParseXML() function uses old style of parsing XML (virXMLPropString + str2enum conversion). Use virXMLPropEnumDefault() which encapsulates those steps. Signed-off-by: Michal Privoznik --- src/conf/domain_conf.c | 11 --- src/conf/domain_conf.h | 2 +-

[PATCH 05/17] virDomainStorageNetworkParseHost: Switch to virXMLPropEnumDefault()

2022-05-23 Thread Michal Privoznik
The virDomainStorageNetworkParseHost() function uses old style of parsing XML (virXMLPropString + str2enum conversion). Use virXMLPropEnumDefault() which encapsulates those steps. Signed-off-by: Michal Privoznik --- src/conf/domain_conf.c| 19 +++

[PATCH 13/17] virDomainTPMDefParseXML: Switch to virXMLPropEnumDefault()

2022-05-23 Thread Michal Privoznik
The virDomainTPMDefParseXML() function uses old style of parsing XML (virXMLPropString + str2enum conversion). Use virXMLPropEnumDefault() which encapsulates those steps. Signed-off-by: Michal Privoznik --- src/conf/domain_conf.c | 43

[PATCH 06/17] virDomainHostdevSubsysSCSIDefParseXML: Switch to virXMLPropEnumDefault()

2022-05-23 Thread Michal Privoznik
The virDomainHostdevSubsysSCSIDefParseXML() function uses old style of parsing XML (virXMLPropString + str2enum conversion). Use virXMLPropEnumDefault() which encapsulates those steps. Signed-off-by: Michal Privoznik --- src/conf/domain_conf.c | 19 ++- src/conf/domain_conf.h

[PATCH 09/17] virDomainDiskDefMirrorParse: Switch to virXMLPropEnumDefault()

2022-05-23 Thread Michal Privoznik
The virDomainDiskDefMirrorParse() function uses old style of parsing XML (virXMLPropString + str2enum conversion). Use virXMLPropEnumDefault() which encapsulates those steps. Signed-off-by: Michal Privoznik --- src/conf/domain_conf.c | 26 ++ src/conf/domain_conf.h |

[PATCH 08/17] virDomainDiskSourceNVMeParse: Switch to virXMLPropEnumDefault()

2022-05-23 Thread Michal Privoznik
The virDomainDiskSourceNVMeParse() function uses old style of parsing XML (virXMLPropString + str2enum conversion). Use virXMLPropEnumDefault() which encapsulates those steps. Signed-off-by: Michal Privoznik --- src/conf/domain_conf.c | 15 +++ 1 file changed, 3 insertions(+), 12

[PATCH 07/17] virDomainHostdevSubsysSCSIVHostDefParseXML: Switch to virXMLPropEnumDefault()

2022-05-23 Thread Michal Privoznik
The virDomainHostdevSubsysSCSIVHostDefParseXML() function uses old style of parsing XML (virXMLPropString + str2enum conversion). Use virXMLPropEnumDefault() which encapsulates those steps. Signed-off-by: Michal Privoznik --- src/conf/domain_conf.c | 19 +--

[PATCH 10/17] virDomainDiskSourcePoolDefParse: Switch to virXMLPropEnumDefault()

2022-05-23 Thread Michal Privoznik
The virDomainDiskSourcePoolDefParse() function uses old style of parsing XML (virXMLPropString + str2enum conversion). Use virXMLPropEnumDefault() which encapsulates those steps. Signed-off-by: Michal Privoznik --- src/conf/domain_conf.c | 12 src/conf/storage_source_conf.h

[PATCH 01/17] Drop needless typecast to virStorageType enum

2022-05-23 Thread Michal Privoznik
There are three places (two in domain_conf.c and one in qemu_migration.c) where a virStorageSource->type is typecasted to virStorageType (for the purpose of catching missing enum member in a switch() statement at compile time). This is needless, because as of v8.2.0-rc1~120 the struct member is of

[PATCH 02/17] virStorageSourceGetActualType: Change type of retval

2022-05-23 Thread Michal Privoznik
The virStorageSourceGetActualType() function returns either virStorageSource->type (which is of type virStorageType), or virStorageSourcePoolDef->type, which really stores a value of the same enum. Thus, the latter struct can be changed so that the virStorageSourceGetActualType() function can

[PATCH 03/17] virDomainBackupDefParse: Switch to virXMLPropEnumDefault()

2022-05-23 Thread Michal Privoznik
The virDomainBackupDefParse() function uses old style of parsing XML (virXMLPropString + str2enum conversion). Use virXMLPropEnumDefault() which encapsulates those steps. Signed-off-by: Michal Privoznik --- src/conf/backup_conf.c | 16 ++-- src/conf/backup_conf.h | 2 +- 2 files

[PATCH 04/17] virDomainDeviceAddressParseXML: Switch to virXMLPropEnumDefault()

2022-05-23 Thread Michal Privoznik
The virDomainDeviceAddressParseXML() function uses old style of parsing XML (virXMLPropString + str2enum conversion). Use virXMLPropEnumDefault() which encapsulates those steps. Signed-off-by: Michal Privoznik --- src/conf/device_conf.c | 12 - src/conf/device_conf.h | 4 +--

[PATCH REBASE 00/17] Use virXMLPropEnum() more (part I)

2022-05-23 Thread Michal Privoznik
This is rebased version of: https://listman.redhat.com/archives/libvir-list/2022-April/229941.html Michal Prívozník (17): Drop needless typecast to virStorageType enum virStorageSourceGetActualType: Change type of retval virDomainBackupDefParse: Switch to virXMLPropEnumDefault()

Re: [PATCH 0/2] Fix missing 'manual' mode for default snapshot disk definition and clean up docs

2022-05-23 Thread Michal Prívozník
On 5/23/22 13:56, Peter Krempa wrote: > Peter Krempa (2): > docs: domain: Remove extraneous quotes > schemas: Allow 'manual' snapshot mode in domain definition > > docs/formatdomain.rst | 20 ++-- > src/conf/schemas/domaincommon.rng | 1 + > 2 files changed, 11

[PATCH 2/2] schemas: Allow 'manual' snapshot mode in domain definition

2022-05-23 Thread Peter Krempa
Commit a1465e661e7 added the 'manual' disk snapshot mode documentation but didn't allow it in the schema as default snapshot mode for a disk. Add the needed value into the schema. Signed-off-by: Peter Krempa --- src/conf/schemas/domaincommon.rng | 1 + 1 file changed, 1 insertion(+) diff

[PATCH 1/2] docs: domain: Remove extraneous quotes

2022-05-23 Thread Peter Krempa
Certain documentation bits tried to put a reference of a value into quotes, but that's not needed for both the pure view of the rST source and the rendered output. Signed-off-by: Peter Krempa --- docs/formatdomain.rst | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-)

[PATCH 0/2] Fix missing 'manual' mode for default snapshot disk definition and clean up docs

2022-05-23 Thread Peter Krempa
Peter Krempa (2): docs: domain: Remove extraneous quotes schemas: Allow 'manual' snapshot mode in domain definition docs/formatdomain.rst | 20 ++-- src/conf/schemas/domaincommon.rng | 1 + 2 files changed, 11 insertions(+), 10 deletions(-) -- 2.35.3

Re: [libvirt PATCH v2 0/7] po: Various fixes and cleanups

2022-05-23 Thread Michal Prívozník
On 5/18/22 11:52, Andrea Bolognani wrote: > Changes from [v1] > > * instead of checking that the potfile doesn't contain unwanted > comments at syntax-check time, prevent them from being added by > passing all xgettext options explicitly ourselves. > > [v1]

Re: [PATCH v2] remote_daemon: Don't run virStateCleanup() if virStateReload() is still running

2022-05-23 Thread Martin Kletzander
On Thu, May 19, 2022 at 04:49:32PM +0200, Michal Privoznik wrote: When a SIGHUP is received a thread is spawned that runs virStateReload(). However, if SIGINT is received while the former thread is still running then we may get into problematic situation: the cleanup code in main() sees drivers

Re: [libvirt PATCH] qemu: Fix error propagation in qemuMigrationBegin

2022-05-23 Thread Peter Krempa
On Mon, May 23, 2022 at 12:55:17 +0200, Jiri Denemark wrote: > Commit v8.3.0-152-g49ef0f95c6 removed explicit VIR_FREE from > qemuMigrationBegin, effectively reverting v1.2.14-57-g77ddd0bba2 > > The xml variable was used to hold the return value and thus had to be > unset when an error happened

[libvirt PATCH] qemu: Fix error propagation in qemuMigrationBegin

2022-05-23 Thread Jiri Denemark
Commit v8.3.0-152-g49ef0f95c6 removed explicit VIR_FREE from qemuMigrationBegin, effectively reverting v1.2.14-57-g77ddd0bba2 The xml variable was used to hold the return value and thus had to be unset when an error happened after xml was already non-NULL. Such code may be quite confusing though

Re: [PATCH] qemuxml2xmltests.c: convert pseries tests to DO_TEST_CAPS_ARCH_LATEST

2022-05-23 Thread Martin Kletzander
On Sat, May 21, 2022 at 01:59:05PM -0300, Daniel Henrique Barboza wrote: qemuxml2xmltests that have "pseries" in the name now use the DO_TEST_CAPS_LATEST_ARCH() macro. Signed-off-by: Daniel Henrique Barboza Reviewed-by: Martin Kletzander signature.asc Description: PGP signature

Re: [PATCH 3/3] qemuxml2argvtest.c: use CAPS_ARCH_LATEST() with pseries-cpu-compat-power9

2022-05-23 Thread Martin Kletzander
On Fri, May 20, 2022 at 05:47:04PM -0300, Daniel Henrique Barboza wrote: Use the newly added ARG_CAPS_HOST_CPU_MODEL to set which host CPU we expect the test to use - the test should fail when using a POWER8 host cpu but complete when using a POWER9 host cpu. Two new macros were added because

Re: [PATCH 2/3] testutilsqemu: introduce ARG_CAPS_HOST_CPU_MODEL

2022-05-23 Thread Martin Kletzander
On Fri, May 20, 2022 at 05:47:03PM -0300, Daniel Henrique Barboza wrote: When loading a latest caps for an arch for the first time the following occurs in testQemuInfoInitArgs(): - the caps file is located. It's not in the cache since it's the first time it's being read; - the cachecaps are

Re: [PATCH 1/3] qemu_capspriv.h: fix identation

2022-05-23 Thread Martin Kletzander
On Fri, May 20, 2022 at 05:47:02PM -0300, Daniel Henrique Barboza wrote: Fix identation of virQEMUCapsUpdateHostCPUModel() params. Signed-off-by: Daniel Henrique Barboza trivial, Reviewed-by: Martin Kletzander --- src/qemu/qemu_capspriv.h | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [PATCH RFC 00/10] qemu: Enable SCHED_CORE for domains and helper processes

2022-05-23 Thread Michal Prívozník
On 5/18/22 14:48, Michal Prívozník wrote: > On 5/9/22 17:02, Michal Privoznik wrote: >> > > Polite ping. Less polite ping. Michal

Re: [libvirt PATCH] apparmor: Enable locking AAVMF firmware

2022-05-23 Thread Martin Kletzander
On Mon, May 23, 2022 at 10:33:39AM +0200, Andrea Bolognani wrote: We already allow this for OVMF. Closes: https://gitlab.com/libvirt/libvirt/-/issues/312 Signed-off-by: Andrea Bolognani Reviewed-by: Martin Kletzander --- src/security/apparmor/libvirt-qemu | 2 +- 1 file changed, 1

[libvirt PATCH] apparmor: Enable locking AAVMF firmware

2022-05-23 Thread Andrea Bolognani
We already allow this for OVMF. Closes: https://gitlab.com/libvirt/libvirt/-/issues/312 Signed-off-by: Andrea Bolognani --- src/security/apparmor/libvirt-qemu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/security/apparmor/libvirt-qemu