[RFC PATCH v2 7/8] docs: Add documentation for the TPM backend profile node

2024-09-26 Thread Stefan Berger
Add documentation for the TPM backend profile node and point the reader to further documentation about TPM profiles available in the swtpm and TPMLIB_SetProfile man pages. Signed-off-by: Stefan Berger --- docs/formatdomain.rst | 30 ++ 1 file changed, 30 insertions(+)

[RFC PATCH v2 2/8] qemu: Pass virQEMUDriverConfig rather than some of its fields

2024-09-26 Thread Stefan Berger
Signed-off-by: Stefan Berger --- src/qemu/qemu_tpm.c | 47 + 1 file changed, 18 insertions(+), 29 deletions(-) diff --git a/src/qemu/qemu_tpm.c b/src/qemu/qemu_tpm.c index 592fcc62fa..e8e7e8b5c1 100644 --- a/src/qemu/qemu_tpm.c +++ b/src/qemu/qemu_tpm.

Re: [RFC PATCH v2 7/8] docs: Add documentation for the TPM backend profile node

2024-09-26 Thread Stefan Berger
On 9/26/24 4:18 PM, Daniel P. Berrangé wrote: On Thu, Sep 26, 2024 at 03:32:07PM -0400, Stefan Berger wrote: Add documentation for the TPM backend profile node and point the reader to further documentation about TPM profiles available in the swtpm and TPMLIB_SetProfile man pages. Signed-off-

Re: [RFC PATCH v2 7/8] docs: Add documentation for the TPM backend profile node

2024-09-26 Thread Daniel P . Berrangé
On Thu, Sep 26, 2024 at 03:32:07PM -0400, Stefan Berger wrote: > Add documentation for the TPM backend profile node and point the reader to > further documentation about TPM profiles available in the swtpm and > TPMLIB_SetProfile man pages. > > Signed-off-by: Stefan Berger > --- > docs/formatdom

[RFC PATCH v2 8/8] qemu: Extend swtpm_setup command line to set a profile by its name

2024-09-26 Thread Stefan Berger
Runs swtpm_setup with the --profile-name option if the user provided the name of a profile. swtpm_setup will try to load the profile from directories with local profiles and distro profiles and if no profile by this name with appended '.json' suffix could be found there, it will fall back to try to

[RFC PATCH v2 6/8] conf: Add support for profile parameter on TPM emulator in domain XML

2024-09-26 Thread Stefan Berger
Extend the parser and XML builder with support for the profile parameter and its remove_disabled attribute. Signed-off-by: Stefan Berger --- src/conf/domain_conf.c | 36 src/conf/domain_conf.h | 2 ++ src/conf/domain_validate.c | 7 +++ 3 files

[RFC PATCH v2 5/8] schema: Extend schema for TPM emulator profile node

2024-09-26 Thread Stefan Berger
Extend the schema for the TPM emulator profile node. Require that the profile the user provides is describe in a name attribute. An optional remove_disabled attribute is also supported for swtpm to automatically remove algorithms from the 'custom' profile if they are disabled by FIPS mode on the ho

[RFC PATCH v2 4/8] conf: Define enum virDomainTPMProfileRemoveDisabled

2024-09-26 Thread Stefan Berger
Signed-off-by: Stefan Berger --- src/conf/domain_conf.c | 7 +++ src/conf/domain_conf.h | 9 + 2 files changed, 16 insertions(+) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 7f6a91c427..1c8fffdfa5 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c

[RFC PATCH v2 3/8] util: Add parsing support for swtpm_setup's cmdarg-profile capability

2024-09-26 Thread Stefan Berger
Add support for parsing swtpm_setup 'cmdarg-profile' capability (since v0.10). Signed-off-by: Stefan Berger --- src/util/virtpm.c | 1 + src/util/virtpm.h | 1 + tests/testutilsqemu.c | 1 + 3 files changed, 3 insertions(+) diff --git a/src/util/virtpm.c b/src/util/virtpm.c index 81fd61

[RFC PATCH v2 1/8] conf: Move TPM emulator parameters into own struct

2024-09-26 Thread Stefan Berger
To avoid passing TPM emulator parameters around individually, move them into a structure and pass around the structure. Signed-off-by: Stefan Berger --- src/conf/domain_conf.h | 24 -- src/conf/virconftypes.h | 2 ++ src/qemu/qemu_tpm.c | 45

[RFC PATCH v2 0/8] swtpm: Add support for profiles

2024-09-26 Thread Stefan Berger
Upcoming libtpms v0.10 and swtpm v0.10 will have TPM profile support that allows to restrict a TPM's provided set of crypto algorithms and commands and through which backwards compatibility and migration from newer versions of libtpms to older ones (up to libtpms v0.9) is supported. For the latter

Re: [PATCH 5/6] ch: events: facilitate lifecycle events handling

2024-09-26 Thread Praveen K Paladugu
On 9/19/2024 8:02 AM, Purna Pavan Chandra Aekkaladevi wrote: Implement `virCHProcessEvent` that maps event string to corresponding event type and take appropriate actions. As part of this, handle the shutdown event by correctly updating the domain state. this change also facilitates the handli

Re: [PATCH v2] ch: Enable callbacks for ch domain events

2024-09-26 Thread Praveen K Paladugu
bubbling up this patch for review. On 9/10/2024 2:22 PM, Praveen K Paladugu wrote: From: Praveen K Paladugu Enable callbacks for define, undefine, started, booted, stopped, destroyed events of ch guests. Signed-off-by: Praveen K Paladugu --- src/ch/ch_conf.h | 4 +++ src/ch/ch_driver.c

Re: [PATCH 4/6] ch: events: Read and parse cloud-hypervisor events

2024-09-26 Thread Praveen K Paladugu
On 9/19/2024 8:02 AM, Purna Pavan Chandra Aekkaladevi wrote: Implement `chReadProcessEvents` and `chProcessEvents` to read events from event monitor FIFO file and parse them accordingly. Signed-off-by: Purna Pavan Chandra Aekkaladevi Co-authored-by: Vineeth Pillai --- src/ch/ch_events.c

Re: [PATCH 3/6] ch: start a new thread for handling ch events

2024-09-26 Thread Praveen K Paladugu
On 9/24/2024 8:22 AM, Purna Pavan Chandra Aekkaladevi wrote: On Mon, Sep 23, 2024 at 04:29:35PM -0500, Praveen K Paladugu wrote: On 9/19/2024 8:02 AM, Purna Pavan Chandra Aekkaladevi wrote: Use a FIFO(named pipe) for --event-monitor option in CH. Introduce a new thread, `virCHEventHandlerL

Re: [PATCH 3/6] ch: start a new thread for handling ch events

2024-09-26 Thread Praveen K Paladugu
On 9/19/2024 8:02 AM, Purna Pavan Chandra Aekkaladevi wrote: Use a FIFO(named pipe) for --event-monitor option in CH. Introduce a new thread, `virCHEventHandlerLoop`, to continuously monitor and handle events from cloud-hypervisor. Signed-off-by: Purna Pavan Chandra Aekkaladevi Co-authored-

Re: [PATCH 0/2] libxl_conf: Fix crashes in libxl config generation

2024-09-26 Thread Rayhan Faizel
ping

Re: [PATCH 00/10] maintainer updates (testing, gdbstub)

2024-09-26 Thread Pierrick Bouvier
On 9/25/24 10:11, Alex Bennée wrote: Welcome to the first post KVM forum series. We have: - fix from Ilya for microblaze atomics - Pierrick's tsan updates - I've added my testing and gdbstub trees to MAINTAINERS - enabled a very basic aarch64_be-linux-user test - fixed the missing

Re: [PATCH] docs: Mark "gluster" support in QEMU as deprecated

2024-09-26 Thread Niels de Vos
On Tue, 2024-09-24 at 15:24 +0200, Thomas Huth wrote: > According to https://marc.info/?l=fedora-devel-list&m=171934833215726 > the GlusterFS development effectively ended. Thus mark it as > deprecated > in QEMU, so we can remove it in a future release if the project does > not gain momentum again.