Re: [PATCH v3 5/9] qemu: Fix matching for stateless/combined firmware

2025-09-20 Thread Jim Fehlig via Devel
-sev-snp.x86_64-latest+amdsev.args delete mode 100644 tests/qemuxmlconfdata/firmware-auto-efi-sev-snp.x86_64-latest+amdsev.err Reviewed-by: Jim Fehlig Regards, Jim

Re: [PATCH 1/1] x86: install modules-load.d file to load msr module

2025-09-20 Thread Jim Fehlig via Devel
On 9/4/25 17:59, Hector Cao wrote: On Fri, Sep 5, 2025 at 1:48 AM Jim Fehlig <mailto:jfeh...@suse.com>> wrote: On 9/4/25 17:00, Hector Cao wrote: > > > On Thu, Sep 4, 2025 at 11:40 PM Jim Fehlig mailto:jfeh...@suse.com> > <mailto:jf

Re: [PATCH v3 7/9] news: Update for firmware selection fixes

2025-09-19 Thread Jim Fehlig via Devel
On 9/10/25 07:57, Andrea Bolognani via Devel wrote: Signed-off-by: Andrea Bolognani --- NEWS.rst | 5 + 1 file changed, 5 insertions(+) Reviewed-by: Jim Fehlig Regards, Jim

Re: [PATCH v3 4/9] tests: Add tests for SEV firmware selection

2025-09-18 Thread Jim Fehlig via Devel
On 9/18/25 02:12, Andrea Bolognani wrote: On Wed, Sep 17, 2025 at 12:57:36PM -0600, Jim Fehlig wrote: On 9/12/25 00:58, Andrea Bolognani wrote: I wasn't planning on pushing this series until we have reached an agreement on the edk2 side for the contents of the descriptors. After reading

Re: [PATCH v3 4/9] tests: Add tests for SEV firmware selection

2025-09-17 Thread Jim Fehlig via Devel
On 9/12/25 00:58, Andrea Bolognani wrote: On Thu, Sep 11, 2025 at 12:54:25PM -0600, Jim Fehlig wrote: On 9/11/25 01:38, Andrea Bolognani wrote: If you want, I can add a comment along the lines of /* This succeeds, but the selected firmware is not the one * we want */ to

Re: [PATCH v3 4/9] tests: Add tests for SEV firmware selection

2025-09-11 Thread Jim Fehlig via Devel
On 9/11/25 01:38, Andrea Bolognani wrote: On Wed, Sep 10, 2025 at 04:39:20PM -0600, Jim Fehlig wrote: On 9/10/25 07:57, Andrea Bolognani via Devel wrote: One of the new test cases demonstrates how firmware autoselection doesn't currently work correctly for domains using SEV-SNP: the descr

Re: [PATCH v3 4/9] tests: Add tests for SEV firmware selection

2025-09-10 Thread Jim Fehlig via Devel
On 9/10/25 07:57, Andrea Bolognani via Devel wrote: One of the new test cases demonstrates how firmware autoselection doesn't currently work correctly for domains using SEV-SNP: the descriptor for a suitable firmware exists, and yet it doesn't get picked up. Another test cases shows that, while

Re: [PATCH v2 00/10] qemu: Fixes to firmware selection

2025-09-08 Thread Jim Fehlig via Devel
mware selection fixes DONOTMERGE update firmware data DONOTMERGE remove SEV features from non-SEV descriptors DONOTMERGE don't explicitly request stateless firmware for SEV Jim Fehlig (1): tests: Improve AMD SEV-related tests NEWS.rst

Re: [PATCH] libvirt-host: VIR_NODE_CPU_STATS_GUEST: clarify "guest" time

2025-09-07 Thread Jim Fehlig via Devel
On 9/5/25 03:36, Claudio Fontana wrote: clarify that "guest" time is time spent running VCPUs specifically. Signed-off-by: Claudio Fontana --- include/libvirt/libvirt-host.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Jim Fehlig Regards, Jim di

Re: [PATCH 1/1] x86: install modules-load.d file to load msr module

2025-09-07 Thread Jim Fehlig via Devel
On 9/4/25 17:00, Hector Cao wrote: On Thu, Sep 4, 2025 at 11:40 PM Jim Fehlig <mailto:jfeh...@suse.com>> wrote: On 9/3/25 06:49, Hector Cao wrote: > On recent Intel CPUs, some of the CPU features (mostly > vmx-* subfeatures) are listed and controlled via the

Re: [PATCH 1/1] x86: install modules-load.d file to load msr module

2025-09-04 Thread Jim Fehlig via Devel
On 9/3/25 06:49, Hector Cao wrote: On recent Intel CPUs, some of the CPU features (mostly vmx-* subfeatures) are listed and controlled via the MSRs (Model Specific Registers) instead of the traditional CPUID instruction method. To be able to read the MSR's values, the kernel module msr has to be

Re: [PATCH v2 08/10] DONOTMERGE update firmware data

2025-08-28 Thread Jim Fehlig via Devel
On 8/25/25 10:19, Andrea Bolognani via Devel wrote: Based on proposed changes in the Fedora edk2 package. AFAICT, the edk2 changes have landed https://src.fedoraproject.org/rpms/edk2/c/5146a0c3e9bf821d045e0cc3600ad715aca14588?branch=rawhide Making it possible to merge this, correct? Regards,

Re: [PATCH v2 06/10] qemu: Fix matching for read/write firmware

2025-08-28 Thread Jim Fehlig via Devel
read-only builds. Signed-off-by: Andrea Bolognani --- src/qemu/qemu_firmware.c | 7 +++ 1 file changed, 7 insertions(+) Reviewed-by: Jim Fehlig Regards, Jim

Re: [PATCH v2 04/10] tests: Add tests for SEV firmware selection

2025-08-27 Thread Jim Fehlig via Devel
On 8/26/25 11:12, Andrea Bolognani wrote: On Tue, Aug 26, 2025 at 10:39:30AM -0600, Jim Fehlig wrote: On 8/26/25 09:30, Andrea Bolognani wrote: On Mon, Aug 25, 2025 at 05:12:57PM -0600, Jim Fehlig wrote: On 8/25/25 10:19, Andrea Bolognani via Devel wrote: One of the new test cases

Re: [PATCH 2/5] tests: Add firmware-auto-efi-sev-snp

2025-08-27 Thread Jim Fehlig via Devel
On 8/27/25 09:33, Andrea Bolognani wrote: On Mon, Aug 25, 2025 at 11:05:02AM -0600, Jim Fehlig wrote: On 8/20/25 09:12, Andrea Bolognani wrote: On Thu, Aug 14, 2025 at 03:07:10PM -0600, Jim Fehlig wrote: On 8/13/25 09:01, Andrea Bolognani wrote: Can you be more specific about the issue

Re: [PATCH v2 04/10] tests: Add tests for SEV firmware selection

2025-08-26 Thread Jim Fehlig via Devel
On 8/26/25 09:30, Andrea Bolognani wrote: On Mon, Aug 25, 2025 at 05:12:57PM -0600, Jim Fehlig wrote: On 8/25/25 10:19, Andrea Bolognani via Devel wrote: One of the new test cases demonstrates how firmware autoselection doesn't currently work correctly for domains using SEV-SNP: the descr

Re: [PATCH v2 08/10] DONOTMERGE update firmware data

2025-08-25 Thread Jim Fehlig via Devel
On 8/25/25 10:19, Andrea Bolognani via Devel wrote: Based on proposed changes in the Fedora edk2 package. The SEV(-ES) and SEV-SNP descriptors are now separate, which allows libvirt to pick the correct firmware loading mechanism (flash vs ROM) automatically. --- .../qemu/firmware/60-edk2-ovmf-

Re: [PATCH v2 05/10] qemu: Fix matching for stateless/combined firmware

2025-08-25 Thread Jim Fehlig via Devel
On 8/25/25 10:19, Andrea Bolognani via Devel wrote: The current code assumes that a stateless firmware has to be explicitly requested by the user, and should never be picked otherwise. This means that, for example, domains configured to use SEV-SNP are forced to explicitly request for the firmwar

Re: [PATCH v2 04/10] tests: Add tests for SEV firmware selection

2025-08-25 Thread Jim Fehlig via Devel
On 8/25/25 10:19, Andrea Bolognani via Devel wrote: One of the new test cases demonstrates how firmware autoselection doesn't currently work correctly for domains using SEV-SNP: the descriptor for a suitable firmware exists, and yet it doesn't get picked up. But the descriptor is incorrect. Aut

Re: [PATCH v2 02/10] tests: Minimize SEV tests

2025-08-25 Thread Jim Fehlig via Devel
+--- 16 files changed, 10 insertions(+), 217 deletions(-) Good idea, and nice cleanup. Reviewed-by: Jim Fehlig Regards, Jim

Re: [PATCH v2 01/10] tests: Tweak descriptor for combined firmware

2025-08-25 Thread Jim Fehlig via Devel
-- tests/qemufirmwaretest.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) ACK from V1 stands https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/message/EZX2PDI2E2O2CMMFS6IAY2HUYNTMOP65/ Reviewed-by: Jim Fehlig Regards, Jim

Re: [PATCH 2/5] tests: Add firmware-auto-efi-sev-snp

2025-08-25 Thread Jim Fehlig via Devel
On 8/20/25 09:24, Andrea Bolognani wrote: On Tue, Aug 19, 2025 at 04:09:28PM -0600, Jim Fehlig via Devel wrote: On 8/13/25 09:01, Andrea Bolognani wrote: Stressing again the fact that I know very little about SEV and its variants, my impression is that generally speaking stateless firmware is

Re: [PATCH 2/5] tests: Add firmware-auto-efi-sev-snp

2025-08-25 Thread Jim Fehlig via Devel
On 8/20/25 09:12, Andrea Bolognani wrote: On Thu, Aug 14, 2025 at 03:07:10PM -0600, Jim Fehlig wrote: On 8/13/25 09:01, Andrea Bolognani wrote: Can you be more specific about the issue you're experiencing for SEV(-ES) guests? I'm seeing the same issue we were trying to solve for

Re: [PATCH 2/5] tests: Add firmware-auto-efi-sev-snp

2025-08-19 Thread Jim Fehlig via Devel
On 8/13/25 09:01, Andrea Bolognani wrote: On Tue, Aug 12, 2025 at 05:26:19PM -0600, Jim Fehlig wrote: On 7/31/25 09:45, Andrea Bolognani via Devel wrote: This test case demonstrates how firmware autoselection doesn't currently work correctly for domains using SEV-SNP: the descriptor

Re: [PATCH 2/5] tests: Add firmware-auto-efi-sev-snp

2025-08-14 Thread Jim Fehlig via Devel
On 8/13/25 09:01, Andrea Bolognani wrote: On Tue, Aug 12, 2025 at 05:26:19PM -0600, Jim Fehlig wrote: On 7/31/25 09:45, Andrea Bolognani via Devel wrote: This test case demonstrates how firmware autoselection doesn't currently work correctly for domains using SEV-SNP: the descriptor

Re: [PATCH 2/5] tests: Add firmware-auto-efi-sev-snp

2025-08-12 Thread Jim Fehlig via Devel
On 7/31/25 09:45, Andrea Bolognani via Devel wrote: This test case demonstrates how firmware autoselection doesn't currently work correctly for domains using SEV-SNP: the descriptor for a suitable firmware exists, and yet it doesn't get picked up. On my test system, autoselection for SEV-SNP gu

Re: [PATCH 1/5] tests: Tweak descriptor for combined firmware

2025-08-12 Thread Jim Fehlig via Devel
-- tests/qemufirmwaretest.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) This change seems fine independent of the others. Reviewed-by: Jim Fehlig Regards, Jim

Re: [PATCH 0/5] qemu: Fixes to firmware selection

2025-08-12 Thread Jim Fehlig via Devel
On 8/5/25 07:02, Gerd Hoffmann wrote: [adding Daniel to CC] Daniel suggested that elsewhere in the thread and of course it's an appealing proposition, as it would keep complexity down and unify handling across CVM use cases. However I wonder if changing things would break migration for existi

Re: [PATCH 0/5] qemu: Fixes to firmware selection

2025-08-04 Thread Jim Fehlig via Devel
On 8/4/25 05:31, Andrea Bolognani wrote: On Fri, Aug 01, 2025 at 11:39:45AM -0600, Jim Fehlig via Devel wrote: With this addition, the correct firmware is detected, but it's not properly provided to qemu internal error: QEMU unexpectedly closed the monitor (vm='sles15sp7-snp')

Re: [PATCH 0/5] qemu: Fixes to firmware selection

2025-08-01 Thread Jim Fehlig via Devel
On 8/1/25 03:14, Andrea Bolognani wrote: On Fri, Aug 01, 2025 at 02:06:44AM -0700, Andrea Bolognani wrote: On Thu, Jul 31, 2025 at 11:33:08AM -0600, Jim Fehlig wrote: Apologies for not having time to look at this in more detail today, but I quickly tried these patches and now see operation

Re: [PATCH 0/5] qemu: Fixes to firmware selection

2025-07-31 Thread Jim Fehlig via Devel
On 7/31/25 09:45, Andrea Bolognani via Devel wrote: See [1] for the discussion motivating these changes. [1] https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/U33UEJEXZGZEWOLGVAA5UWPLYY4WHEHT/ Andrea Bolognani (5): tests: Tweak descriptor for combined firmware tests:

Re: Question about SEV* guests and automatic firmware selection

2025-07-29 Thread Jim Fehlig via Devel
On 5/13/25 14:25, Jim Fehlig wrote: On 4/24/25 14:18, Jim Fehlig wrote: On 4/24/25 04:59, Daniel P. Berrangé wrote: On Mon, Apr 21, 2025 at 01:38:35PM -0600, Jim Fehlig via Devel wrote: Hi All, While investigating an internal bug report, we noticed that a minimal firmware auto-selection

Re: [libvirt PATCH] docs: hacking: Define policy forbidding use of AI code generators

2025-07-10 Thread Jim Fehlig via Devel
system. Reviewed-by: Jim Fehlig Regards, Jim

Re: [PATCH] NEWS: Mention switch to virtio-scsi on ARM

2025-07-10 Thread Jim Fehlig via Devel
On 7/10/25 03:20, Andrea Bolognani wrote: On Mon, Jul 07, 2025 at 05:05:05PM -0600, Jim Fehlig via Devel wrote: * **Improvements** + * qemu: Change default SCSI controller model to ``virtio-scsi`` for ARM + +The previous default of ``lsilogic`` is unsupported by modern operating

[PATCH] NEWS: Mention switch to virtio-scsi on ARM

2025-07-07 Thread Jim Fehlig via Devel
From: Jim Fehlig Signed-off-by: Jim Fehlig --- NEWS.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index d8bd2559f4..59494cb380 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -19,6 +19,12 @@ v11.6.0 (unreleased) * **Improvements** + * qemu: Change default SCSI

Re: [PATCH] qemu: Switch to virtio-scsi on ARM

2025-07-07 Thread Jim Fehlig via Devel
On 7/3/25 04:35, Daniel P. Berrangé wrote: On Thu, Jul 03, 2025 at 06:02:38AM -0400, Andrea Bolognani via Devel wrote: On Wed, Jul 02, 2025 at 02:01:07PM -0600, Jim Fehlig wrote: On 7/2/25 10:11, Andrea Bolognani wrote: On Thu, Jun 26, 2025 at 03:29:58PM -0600, Jim Fehlig via Devel wrote

Re: [PATCH] qemu: Switch to virtio-scsi on ARM

2025-07-02 Thread Jim Fehlig via Devel
On 7/2/25 10:11, Andrea Bolognani wrote: On Thu, Jun 26, 2025 at 03:29:58PM -0600, Jim Fehlig via Devel wrote: Similar to x86, the default SCSI controller model for ARM is lsilogic. But unlike x86, the ARM virt machine type prefers virtio devices. Switch the default controller model for ARM

[PATCH] qemu: Switch to virtio-scsi on ARM

2025-06-26 Thread Jim Fehlig via Devel
From: Jim Fehlig Similar to x86, the default SCSI controller model for ARM is lsilogic. But unlike x86, the ARM virt machine type prefers virtio devices. Switch the default controller model for ARM from lsilogic to virtio-scsi. Signed-off-by: Jim Fehlig --- IMO, the lsilogic SCSI controller

Re: [PATCH 02/17] NEWS: Mention fix for internal snapshot reversion regression

2025-05-15 Thread Jim Fehlig via Devel
ken versions. Either way Reviewed-by: Jim Fehlig Regards, Jim

Re: [PATCH 01/17] qemuProcessStartWithMemoryState: Don't setup qemu for incoming migration when reverting internal snapshot

2025-05-15 Thread Jim Fehlig via Devel
Resolves: https://issues.redhat.com/browse/RHEL-88747 Closes: https://gitlab.com/libvirt/libvirt/-/issues/771 Signed-off-by: Peter Krempa --- src/qemu/qemu_process.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) Reviewed-by: Jim Fehlig Regards, Jim diff --git a/src/qe

Re: Question about SEV* guests and automatic firmware selection

2025-05-13 Thread Jim Fehlig via Devel
On 4/24/25 14:18, Jim Fehlig wrote: On 4/24/25 04:59, Daniel P. Berrangé wrote: On Mon, Apr 21, 2025 at 01:38:35PM -0600, Jim Fehlig via Devel wrote: Hi All, While investigating an internal bug report, we noticed that a minimal firmware auto-selection configuration along with SEV* fails to

Re: Question about SEV* guests and automatic firmware selection

2025-04-24 Thread Jim Fehlig via Devel
On 4/24/25 04:59, Daniel P. Berrangé wrote: On Mon, Apr 21, 2025 at 01:38:35PM -0600, Jim Fehlig via Devel wrote: Hi All, While investigating an internal bug report, we noticed that a minimal firmware auto-selection configuration along with SEV* fails to find a match. E.g. the following config

Question about SEV* guests and automatic firmware selection

2025-04-21 Thread Jim Fehlig via Devel
Hi All, While investigating an internal bug report, we noticed that a minimal firmware auto-selection configuration along with SEV* fails to find a match. E.g. the following config hvm 0x07 ... Fails with "Unable to find 'efi' firmware that is compatible with the c

Re: [PATCH V4 01/18] lib: virDomain{Save,Restore}Params: Ensure absolute path

2025-04-05 Thread Jim Fehlig via Devel
On 3/19/25 05:54, Daniel P. Berrangé wrote: On Wed, Mar 05, 2025 at 03:48:10PM -0700, Jim Fehlig via Devel wrote: When invoking virDomainSaveParams with a relative path, the image is saved to the daemon's CWD. Similarly, when providing virDomainRestoreParams with a relative path, it attemp

Re: [PATCH V4 00/18] qemu: support mapped-ram+directio+mulitfd

2025-04-05 Thread Jim Fehlig via Devel
On 3/20/25 11:55, Daniel P. Berrangé wrote: Hi Jim, There are a couple of CI failures after this, one on 32-bit and one with CLang Yep, received mail from gitlab as well. Will take a look... Regards, Jim On Wed, Mar 05, 2025 at 03:48:09PM -0700, Jim Fehlig via Devel wrote: V4 series

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 --paralle

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",

Re: [PATCH v2 2/2] Add NEWS item for flags with Xen

2025-04-03 Thread Jim Fehlig via Devel
On 3/25/25 00:24, Will wrote: Signed-off-by: Will --- NEWS.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index 1fc80e2496..075fbd2d6c 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -67,6 +67,11 @@ v11.2.0 (unreleased) restore. Using multiple channels can redu

Re: [PATCH v2 1/2] libxl_conf: Implement hyperv domain flags for Xen

2025-04-03 Thread Jim Fehlig via Devel
On 3/25/25 00:24, Will wrote: Adds support for configuring flags for domains running under Xen. The following flags, making use of QEMU's existing flags, are now configurable for Xen: vapic, synic, stimer, frequencies, tlbflush and ipi Tests have been added validating translation to libxl's vi

Re: [PATCH rfcv4 04/13] conf: expose TDX feature in domain capabilities

2025-03-31 Thread Jim Fehlig via Devel
On 5/24/24 00:21, Zhenzhong Duan wrote: Extend qemu TDX capability to domain capabilities. Signed-off-by: Chenyi Qiang Signed-off-by: Zhenzhong Duan --- docs/formatdomaincaps.rst | 1 + src/conf/domain_capabilities.c | 1 + src/conf/domain_capabilities.h | 1 + src/conf/schemas

[PATCH] NEWS: Mention support for mapped-ram

2025-03-26 Thread Jim Fehlig via Devel
Add a 'New features' entry for mapped-ram itself, and another for the parallel save/restore feature built on top. Signed-off-by: Jim Fehlig --- NEWS.rst | 15 +++ 1 file changed, 15 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index 484333e55a..76f7ea65b1 100644 ---

Re: [PATCH V4 01/18] lib: virDomain{Save,Restore}Params: Ensure absolute path

2025-03-25 Thread Jim Fehlig via Devel
On 3/25/25 06:49, Martin Kletzander wrote: On Tue, Mar 25, 2025 at 10:15:12AM +, Daniel P. Berrangé wrote: On Tue, Mar 25, 2025 at 10:49:49AM +0100, Martin Kletzander wrote: On Wed, Mar 19, 2025 at 05:43:20PM -0600, Jim Fehlig via Devel wrote: > On 3/19/25 05:54, Daniel P. Berrangé wr

Re: [libvirt PATCH] qemu_driver: Fix virDomainSaveImageDefineXML

2025-03-25 Thread Jim Fehlig via Devel
here first. Thanks for cleaning up after me, and for improving the mapped-ram support! Reviewed-by: Jim Fehlig Regards, Jim diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 3cf21380ed..056a9e579d 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -5945

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

2025-03-23 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 --paralle

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

2025-03-20 Thread Jim Fehlig via Devel
sertions(+), 78 deletions(-) For series: Reviewed-by: Jim Fehlig Regards, Jim

[PATCH 1/2] qemu: Fix CLang build

2025-03-20 Thread Jim Fehlig via Devel
1, the default value when the number of channels is not specified. Fixes: f0169f4d6ce3915cf70bc3e21fa874369e22c840 Signed-off-by: Jim Fehlig --- Is it valid to specify '--parallel' without '--parallel-channels'? If so, should the number of channels default to 1? src/qemu/qemu_m

[PATCH 2/2] qemu: Fix build on 32-bit platforms

2025-03-20 Thread Jim Fehlig via Devel
#x27; modifier. Fixes: c2518f7bc7dd4f8ab8655a12ec3a000e1eb5b232 Fixes: 28a06215280b99708ed8dc2d183f62ba7b34ccf8 Signed-off-by: Jim Fehlig --- A lot of ways to skin this cat, but I think this would be the preferred approach. And while adding the 2 'Fixes:' lines to the commit message, I questioned whether this shou

[PATCH 0/2] qemu: Build fixes following merge of mapped-ram

2025-03-20 Thread Jim Fehlig via Devel
beforehand IMO. See the individual patches for more commentary. Also, feel free to push if the patches are fine and it's outside of MDT timezone working hours :-). Jim Fehlig (2): qemu: Fix CLang build qemu: Fix build on 32-bit platforms src/qemu/qemu_migration_params.c | 2 +- src

Re: [PATCH V4 11/18] qemu: Apply migration parameters in qemuMigrationDstRun

2025-03-19 Thread Jim Fehlig via Devel
On 3/19/25 09:45, Daniel P. Berrangé wrote: On Wed, Mar 05, 2025 at 03:48:20PM -0700, Jim Fehlig via Devel wrote: Similar to qemuMigrationSrcRun, apply migration parameters in qemuMigrationDstRun. This allows callers to create customized migration parameters, but delegates their application to

Re: [PATCH V4 08/18] qemu: Add helper function for creating save image fd

2025-03-19 Thread Jim Fehlig via Devel
On 3/19/25 06:49, Daniel P. Berrangé wrote: On Wed, Mar 05, 2025 at 03:48:17PM -0700, Jim Fehlig via Devel wrote: Move the code in qemuSaveImageCreate that opens, labels, and wraps the save image fd to a helper function, providing more flexibility for upcoming mapped-ram support. Signed-off-by

Re: [PATCH V4 00/18] qemu: support mapped-ram+directio+mulitfd

2025-03-13 Thread Jim Fehlig via Devel
Hi All, Does anyone have time to review this series? QEMU has supported mapped-ram for a few releases now. Adding support in libvirt allows us to build parallel save/restore on top. Would be a nice feature for the next release :-). Regards, Jim On 3/5/25 15:48, Jim Fehlig wrote: V4 series

Re: [PATCH] NEWS: Mention new 'image_format' parameter for virDomainSaveParams

2025-03-13 Thread Jim Fehlig via Devel
Hi All, Any comments on this addition to NEWS? Regards, Jim On 3/3/25 11:34, Jim Fehlig wrote: Signed-off-by: Jim Fehlig --- NEWS.rst | 8 1 file changed, 8 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index 9c940b1a81..d08a18dc02 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -17,6

Re: [PATCH] libxl_conf: Implement hyperv domain flags for Xen

2025-03-13 Thread Jim Fehlig via Devel
Hi Will, Thanks for the patch! Looks good. I only have some minor comments. On 3/4/25 02:11, Will wrote: Adds support for configuring flags for domains running under Xen. The following flags, making use of QEMU's existing flags, are now configurable for Xen: vapic, synic, stimer, frequencies,

[PATCH V4 18/18] tools: add parallel parameter to virsh restore command

2025-03-05 Thread Jim Fehlig via Devel
From: Claudio Fontana Signed-off-by: Claudio Fontana Signed-off-by: Jim Fehlig --- docs/manpages/virsh.rst | 9 +++-- tools/virsh-domain.c| 39 +++ 2 files changed, 42 insertions(+), 6 deletions(-) diff --git a/docs/manpages/virsh.rst b/docs

[PATCH V4 16/18] qemu: Add support for parallel save and restore

2025-03-05 Thread Jim Fehlig via Devel
Add support for parallel save and restore by mapping libvirt's "parallel-channels" parameter to QEMU's "multifd-channels" migration parameter. Signed-off-by: Jim Fehlig --- src/qemu/qemu_driver.c | 32 +--- src/qem

[PATCH V4 17/18] tools: add parallel parameter to virsh save command

2025-03-05 Thread Jim Fehlig via Devel
From: Claudio Fontana Signed-off-by: Claudio Fontana Signed-off-by: Jim Fehlig --- docs/manpages/virsh.rst | 12 +++- tools/virsh-domain.c| 42 + 2 files changed, 49 insertions(+), 5 deletions(-) diff --git a/docs/manpages/virsh.rst b/docs

[PATCH V4 15/18] include: Define constants for parallel save/restore

2025-03-05 Thread Jim Fehlig via Devel
parameter. Signed-off-by: Claudio Fontana Signed-off-by: Jim Fehlig --- include/libvirt/libvirt-domain.h | 11 +++ src/libvirt-domain.c | 3 +++ 2 files changed, 14 insertions(+) diff --git a/include/libvirt/libvirt-domain.h b/include/libvirt/libvirt-domain.h index 0121620e9c

[PATCH V4 14/18] qemu: Support O_DIRECT with mapped-ram on restore

2025-03-05 Thread Jim Fehlig via Devel
When using the mapped-ram migration capability, direct IO is enabled by setting the "direct-io" migration parameter to "true" and passing QEMU an additional fd with O_DIRECT set. Signed-off-by: Jim Fehlig --- src/qemu/qemu_migration.c | 11 ++- src/qemu/q

[PATCH V4 12/18] qemu: Add support for mapped-ram on restore

2025-03-05 Thread Jim Fehlig via Devel
Add support for the mapped-ram migration capability on restore. Signed-off-by: Jim Fehlig --- src/qemu/qemu_driver.c| 27 +++--- src/qemu/qemu_migration.c | 12 ++-- src/qemu/qemu_process.c | 41 --- src/qemu/qemu_process.h

[PATCH V4 13/18] qemu: Support O_DIRECT with mapped-ram on save

2025-03-05 Thread Jim Fehlig via Devel
When using the mapped-ram migration capability, direct IO is enabled by setting the "direct-io" migration parameter to "true" and passing QEMU an additional fd with O_DIRECT set. Signed-off-by: Jim Fehlig --- src/qemu/qemu_driver.c | 10 ++ src/q

[PATCH V4 11/18] qemu: Apply migration parameters in qemuMigrationDstRun

2025-03-05 Thread Jim Fehlig via Devel
Similar to qemuMigrationSrcRun, apply migration parameters in qemuMigrationDstRun. This allows callers to create customized migration parameters, but delegates their application to the function performing the migration. Signed-off-by: Jim Fehlig --- src/qemu/qemu_migration.c | 16

[PATCH V4 09/18] qemu: Add support for mapped-ram on save

2025-03-05 Thread Jim Fehlig via Devel
memory size. Note however that mapped-ram typically uses fewer blocks on disk, hence the name 'sparse' for 'save_image_format'. Also note the mapped-ram stream is incompatible with the existing stream format, hence mapped-ram cannot be used to restore an image saved with the

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

2025-03-05 Thread Jim Fehlig via Devel
qemuProcessStartWithMemoryState() is the only caller of qemuProcessStart() that uses the qemuProcessIncomingDef struct. Move creation of the struct to qemuProcessStartWithMemoryState(). Signed-off-by: Jim Fehlig --- src/qemu/qemu_process.c | 42 - src

[PATCH V4 08/18] qemu: Add helper function for creating save image fd

2025-03-05 Thread Jim Fehlig via Devel
Move the code in qemuSaveImageCreate that opens, labels, and wraps the save image fd to a helper function, providing more flexibility for upcoming mapped-ram support. Signed-off-by: Jim Fehlig --- src/qemu/qemu_saveimage.c | 65 +++ 1 file changed, 45

[PATCH V4 07/18] qemu_saveimage: add "sparse" to supported save image formats

2025-03-05 Thread Jim Fehlig via Devel
Extend the list of formats to include "sparse", which uses QEMU's mapped-ram stream format [1] to write guest memory blocks at fixed offsets in the save image file. [1] https://gitlab.com/qemu-project/qemu/-/blob/master/docs/devel/migration/mapped-ram.rst?ref_type=heads Sig

[PATCH V4 06/18] qemu: Add function to get migration params for save

2025-03-05 Thread Jim Fehlig via Devel
work to support parallel save/restore can set the number of channels to a user-specified value. Signed-off-by: Jim Fehlig Reviewed-by: Daniel P. Berrangé --- src/qemu/qemu_migration.c| 2 +- src/qemu/qemu_migration_params.c | 21 + src/qemu/qemu_migration_params.h

[PATCH V4 05/18] qemu: Add mapped-ram migration capability

2025-03-05 Thread Jim Fehlig via Devel
Add the mapped-ram migration capability introduced in QEMU 9.0. Reviewed-by: Daniel P. Berrangé Signed-off-by: Jim Fehlig --- src/qemu/qemu_migration_params.c | 1 + src/qemu/qemu_migration_params.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/qemu/qemu_migration_params.c b/src

[PATCH V4 04/18] qemu: Add function to get bool value from migration params

2025-03-05 Thread Jim Fehlig via Devel
Signed-off-by: Jim Fehlig Reviewed-by: Daniel P. Berrangé --- src/qemu/qemu_migration_params.c | 18 ++ src/qemu/qemu_migration_params.h | 5 + 2 files changed, 23 insertions(+) diff --git a/src/qemu/qemu_migration_params.c b/src/qemu/qemu_migration_params.c index

[PATCH V4 03/18] qemu: Add function to check capability in migration params

2025-03-05 Thread Jim Fehlig via Devel
Add new function qemuMigrationParamsCapEnabled() to check if a capability is set in the caller-provided migration parameters. Signed-off-by: Jim Fehlig Reviewed-by: Daniel P. Berrangé --- src/qemu/qemu_migration_params.c | 16 src/qemu/qemu_migration_params.h | 4 2

[PATCH V4 02/18] qemu: Add function to get FDPass object from monitor

2025-03-05 Thread Jim Fehlig via Devel
Add new function qemuFDPassNewFromMonitor to get an fdset previously passed to qemu, based on the 'prefix' provided when the qemuFDPass object was initially created. Signed-off-by: Jim Fehlig --- src/qemu/qemu_fd.c | 46 ++ src/qemu/qemu

[PATCH V4 01/18] lib: virDomain{Save,Restore}Params: Ensure absolute path

2025-03-05 Thread Jim Fehlig via Devel
Ensure a relative path is converted to absolute before invoking the driver domain{Save,Restore}Params functions. Signed-off-by: Jim Fehlig --- src/libvirt-domain.c | 89 1 file changed, 73 insertions(+), 16 deletions(-) diff --git a/src/libvirt-domain

[PATCH V4 00/18] qemu: support mapped-ram+directio+mulitfd

2025-03-05 Thread Jim Fehlig via Devel
l/migration/mapped-ram.rst?ref_type=heads Claudio Fontana (3): include: Define constants for parallel save/restore tools: add parallel parameter to virsh save command tools: add parallel parameter to virsh restore command Jim Fehlig (15): lib: virDomain{Save,Restore}Params: Ensure absolute path

[PATCH] NEWS: Mention new 'image_format' parameter for virDomainSaveParams

2025-03-03 Thread Jim Fehlig via Devel
Signed-off-by: Jim Fehlig --- NEWS.rst | 8 1 file changed, 8 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index 9c940b1a81..d08a18dc02 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -17,6 +17,14 @@ v11.2.0 (unreleased) * **New features** + * qemu: Add new 'image_format' pa

Re: [PATCH V2 2/2] qemu: Add support for 'image_format' typed parameter

2025-02-25 Thread Jim Fehlig via Devel
On 2/25/25 07:43, Daniel P. Berrangé wrote: On Thu, Feb 20, 2025 at 05:23:54PM -0700, Jim Fehlig via Devel wrote: Add support for the 'image_format' typed parameter in virDomainSaveParams. The parameter overrides the 'save_image_format' setting in qemu.conf. Signe

Re: [PATCH V2 4/4] qemu: Check for valid save image formats when loading driver config

2025-02-20 Thread Jim Fehlig via Devel
On 2/20/25 17:11, Jim Fehlig wrote: Checking for valid 'foo_image_format' settings in qemu.conf is not done until the settings are used. Move the checks to virQEMUDriverConfigLoadSaveEntry, allowing to report incorrect format settings at driver startup. This change was made easi

[PATCH V2 2/2] qemu: Add support for 'image_format' typed parameter

2025-02-20 Thread Jim Fehlig via Devel
Add support for the 'image_format' typed parameter in virDomainSaveParams. The parameter overrides the 'save_image_format' setting in qemu.conf. Signed-off-by: Jim Fehlig --- src/qemu/qemu_driver.c | 20 1 file changed, 16 insertions(+), 4 deletions(

[PATCH V2 1/2] include: Define constant for save image format

2025-02-20 Thread Jim Fehlig via Devel
Add a new VIR_DOMAIN_SAVE_PARAM_IMAGE_FORMAT typed parameter for specifying the save image format. A format specified via the virDomainSaveParams API overrides the save_image_format setting in qemu.conf. The 'raw' format remains the default. Signed-off-by: Jim Fehlig Reviewed-by

[PATCH V2 0/2] qemu: Support specifying save image format

2025-02-20 Thread Jim Fehlig via Devel
@lists.libvirt.org/thread/NZFXRLTJVLPABSXI7C2JIJUZIINZGSIL/ Jim Fehlig (2): include: Define constant for save image format qemu: Add support for 'image_format' typed parameter include/libvirt/libvirt-domain.h | 13 + src/libvirt-domain.c | 3 +++ src/qemu/qem

[PATCH V2 4/4] qemu: Check for valid save image formats when loading driver config

2025-02-20 Thread Jim Fehlig via Devel
lds in the virQEMUDriverConfig to 'int', which is more in line with the other fields that represent enumerated types. Signed-off-by: Jim Fehlig --- Splitting the change to virQEMUDriverConfig struct into a separate patch felt a bit awkward compared to one patch, but I'm fine to do th

[PATCH V2 3/4] qemu: Change return value of SaveImageGetCompressionProgram

2025-02-20 Thread Jim Fehlig via Devel
failure. Checking the validity of the image format can be left to the calling functions. Signed-off-by: Jim Fehlig Reviewed-by: Daniel P. Berrangé --- src/qemu/qemu_driver.c| 36 +--- src/qemu/qemu_saveimage.c | 30 +- src/qemu

[PATCH V2 2/4] qemu: Don't ignore dump image format errors

2025-02-20 Thread Jim Fehlig via Devel
reported if it cannot be honored. Remove the special handling of configuration errors in qemuSaveImageGetCompressionProgram and change the dump logic to fail when dump image format cannot be supported. Signed-off-by: Jim Fehlig --- src/qemu/qemu_driver.c| 19 src/qemu/qemu_saveimage.c

[PATCH V2 1/4] qemu: Move declaration of virQEMUSaveFormat to header file

2025-02-20 Thread Jim Fehlig via Devel
Allow use of the enum outside of qemu_saveimage. Signed-off-by: Jim Fehlig Reviewed-by: Daniel P. Berrangé --- src/qemu/qemu_saveimage.c | 19 --- src/qemu/qemu_saveimage.h | 19 +++ 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/qemu

[PATCH V2 0/4] qemu: Small cleanups to SaveImageGetCompressionProgram

2025-02-20 Thread Jim Fehlig via Devel
operations. * New patch4 that moves checking for a valid save image format from time of use to config file parsing at driver startup Jim Fehlig (4): qemu: Move declaration of virQEMUSaveFormat to header file qemu: Don't ignore dump image format errors qemu: Change return val

Re: [PATCH 0/3] qemu: Small cleanups to SaveImageGetCompressionProgram and callers

2025-02-14 Thread Jim Fehlig via Devel
On 2/14/25 15:48, Jim Fehlig wrote: Even though my work on supporting mapped-ram is the main motivation for this small cleanup series, IMO is useful in its own right. Here's an example of that usefulness https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/t

[PATCH 2/2] qemu: Add support for 'image_format' typed parameter

2025-02-14 Thread Jim Fehlig via Devel
Add support for the 'image_format' typed parameter in virDomainSaveParams. The parameter overrides the 'save_image_format' setting in qemu.conf. Signed-off-by: Jim Fehlig --- src/qemu/qemu_driver.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) d

[PATCH 1/2] include: Define constant for save image format

2025-02-14 Thread Jim Fehlig via Devel
Add a new VIR_DOMAIN_SAVE_PARAM_IMAGE_FORMAT typed parameter for specifying the save image format. A format specified via the virDomainSaveParams API overrides the save_image_format setting in qemu.conf. The 'raw' format remains the default. Signed-off-by: Jim Fehlig --- include/libvi

[PATCH 0/2] qemu: Support specifying save image format

2025-02-14 Thread Jim Fehlig via Devel
still be set driver-wide in qemu.conf. Patch2 provides the implementation in the qemu driver. [1] https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/SKVPVQ36ND7GHZN27RTYLUXHP5GCUI4B/ Jim Fehlig (2): include: Define constant for save image format qemu: Add support for

[PATCH 3/3] qemu: Change return value of SaveImageGetCompressionProgram

2025-02-14 Thread Jim Fehlig via Devel
failure. Checking the validity of the image format can be left to the calling functions. Signed-off-by: Jim Fehlig --- src/qemu/qemu_driver.c| 33 +-- src/qemu/qemu_saveimage.c | 55 --- src/qemu/qemu_saveimage.h | 2 +- src/qemu

[PATCH 1/3] qemu: Move declaration of virQEMUSaveFormat to header file

2025-02-14 Thread Jim Fehlig via Devel
Allow use of the enum outside of qemu_saveimage. Signed-off-by: Jim Fehlig --- src/qemu/qemu_saveimage.c | 19 --- src/qemu/qemu_saveimage.h | 19 +++ 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/qemu/qemu_saveimage.c b/src/qemu

[PATCH 2/3] qemu: Move special handling of invalid dump format to only caller

2025-02-14 Thread Jim Fehlig via Devel
The 'use_raw_on_fail' logic in qemuSaveImageGetCompressionProgram is only used by doCoreDump in qemu_driver.c. Move the logic to the single call site and remove the parameter from qemuSaveImageGetCompressionProgram. Signed-off-by: Jim Fehlig --- src/qemu/qemu_driver

  1   2   3   >