Re: [libvirt PATCH 5/5] qemu: Implement support for vDPA block devices

2023-08-02 Thread Jonathon Jongsma
On 7/24/23 8:05 AM, Peter Krempa wrote: As I've promised a long time ago I gave your patches some testing in regards of cooperation with blockjobs and snapshots. Since the new version of the patches was not yet posted on the list I'm replying here including my observations from testing patches f

Re: [PATCH 0/2] libvirt-guests: small improvments

2023-08-02 Thread Jim Fehlig
On 8/1/23 08:11, Martin Kletzander wrote: On Mon, Jul 31, 2023 at 05:06:44PM -0600, Jim Fehlig wrote: The first patch is trivial. I suppose the second is debatable. If I build libvirt with -Dremote_default_mode=legacy but deploy modular daemons, /run/libvirt/libvirt-sock is provided by virtproxy

Re: [PATCH] Fix some typos in documentation and comments

2023-08-02 Thread Michael Tokarev
30.07.2023 21:03, Stefan Weil via wrote: Signed-off-by: Stefan Weil --- This patch was triggered by a spelling check for the generated QEMU documentation using codespell. It does not try to fix all typos which still exist in the QEMU code, but has a focus on those required to fix the documentat

Re: [libvirt PATCH] src: fix max file limits in systemd services

2023-08-02 Thread Martin Kletzander
On Wed, Aug 02, 2023 at 10:05:38AM +0100, Daniel P. Berrangé wrote: This fixes commit 38abf9c34dc481b0dc923bdab446ee623bdc5ab6 Author: Daniel P. Berrangé Date: Wed Jun 21 13:22:40 2023 +0100 src: set max open file limit to match systemd >= 240 defaults Pity we can't drop it because

Re: [libvirt PATCH v2 19/24] qemu_snapshot: remove revertdisks when creating new snapshot

2023-08-02 Thread Peter Krempa
On Tue, Jun 27, 2023 at 17:07:22 +0200, Pavel Hrdina wrote: > When user creates a new snapshot after reverting to non-leaf snapshot we > no longer need to store the temporary overlays as they will be part of > the VM XMLs stored in the newly created snapshot. > > Signed-off-by: Pavel Hrdina > ---

Re: [PATCH] daemon: Treat logging of VIR_ERR_MULTIPLE_INTERFACES same as VIR_ERR_NO_INTERFACE

2023-08-02 Thread Martin Kletzander
On Wed, Aug 02, 2023 at 10:11:24AM +0200, Peter Krempa wrote: When a query for an interface via virInterfaceLookupByMACString finds multiple interfaces an error is returned. Treat such error with the same 'debug' priority as we treat when the interface was not found to avoid spamming logs with su

Re: [libvirt PATCH v2 17/24] qemu_snapshot: add support to delete external snapshot without block commit

2023-08-02 Thread Peter Krempa
On Tue, Jun 27, 2023 at 17:07:20 +0200, Pavel Hrdina wrote: > When block commit is not needed we can just simply unlink the > disk files. > > Signed-off-by: Pavel Hrdina > --- > src/qemu/qemu_snapshot.c | 56 ++-- > 1 file changed, 36 insertions(+), 20 deletio

Re: [PATCH 0/3] lxc: Fix reporting of startup errors with debug logging enabled

2023-08-02 Thread Martin Kletzander
On Wed, Aug 02, 2023 at 09:29:39AM +0200, Peter Krempa wrote: Few issues with propagating error to the user when debug logging is enabled, Peter Krempa (3): virLXCControllerSetupUsernsMap: Modify debug logging for clean startup errors virLXCProcessReadLogOutputData: Refill buffer after filt

Re: [PATCH 3/5] conf: add support for max_unmap_size

2023-08-02 Thread Peter Krempa
On Wed, Aug 02, 2023 at 13:47:16 +0200, Kristina Hanicova wrote: > Signed-off-by: Kristina Hanicova > --- > docs/formatdomain.rst | 10 ++ > src/conf/domain_conf.c| 12 +++- > src/conf/domain_conf.h| 1 + > src/conf/domain_validate.c|

Re: [PATCH 4/5] qemu: Introduce QEMU_CAPS_SCSI_DISK_MAX_UNMAP_SIZE capability

2023-08-02 Thread Peter Krempa
On Wed, Aug 02, 2023 at 13:47:17 +0200, Kristina Hanicova wrote: > Signed-off-by: Kristina Hanicova > --- This capability is not actually used after this series. Additionally all qemu versions seem to support it.

Re: [PATCH 2/5] qemu: add support for discard_granularity

2023-08-02 Thread Peter Krempa
On Wed, Aug 02, 2023 at 13:47:15 +0200, Kristina Hanicova wrote: > Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1849570 > > Signed-off-by: Kristina Hanicova > --- > src/qemu/qemu_command.c| 2 ++ > src/vz/vz_utils.c |

[PATCH 4/5] qemu: Introduce QEMU_CAPS_SCSI_DISK_MAX_UNMAP_SIZE capability

2023-08-02 Thread Kristina Hanicova
Signed-off-by: Kristina Hanicova --- src/qemu/qemu_capabilities.c | 2 ++ src/qemu/qemu_capabilities.h | 1 + tests/qemucapabilitiesdata/caps_4.2.0_aarch64.xml | 1 + tests/qemucapabilitiesdata/caps_4.2.0_ppc64.xml | 1 + tests/qemucapab

[PATCH 1/5] conf: add support for discard_granularity

2023-08-02 Thread Kristina Hanicova
Signed-off-by: Kristina Hanicova --- docs/formatdomain.rst | 6 +- src/conf/domain_conf.c| 12 +++- src/conf/domain_conf.h| 1 + src/conf/domain_validate.c| 3 ++- src/conf/schemas/domaincommon.rng | 5 + src/qemu/qemu_domain.c

[PATCH 2/5] qemu: add support for discard_granularity

2023-08-02 Thread Kristina Hanicova
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1849570 Signed-off-by: Kristina Hanicova --- src/qemu/qemu_command.c| 2 ++ src/vz/vz_utils.c | 3 ++- tests/qemuxml2argvdata/disk-blockio.x86_64-latest.args | 2 +- tests/q

[PATCH 3/5] conf: add support for max_unmap_size

2023-08-02 Thread Kristina Hanicova
Signed-off-by: Kristina Hanicova --- docs/formatdomain.rst | 10 ++ src/conf/domain_conf.c| 12 +++- src/conf/domain_conf.h| 1 + src/conf/domain_validate.c| 3 ++- src/conf/schemas/domaincommon.rng | 5 + 5 files changed, 29 inse

[PATCH 5/5] qemu: add support for max_unmap_size

2023-08-02 Thread Kristina Hanicova
Signed-off-by: Kristina Hanicova --- src/qemu/qemu_command.c | 2 + src/qemu/qemu_domain.c| 2 + src/vz/vz_utils.c | 3 +- ...csi-disk-max_unmap_size.x86_64-latest.args | 37 +++ .../disk-scsi-disk-max_un

[PATCH 0/5] introduce support for block device properties

2023-08-02 Thread Kristina Hanicova
I noticed this on the list after the 1849570 bug on discard granularity: https://listman.redhat.com/archives/libvir-list/2020-June/203862.html so I decided to add maximum unmap size as well. The series is heavily based on Lin's patches and I would be glad if there is any way to add Lin into commit

Re: [PATCH 0/2] qemu_passt: Stop pre-creating passt logfile

2023-08-02 Thread Martin Kletzander
On Tue, Aug 01, 2023 at 04:33:41PM +0200, Michal Privoznik wrote: See reasoning in 2/2. Michal Prívozník (2): Revert "qemu_passt: Actually use @logfd" Revert "qemu_passt: Precreate passt logfile" Reviewed-by: Martin Kletzander src/qemu/qemu_passt.c | 40 +-

[libvirt PATCH] src: fix max file limits in systemd services

2023-08-02 Thread Daniel P . Berrangé
This fixes commit 38abf9c34dc481b0dc923bdab446ee623bdc5ab6 Author: Daniel P. Berrangé Date: Wed Jun 21 13:22:40 2023 +0100 src: set max open file limit to match systemd >= 240 defaults The bug referenced in that commit had suggested to set LimitNOFile=512000:1024 on the basis th

Re: [PATCH 1/3] qemu: Reflect MAC address change in live domain XML

2023-08-02 Thread Martin Kletzander
On Wed, Aug 02, 2023 at 09:15:43AM +0200, Michal Prívozník wrote: On 7/26/23 16:45, Martin Kletzander wrote: On Wed, Jun 28, 2023 at 12:53:35PM +0200, Michal Privoznik wrote: If a guest changes MAC address on its vNIC, then QEMU emits NIC_RX_FILTER_CHANGED event (the event is emitted in other c

Re: [libvirt PATCH 6/9] src: set max open file limit to match systemd >= 240 defaults

2023-08-02 Thread Daniel P . Berrangé
On Wed, Aug 02, 2023 at 10:49:55AM +0200, Olaf Hering wrote: > Wed, 21 Jun 2023 14:32:29 +0100 Daniel P. Berrangé : > > > -LimitNOFILE=8192 > > +LimitNOFile=512000:1024 > > Did someone really rename that knob in upstream systemd? > My copy of systemd.directives(7) still lists the uppercase varian

Re: [libvirt PATCH 6/9] src: set max open file limit to match systemd >= 240 defaults

2023-08-02 Thread Olaf Hering
Wed, 21 Jun 2023 14:32:29 +0100 Daniel P. Berrangé : > -LimitNOFILE=8192 > +LimitNOFile=512000:1024 Did someone really rename that knob in upstream systemd? My copy of systemd.directives(7) still lists the uppercase variant. As a result this change means the knob is now not recognized anymore.

[PATCH] daemon: Treat logging of VIR_ERR_MULTIPLE_INTERFACES same as VIR_ERR_NO_INTERFACE

2023-08-02 Thread Peter Krempa
When a query for an interface via virInterfaceLookupByMACString finds multiple interfaces an error is returned. Treat such error with the same 'debug' priority as we treat when the interface was not found to avoid spamming logs with such configurations. Closes: https://gitlab.com/libvirt/libvirt/-

[PATCH 1/3] virLXCControllerSetupUsernsMap: Modify debug logging for clean startup errors

2023-08-02 Thread Peter Krempa
Avoid logging multiline debug logs so that the function which attempts to extract a non-debug log error message can work properly. Signed-off-by: Peter Krempa --- src/lxc/lxc_controller.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lxc/lxc_controller.c b/src/l

[PATCH 2/3] virLXCProcessReadLogOutputData: Refill buffer after filtering out noise

2023-08-02 Thread Peter Krempa
The caller passes in a 1k buffer, which when debug logging is in use is easily filled with debug messages only. Thus after the first pass which is common if the controller process already terminated the buffer will not contain the real error, but rather a truncated debug message, which will result

[PATCH 3/3] virLXCProcessReportStartupLogError: Strip trailing newline from error

2023-08-02 Thread Peter Krempa
Since the error message originates from a log file it contains a trailing newline. Strip it as all error handling adds it's own newline. Signed-off-by: Peter Krempa --- src/lxc/lxc_process.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/lxc/lxc_process.c b/src/lxc/lxc_process.c i

[PATCH 0/3] lxc: Fix reporting of startup errors with debug logging enabled

2023-08-02 Thread Peter Krempa
Few issues with propagating error to the user when debug logging is enabled, Peter Krempa (3): virLXCControllerSetupUsernsMap: Modify debug logging for clean startup errors virLXCProcessReadLogOutputData: Refill buffer after filtering out noise virLXCProcessReportStartupLogError: Str

Re: [PATCH 1/3] qemu: Reflect MAC address change in live domain XML

2023-08-02 Thread Michal Prívozník
On 7/26/23 16:45, Martin Kletzander wrote: > On Wed, Jun 28, 2023 at 12:53:35PM +0200, Michal Privoznik wrote: >> If a guest changes MAC address on its vNIC, then QEMU emits >> NIC_RX_FILTER_CHANGED event (the event is emitted in other cases >> too, but that's not important right now). Now, domain

Re: [PATCH 2/3] Introduce NIC_MAC_CHANGE event

2023-08-02 Thread Michal Prívozník
On 7/26/23 16:47, Martin Kletzander wrote: > On Wed, Jun 28, 2023 at 12:53:36PM +0200, Michal Privoznik wrote: >> The aim off this event is to notify management application that >> guest changed MAC address on one of its vNICs so the app can >> update its internal records, e.g. for finding match be