Re: [libvirt PATCH 0/6] cleanup and fixes of the mapped-ram feature

2025-04-04 Thread Jim Fehlig via Devel
On 3/21/25 04:21, Martin Kletzander wrote: On Fri, Mar 21, 2025 at 08:29:30AM +, Daniel P. Berrangé via Devel wrote: On Thu, Mar 20, 2025 at 09:36:15PM -0600, Jim Fehlig via Devel wrote: On 3/20/25 17:07, Pavel Hrdina via Devel wrote: > Pavel Hrdina (6): >    tools: remove --parallel from v

[PATCH 6/8] vbox: Move parts of vboxSnapshotRedefine() into a separate function

2025-04-04 Thread Michal Privoznik via Devel
From: Michal Privoznik There's too much happening inside of vboxSnapshotRedefine(). Not only it makes the function hard to read, but it also increases stack size of the function. Move one part into a separate function: vboxSnapshotAddRWDisks() Signed-off-by: Michal Privoznik --- src/vbox/vbox_

Re: [PATCH 1/3] ch: virCHMonitorNew() run new CH monitor daemonized

2025-04-04 Thread Ján Tomko via Devel
On a Wednesday in 2025, Kirill Shchetiniuk wrote: Thanks Jan, Didn’t noticed the issue with the white symbols when submitted a patch, next time will keep it in mind and be careful. Btw, do we have some tools to check and warn such possible issues? For the extra/removed lines, git diff/git s

Re: [PATCH 0/8] qemu: Improve guest agent corner case errors

2025-04-04 Thread Ján Tomko via Devel
On a Thursday in 2025, Peter Krempa via Devel wrote: This series introduces two new error codes aimed to help management applications to better in deciding when corner cases of guest agent interaction are encountered. Peter Krempa (8): lib: error: Introduce 'VIR_ERR_AGENT_COMMAND_TIMEOUT' qemu

Re: [PATCH rfcv4 06/13] qemu: Add command line and validation for TDX type

2025-04-04 Thread Jim Fehlig via Devel
On 5/24/24 00:21, Zhenzhong Duan wrote: QEMU will provides 'tdx-guest' object which is used to launch encrypted VMs on Intel platform using TDX feature. Command line looks like: $QEMU ... \ -object '{"qom-type":"tdx-guest","id":"lsec0","debug":true,"sept-ve-disable":false,"mrconfigid":"xxx",

[libvirt PATCH 5/7] Remove src/qemu/

2025-04-04 Thread Ján Tomko via Devel
From: Ján Tomko Signed-off-by: Ján Tomko --- [Heavily shortened] src/qemu/libvirt-qemu.sysusers.conf | 4 - src/qemu/libvirt_qemu_probes.d |22 - src/qemu/libvirtd_qemu.aug | 205 - src/qemu/meson.build | 244 - src/qemu/postcopy-migration.sysctl

[PATCH 4/6] qemu: Always revert internal snapshots via QMP rather than '-loadvm'

2025-04-04 Thread Peter Krempa via Devel
From: Peter Krempa As all supported qemu versions now support the QMP internal snapshot commands (QEMU_CAPS_SNAPSHOT_INTERNAL_QMP is always present) we can remove the code for loading snapshots during startup via '-loadvm'. Signed-off-by: Peter Krempa --- src/qemu/qemu_command.c | 6 -- sr

[PATCH 1/6] schema: Introduce acpi-generic-initiator definition

2025-04-04 Thread Andrea Righi via Devel
Introduce the definition of a new acpi-generic-initiator object that can be used to link a PCI device with multiple NUMA nodes. Link: https://mail.gnu.org/archive/html/qemu-arm/2024-03/msg00358.html Signed-off-by: Andrea Righi --- src/conf/domain_conf.c| 26 +

Re: [PATCH v3 00/20] Add qemu RDP server support

2025-04-04 Thread Martin Kletzander via Devel
On Tue, Mar 18, 2025 at 05:57:18PM +0400, Marc-André Lureau wrote: Hi On Tue, Mar 18, 2025 at 5:48 PM Martin Kletzander wrote: On Sun, Mar 16, 2025 at 12:18:21PM +0400, marcandre.lur...@redhat.com wrote: >From: Marc-André Lureau > >Hi, > >This patch series offers an out-of-process Remote Des

[PATCH] virt-aa-helper: delete dynamic files

2025-04-04 Thread Alessandro
We attempted multiple ways to clean up dynamic files; however, we must preserve user overrides, which requires keeping the file /etc/apparmor.d/libvirt/libvirt-uuid This commit proposes to move user overrides into /etc/apparmor.d/libvirt/libvirt-uuid.local and include it, if present, unconditional

[PATCH v2 2/2] qapi/block-core: derpecate some block-job- APIs

2025-04-04 Thread Vladimir Sementsov-Ogievskiy
For change, pause, resume, complete, dismiss and finalize actions corresponding job- and block-job commands are almost equal. The difference is in find_block_job_locked() vs find_job_locked() functions. What's different? 1. find_block_job_locked() do check, is found job a block-job. This OK whe

[PATCH v2 1/2] qapi: synchronize jobs and block-jobs documentation

2025-04-04 Thread Vladimir Sementsov-Ogievskiy
Actualize documentation and synchronize it for commands which actually call the same functions internally. Signed-off-by: Vladimir Sementsov-Ogievskiy --- qapi/block-core.json | 59 +--- qapi/job.json| 29 -- 2 files changed, 61

[PATCH v2 0/2] derpecate some block-job- APIs

2025-04-04 Thread Vladimir Sementsov-Ogievskiy
v2: Update documentation: add patch 01 v1 was: [PATCH] [for-10.1] qapi/block-core: derpecate some block-job- APIs Supersedes: <20250401155730.103718-1-vsement...@yandex-team.ru> Vladimir Sementsov-Ogievskiy (2): qapi: synchronize jobs and block-jobs documentation qapi/block-core: derpecate so

Re: [PATCH 1/2] qemu: Fix CLang build

2025-04-04 Thread Pavel Hrdina via Devel
On Thu, Mar 20, 2025 at 04:16:59PM -0600, Jim Fehlig via Devel wrote: > Commit f0169f4d caused a build failure with CLang due to potentially > uninitialized variable > > ../src/qemu/qemu_migration_params.c:825:17: error: variable 'nchannels' > is used uninitialized whenever '&&' condition is false

[PATCH 2/4] ch: add transient definition save and load

2025-04-04 Thread Kirill Shchetiniuk via Devel
When domain was started its transient definition was not saved on disk, this led to the situation when CH driver dies and starts again, all transient definitions of currently running domains had been lost. Newly all transient definitions of running domains are saved on disk and can be loaded durin

Re: Questions regarding potential resize implementation in libvirt

2025-04-04 Thread Daniel P . Berrangé via Devel
On Thu, Mar 20, 2025 at 12:51:35PM +0100, Maximilian Immanuel Brandtner wrote: > On Thu, 2025-03-20 at 10:28 +, Daniel P. Berrangé wrote: > > On Thu, Mar 20, 2025 at 11:09:41AM +0100, Maximilian Immanuel > > Brandtner wrote: > > > On Thu, 2025-03-20 at 09:58 +, Daniel P. Berrangé wrote: > >

Re: [PATCH 3/3] qemu: Emit NIC_MAC_CHANGE event

2025-04-04 Thread Michal Prívozník via Devel
On 3/17/25 14:57, Martin Kletzander wrote: > On Mon, Mar 17, 2025 at 12:28:50PM +0100, Michal Privoznik via Devel wrote: >> So far, we only process NIC_RX_FILTER_CHANGED event when the >> corresponding device has 'trustGuestRxFilters' enabled. And the >> event is emitted only for virtio model. IOW,

[libvirt PATCH 3/7] Deprecate the QEMU driver

2025-04-04 Thread Ján Tomko via Devel
From: Ján Tomko For mutliple reasons, the use of the QEMU driver is no longer recommended: 1. It is still incomplete Git statistics from '3 years ago' speak for themselves: src/qemu: 42505 insertions(+), 31154 deletions(-) Compared to other drivers that are mostly completed and do not re

Re: [PATCH 6/8] backup: Add support for passing server socket file descriptor to backup NBD server

2025-04-04 Thread Ján Tomko via Devel
On a Friday in 2025, Peter Krempa via Devel wrote: From: Peter Krempa In deployments where libvirt is containerized together with the VM it may be hard for the management application to access listening sockets inside the container from the outside. This patch implements "transport='fd'" for t

Re: [PATCH v2 1/1] NEWS: qemu: support block disk along with throttle filters

2025-04-04 Thread Michal Prívozník via Devel
On 3/25/25 11:57, Harikumar Rajkumar wrote: > Signed-off-by: Harikumar Rajkumar > --- > NEWS.rst | 8 > 1 file changed, 8 insertions(+) Reviewed-by: Michal Privoznik and merged. Michal > > diff --git a/NEWS.rst b/NEWS.rst > index 18d45656b8..e33308693a 100644 > --- a/NEWS.rst >

Re: [PATCH v8 55/55] docs: Add TDX documentation

2025-04-04 Thread Jiří Denemark via Devel
On Wed, Apr 02, 2025 at 11:50:26 +0100, Daniel P. Berrangé wrote: > CC libvirt / Jiri, for confirmation about whether the CPUID restrictions > listed below will have any possible impact on libvirt CPUID handling... .. > > +Feature check > > +~ > > + > > +QEMU checks if the final (CPU) f

Re: [PATCH V4 10/18] qemu: Move creation of qemuProcessIncomingDef struct

2025-04-04 Thread Daniel P . Berrangé via Devel
On Wed, Mar 05, 2025 at 03:48:19PM -0700, Jim Fehlig via Devel wrote: > qemuProcessStartWithMemoryState() is the only caller of qemuProcessStart() > that uses the qemuProcessIncomingDef struct. Move creation of the struct > to qemuProcessStartWithMemoryState(). > > Signed-off-by: Jim Fehlig > ---

Re: [PATCH 0/2] docs: Improve ability to select proper API/XML section

2025-04-04 Thread Peter Krempa via Devel
On Fri, Apr 04, 2025 at 14:41:13 +0200, Ján Tomko wrote: > On a Wednesday in 2025, Peter Krempa via Devel wrote: > > Browse the result at: > > > > https://pipo.sk.gitlab.io/-/libvirt/-/jobs/9603174377/artifacts/website/docs.html > > > > (The security warning happens as my username on gitlab conta

[PATCH v1 18/18] docs: domain: Add documentation for Intel TDX guest

2025-04-04 Thread Zhenzhong Duan
Signed-off-by: Zhenzhong Duan --- docs/formatdomain.rst | 63 +++ 1 file changed, 63 insertions(+) diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst index 41fccfeb84..ff8b1ba4cb 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -94

[PATCH 0/4] ch: timeout fix (GitLab issue #743)

2025-04-04 Thread Kirill Shchetiniuk via Devel
This patch series is supposed to fix the following reported issue on GitLab: virtchd times out even with an active guest running https://gitlab.com/libvirt/libvirt/-/issues/743 During further investigation, we found that there are in fact two bugs: 1. The CH driver does not store any domains' XM

[PATCH 1/3] ch: Use CH_DOMAIN_PRIVATE() more

2025-04-04 Thread Michal Privoznik via Devel
From: Michal Privoznik There are two instances where vm->privateData is typecasted only so that it can be dereferenced further. Well, that's exactly what CH_DOMAIN_PRIVATE() macro is for. Use that instead. Signed-off-by: Michal Privoznik --- src/ch/ch_events.c | 2 +- src/ch/ch_process.c | 4

Re: [PATCH] [for-10.1] qapi/block-core: derpecate some block-job- APIs

2025-04-04 Thread Vladimir Sementsov-Ogievskiy
On 04.04.25 17:13, Markus Armbruster wrote: Vladimir Sementsov-Ogievskiy writes: On 04.04.25 09:20, Markus Armbruster wrote: Vladimir Sementsov-Ogievskiy writes: [...] + +``block-job-finalize`` (since 10.1) +'' + +Use ``job-finalize`` instead. + block-jo

[PATCH 0/2] docs: Improve ability to select proper API/XML section

2025-04-04 Thread Peter Krempa via Devel
Browse the result at: https://pipo.sk.gitlab.io/-/libvirt/-/jobs/9603174377/artifacts/website/docs.html (The security warning happens as my username on gitlab contains a dot.) Peter Krempa (2): docs: Re-order XML schema after API documentation on 'docs' page docs: Render API and XML sections

[PATCH 1/8] remote_driver: Move URI arg extraction into a separate function

2025-04-04 Thread Michal Privoznik via Devel
From: Michal Privoznik There's a problem with glib: what we might consider functions are in fact macros and to make things worse - they do declare local variables. For instance here's the declaration of g_clear_pointer() macro: #define g_clear_pointer(pp, destroy) \ G_STMT_

Re: [PATCH 8/8] meson: Drop workaround for -Wframe-larger-than and clang

2025-04-04 Thread Roman Bogorodskiy
Michal Privoznik via Devel wrote: > From: Michal Privoznik > > After previous cleanups, all functions have their stack smaller > than 2048 bytes and thus the workaround is no longer needed. Thanks, now that works for me too. Reviewed-by: Roman Bogorodskiy > Signed-off-by: Michal Privoznik

Re: [PATCH] [for-10.1] qapi/block-core: derpecate some block-job- APIs

2025-04-04 Thread Markus Armbruster via Devel
Vladimir Sementsov-Ogievskiy writes: > On 04.04.25 09:20, Markus Armbruster wrote: >> Vladimir Sementsov-Ogievskiy writes: [...] >>> + >>> +``block-job-finalize`` (since 10.1) >>> +'' >>> + >>> +Use ``job-finalize`` instead. >>> + >> >> block-job-finalize's doc

[PATCH 3/8] doRemoteOpen: Drop needless typecast of @transport

2025-04-04 Thread Michal Privoznik via Devel
From: Michal Privoznik The @transport variable is already pass into the function with proper type. There's no need to typecast it to its very same type inside the function. Signed-off-by: Michal Privoznik --- src/remote/remote_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

Re: [PATCH 0/8] Decrease stack size below 2048 bytes

2025-04-04 Thread Ján Tomko via Devel
On a Friday in 2025, Michal Privoznik via Devel wrote: Inspired by Roman's patch: https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/FNAFORLGXFBL7KPI7RTBWV2ERHX57RIR/ There are two functions where clang produces stack greater than 2048 bytes (our current limit - see @stack_f

[PATCH 7/8] vbox: Move parts of vboxSnapshotRedefine() into a separate function

2025-04-04 Thread Michal Privoznik via Devel
From: Michal Privoznik There's too much happening inside of vboxSnapshotRedefine(). Not only it makes the function hard to read, but it also increases stack size of the function. Move one part into a separate function: vboxSnapshotCreateFakeDiffStorage() Signed-off-by: Michal Privoznik --- src

Re: [PATCH 0/3] cpu_map: Install Ampere-1 ARM CPU models

2025-04-04 Thread Daniel P . Berrangé via Devel
On Fri, Apr 04, 2025 at 02:49:57PM +0200, Jiri Denemark via Devel wrote: > BTW, the added test will not actually detect similar issues in the > future (I'm thinking about such test, though), but it will help with > other issues with the ARM CPU map as it hasn't been covered at all. A test that par

How to find the actually schedulable CPUs in a Linux + cgroups setup?

2025-04-04 Thread Biser Milanov via Devel
Hi, Right now, looking at the QEMU driver, libvirt supports listing all of the present CPUs on the hypervisor via /sys/devices/system/cpu/present. For systems where cgroups with exclusive CPU bits are configured, however, there might be CPUs that are not availabe to libvirt. This leads to situatio

Re: [PATCH] build: clang stack frame size handling improvement

2025-04-04 Thread Michal Prívozník via Devel
On 4/4/25 11:02, Roman Bogorodskiy wrote: > Michal Prívozník wrote: > >> > > IIRC, the first time I've encountered this issue was actually a test > file. So I guess it would still make sense to keep the workaround for > clang for now, dropping the optimization condition? Maybe, but I haven't

[PATCH 8/8] meson: Drop workaround for -Wframe-larger-than and clang

2025-04-04 Thread Michal Privoznik via Devel
From: Michal Privoznik After previous cleanups, all functions have their stack smaller than 2048 bytes and thus the workaround is no longer needed. Signed-off-by: Michal Privoznik --- meson.build | 5 - 1 file changed, 5 deletions(-) diff --git a/meson.build b/meson.build index bf4a245dd3

[PATCH 5/8] vbox: Move parts of vboxSnapshotRedefine() into a separate function

2025-04-04 Thread Michal Privoznik via Devel
From: Michal Privoznik There's too much happening inside of vboxSnapshotRedefine(). Not only it makes the function hard to read, but it also increases stack size of the function. Move one part into a separate function: vboxSnapshotAddDisksToMediaRegistry() Signed-off-by: Michal Privoznik --- s

[PATCH 4/8] vbox: Move parts of vboxSnapshotRedefine() into a separate function

2025-04-04 Thread Michal Privoznik via Devel
From: Michal Privoznik There's too much happening inside of vboxSnapshotRedefine(). Not only it makes the function hard to read, but it also increases stack size of the function. Move one part into a separate function: vboxSnapshotReplaceRWDisks() Signed-off-by: Michal Privoznik --- src/vbox/v

[PATCH 2/8] doRemoteOpen: Move RPC talk to a separate function

2025-04-04 Thread Michal Privoznik via Devel
From: Michal Privoznik When opening a connection, the client does some RPC talk (most notably REMOTE_PROC_CONNECT_OPEN, and in some cases REMOTE_PROC_CONNECT_GET_URI even). Now, calling RPC means that local variables must be created. Having them in doRemoteOpen() increases its stack size which g

[PATCH 0/8] Decrease stack size below 2048 bytes

2025-04-04 Thread Michal Privoznik via Devel
Inspired by Roman's patch: https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/FNAFORLGXFBL7KPI7RTBWV2ERHX57RIR/ There are two functions where clang produces stack greater than 2048 bytes (our current limit - see @stack_frame_size in meson.build): 1) doRemoteOpen() 2) vbox

Re: [PATCH 0/3] cpu_map: Install Ampere-1 ARM CPU models

2025-04-04 Thread Jiří Denemark via Devel
On Fri, Apr 04, 2025 at 14:07:39 +0100, Daniel P. Berrangé wrote: > On Fri, Apr 04, 2025 at 02:49:57PM +0200, Jiri Denemark via Devel wrote: > > BTW, the added test will not actually detect similar issues in the > > future (I'm thinking about such test, though), but it will help with > > other issu

Re: [PATCH 0/3] ch: Misc fixes

2025-04-04 Thread Ján Tomko via Devel
On a Thursday in 2025, Michal Privoznik via Devel wrote: *** BLURB HERE *** Michal Prívozník (3): ch: Use CH_DOMAIN_PRIVATE() more ch: Drop pid from monitor ch: Fix printf format strings wrt size_t argument src/ch/ch_events.c | 4 ++-- src/ch/ch_monitor.c | 14 -- src/ch/ch_monit

[PATCH 3/3] NEWS: Document ARM CPU map bug fix

2025-04-04 Thread Jiri Denemark via Devel
From: Jiri Denemark Signed-off-by: Jiri Denemark --- NEWS.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index e2dc4e508b..2608086717 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -28,6 +28,12 @@ v11.3.0 (unreleased) * **Bug fixes** + * cpu_map: Install Ampere

[PATCH 2/3] cpu_map: Install Ampere-1 ARM CPU models

2025-04-04 Thread Jiri Denemark via Devel
From: Jiri Denemark Fixes: 282f38ad3d3960b24aa97d75cae95c8c3d08a218 Fixes: https://gitlab.com/libvirt/libvirt/-/issues/762 Signed-off-by: Jiri Denemark --- src/cpu_map/meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cpu_map/meson.build b/src/cpu_map/meson.build index 9a1c0

[PATCH 1/3] tests: Add a basic CPU test for aarch64

2025-04-04 Thread Jiri Denemark via Devel
From: Jiri Denemark The purpose of this test is to enforce loading and parsing of ARM CPU map so that possible issues are found earlier. Signed-off-by: Jiri Denemark --- tests/cputest.c | 35 + tests/cputestdata/aarch64-guest.xml | 4 2 fil

Re: [PATCH 0/2] docs: Improve ability to select proper API/XML section

2025-04-04 Thread Ján Tomko via Devel
On a Wednesday in 2025, Peter Krempa via Devel wrote: Browse the result at: https://pipo.sk.gitlab.io/-/libvirt/-/jobs/9603174377/artifacts/website/docs.html (The security warning happens as my username on gitlab contains a dot.) Have you considered changing it? Peter Krempa (2): docs: Re

Re: [PATCH] [for-10.1] qapi/block-core: derpecate some block-job- APIs

2025-04-04 Thread Vladimir Sementsov-Ogievskiy
On 04.04.25 09:20, Markus Armbruster wrote: Vladimir Sementsov-Ogievskiy writes: For change, pause, resume, complete, dismiss and finalize actions corresponding job- and block-job commands are almost equal. The difference is in find_block_job_locked() vs find_job_locked() functions. What's dif

Re: [PATCH] build: clang stack frame size handling improvement

2025-04-04 Thread Roman Bogorodskiy
Michal Prívozník wrote: > On 4/4/25 08:46, Michal Prívozník wrote: > > On 4/3/25 18:28, Roman Bogorodskiy wrote: > >> Michal Prívozník wrote: > >> > >>> On 4/2/25 19:24, Roman Bogorodskiy wrote: > The 'plain' optimization type also triggers the clang stack frame size > issues, so inc

Re: [PATCH] build: clang stack frame size handling improvement

2025-04-04 Thread Michal Prívozník via Devel
On 4/3/25 18:28, Roman Bogorodskiy wrote: > Michal Prívozník wrote: > >> On 4/2/25 19:24, Roman Bogorodskiy wrote: >>> The 'plain' optimization type also triggers the clang stack frame size >>> issues, so increase limit for it as well. >>> >>> Signed-off-by: Roman Bogorodskiy >>> --- >>> meson