[PATCH v3 01/13] util: properly deal with VFIO module name vs. driver name

2024-01-05 Thread Laine Stump
Historically libvirt hasn't differentiated between the name of a loadable kernel module, and the name of the device driver that module implements, but these two names can be (and usually are) at least subtly different. For example, the loadable module called "vfio_pci" implements a PCI driver call

[PATCH v3 07/13] conf: split out hostdev parse/format to their own functions

2024-01-05 Thread Laine Stump
This is done so that we can re-use the same parser/formatter for and Signed-off-by: Laine Stump Reviewed-by: Peter Krempa --- src/conf/device_conf.c | 40 src/conf/device_conf.h | 7 +++ src/conf/domain_conf.c | 27 +-- 3 f

[PATCH v3 03/13] conf: move/rename hostdev PCI driver type enum to device_conf.h

2024-01-05 Thread Laine Stump
Currently this enum is defined in domain_conf.h and named virDomainHostdevSubsysPCIDriverType. I want to use it in parts of the network and networkport config, so am moving its definition to device_conf.h which is / can be included by all interested parties, and renaming it to match the name of the

[PATCH v3 08/13] conf: use new common parser/formatter for hostdev driver in network XML

2024-01-05 Thread Laine Stump
Now if a new attribute is added to , we only need to update the formatting/parsing in one place. Signed-off-by: Laine Stump Reviewed-by: Peter Krempa --- src/conf/network_conf.c | 23 --- src/conf/virnetworkportdef.c | 20 ++-- 2 files changed, 10 insert

[PATCH v3 04/13] conf: normalize hostdev parsing to simplify adding new attr

2024-01-05 Thread Laine Stump
The hostdev version of the subelement appears in four places: * The domain XML in the and elements (that's 2) * The network XML inside when the network is a pool of SRIOV VFs * the XML, which is used to communicate between the hypervisor driver and network driver. In order to m

[PATCH v3 06/13] conf: use virDeviceHostdevPCIDriverInfo in network and networkport objects

2024-01-05 Thread Laine Stump
The next step in consolidating parsing/formatting of the element of these objects using a common struct and common code. This eliminates the virNetworkForwardDriverNameType enum which is nearly identical to virDeviceHostdevPCIDriverName (the only non-identical bit was just because they'd gotten ou

[PATCH v3 09/13] conf: replace virHostdevIsVFIODevice with virHostdevIsPCIDevice

2024-01-05 Thread Laine Stump
virHostdevIsVFIODevice() and virDomainDefHasVFIOHostdev() are only ever called from the QEMU driver, and in the case of the QEMU driver, any PCI hostdev by definition uses VFIO, so really all these callers only need to know if the device is a PCI hostdev. (It turned out that the less specific virH

[PATCH v3 05/13] conf: put hostdev PCI backend into a struct

2024-01-05 Thread Laine Stump
The new struct is virDeviceHostdevPCIDriverInfo, and the "backend" enum in the hostdevDef will be replaced with a virDeviceHostdevPCIDriverInfo named "driver'. Since the enum value in this new struct is called "name", it means that all references to "backend" will become "driver.name". This will a

[PATCH v3 10/13] xen: explicitly set hostdev driver.name at runtime, not in postparse

2024-01-05 Thread Laine Stump
Xen only supports a single type of PCI hostdev assignment, so it is superfluous to have peppered throughout the config. It *is* necessary to have the driver type explicitly set in the hostdev object before calling into the hypervisor-agnostic "hostdev manager" though (otherwise the hostdev manager

[PATCH v3 00/13] Support for VFIO variant drivers, Part 2

2024-01-05 Thread Laine Stump
This is "V3 of Part 2". "V2 of Part 2": is here: https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/EVHMTCQ2XWUQR5RPH5TPGDAAUFGWNTQC/ Part 1 (which simply made it possible to use virsh nodedev-detach to bind a device to a manually-specified variant driver, and at guest runtim

[PATCH v3 13/13] qemu: automatically bind to a vfio variant driver, if available

2024-01-05 Thread Laine Stump
Rather than always binding to the vfio-pci driver, use the new function virPCIDeviceFindBestVFIOVariant() to see if the running kernel has a VFIO variant driver available that is a better match for the device, and if one is found, use that instead. virPCIDeviceFindBestVFIOVariant() function reads

[PATCH v3 12/13] conf: support manually specifying VFIO variant driver in XML

2024-01-05 Thread Laine Stump
This patch makes it possible to manually specify which VFIO variant driver to use for PCI hostdev device assignment, so that, e.g. you could force use of a VFIO "variant" driver, with e.g. or alternately to force use of the generic vfio-pci driver with when libvirt would have normally (af

[PATCH v3 02/13] schema: consolidate RNG for all hostdev elements

2024-01-05 Thread Laine Stump
The exact same element can appear in and , and nearly identical in and (these latter two don't include "xen" as a possible driver, but that's coincidental - there's no reason Xen couldn't also use the VF pools in virtual networks, it just doesn't). This patch modifies all 4 to use the same so

[PATCH v3 11/13] tests: remove explicit from hostdev test cases

2024-01-05 Thread Laine Stump
The long-deprecated use of in domain xml for devices was only ever necessary during the period when libvirt (and the Linux kernel) supported both VFIO and "legacy KVM" styles of hostdev device assignment for QEMU. This became pointless many years ago when legacy KVM device assignment was removed

Re: [libvirt PATCH v2 15/15] qemu: automatically bind to a vfio variant driver, if available

2024-01-05 Thread Peter Krempa
On Thu, Jan 04, 2024 at 20:01:44 -0500, Laine Stump wrote: > On 11/28/23 10:39 AM, Peter Krempa wrote: > > On Mon, Nov 06, 2023 at 02:39:00 -0500, Laine Stump wrote: > > > Rather than always binding to the vfio-pci driver, use the new > > > function virPCIDeviceFindBestVFIOVariant() to see if the r

Re: [PATCH v4] qemu: add runtime config option for nbdkit

2024-01-05 Thread Peter Krempa
On Thu, Jan 04, 2024 at 23:39:38 +0100, Peter Krempa wrote: > On Thu, Jan 04, 2024 at 12:24:38 -0600, Jonathon Jongsma wrote: > > Currently when we build with nbdkit support, libvirt will always try to > > use nbdkit to access remote disk sources when it is available. But > > without an up-to-date

Re: [PATCH 00/10] Subject: [PATCH 00/10] Code cleanup

2024-01-05 Thread Artem Chernyshev
ping ___ Devel mailing list -- devel@lists.libvirt.org To unsubscribe send an email to devel-le...@lists.libvirt.org

Re: [PATCH 1/7] cpu: : virCPUx86DataAddItem() to void

2024-01-05 Thread Artem Chernyshev
> On 1/4/24 01:16, Artem Chernyshev wrote: > > It doesn't really fix anything. The code is not broken. > > True, just mentioned commit which I addressed in my patch > > No. This changes semantics. Prior to your change, if > qemuMonitorJSONParseCPUx86FeatureWord() failed then 'return NULL' pat

Re: Re: [PATCH v4] qemu: add runtime config option for nbdkit

2024-01-05 Thread Andrea Bolognani
On Fri, Jan 05, 2024 at 09:43:52AM +0100, Peter Krempa wrote: > On Thu, Jan 04, 2024 at 23:39:38 +0100, Peter Krempa wrote: > > On Thu, Jan 04, 2024 at 12:24:38 -0600, Jonathon Jongsma wrote: > > > Currently when we build with nbdkit support, libvirt will always try to > > > use nbdkit to access re

Re: Re: [PATCH v4] qemu: add runtime config option for nbdkit

2024-01-05 Thread Peter Krempa
On Fri, Jan 05, 2024 at 01:30:19 -0800, Andrea Bolognani wrote: > On Fri, Jan 05, 2024 at 09:43:52AM +0100, Peter Krempa wrote: > > On Thu, Jan 04, 2024 at 23:39:38 +0100, Peter Krempa wrote: > > > On Thu, Jan 04, 2024 at 12:24:38 -0600, Jonathon Jongsma wrote: > > > > Currently when we build with

[PATCH] libvirt.spec: Fix nbdkit selection logic on mingw and old rhel

2024-01-05 Thread Peter Krempa
rhel-8 lacks 'pidfd_open()' support and thus nbdkit can't be enabled there. mingw builds explicitly disable nbdkit support, but use '--auto-features=enabled' thus omitting setting of 'nbdkit_config_default' results in meson thinking we want to enable it: ../meson.build:1018:2: ERROR: Problem en

Re: [PATCH] libvirt.spec: Fix nbdkit selection logic on mingw and old rhel

2024-01-05 Thread Andrea Bolognani
On Fri, Jan 05, 2024 at 10:57:46AM +0100, Peter Krempa wrote: > rhel-8 lacks 'pidfd_open()' support and thus nbdkit can't be enabled > there. > > mingw builds explicitly disable nbdkit support, but use > '--auto-features=enabled' thus omitting setting of > 'nbdkit_config_default' results in meson t

Re: Re: Re: [PATCH v4] qemu: add runtime config option for nbdkit

2024-01-05 Thread Andrea Bolognani
On Fri, Jan 05, 2024 at 10:53:10AM +0100, Peter Krempa wrote: > - mingw builds for some unkonwn-to-me reason use >'--auto-features=enabled' which is weird > - the logic handling errors in use of the 'nbdkit_config_default' meson >option is a bit questionable: > > --auto-features=enabl

Re: Re: Re: [PATCH v4] qemu: add runtime config option for nbdkit

2024-01-05 Thread Peter Krempa
On Fri, Jan 05, 2024 at 02:18:08 -0800, Andrea Bolognani wrote: > On Fri, Jan 05, 2024 at 10:53:10AM +0100, Peter Krempa wrote: > > - mingw builds for some unkonwn-to-me reason use > >'--auto-features=enabled' which is weird > > - the logic handling errors in use of the 'nbdkit_config_default

Re: [PATCH v3 10/13] xen: explicitly set hostdev driver.name at runtime, not in postparse

2024-01-05 Thread Peter Krempa
On Fri, Jan 05, 2024 at 03:20:13 -0500, Laine Stump wrote: > Xen only supports a single type of PCI hostdev assignment, so it is > superfluous to have peppered throughout the > config. It *is* necessary to have the driver type explicitly set in > the hostdev object before calling into the hypervis

[PATCH v2 0/4] Introduce dynamicMemslots attribute for virtio-mem

2024-01-05 Thread Michal Privoznik
v2 of: https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/MWYGWDC7D7DOQCZ6CLSIRYRNAFNS3OGQ/ diff to v1: - Don't set .unplugged-inaccessible because it's not compatible with !x84_64 and even on x86_64 it's likely to get deprecated soon. Thanks David for pointing this out!

[PATCH v2 1/4] conf: Introduce dynamicMemslots attribute for virtio-mem

2024-01-05 Thread Michal Privoznik
Introduced in v8.2.0-rc0~74^2~2, QEMU now allows setting .dynamic-memslots attribute for virtio-mem-pci devices. When turned on, it allows memory exposed to guest to be split into multiple memslots and thus smaller memory footprint (see the original commit for detailed explanation). Therefore, int

[PATCH v2 2/4] qemu_capabilities: Add QEMU_CAPS_DEVICE_VIRTIO_MEM_PCI_DYNAMIC_MEMSLOTS capability

2024-01-05 Thread Michal Privoznik
Starting from v8.2.0-rc0~74^2~2 QEMU has .dynamic-memslots attribute for virtio-mem-pci device. Introduce a capability which reflects that. Signed-off-by: Michal Privoznik --- src/qemu/qemu_capabilities.c | 2 ++ src/qemu/qemu_capabilities.h | 1 + tests/q

[PATCH v2 3/4] qemu_validate: Check capability for virtio-mem dynamicMemslots

2024-01-05 Thread Michal Privoznik
The QEMU_CAPS_DEVICE_VIRTIO_MEM_PCI_DYNAMIC_MEMSLOTS reflects whether QEMU is capable of .dynamic-memslots for virtio-mem. Use it when validating domain configuration. Signed-off-by: Michal Privoznik --- src/qemu/qemu_validate.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/qemu

[PATCH v2 4/4] qemu_command: Generate cmd line for virtio-mem dynamicMemslots

2024-01-05 Thread Michal Privoznik
This is pretty straightforward. Resolves: https://issues.redhat.com/browse/RHEL-15316 Signed-off-by: Michal Privoznik --- src/qemu/qemu_command.c| 3 +++ .../memory-hotplug-virtio-mem.x86_64-latest.args | 2 +- 2 files changed, 4 insertions(+

Re: [PATCH v3 12/13] conf: support manually specifying VFIO variant driver in XML

2024-01-05 Thread Peter Krempa
On Fri, Jan 05, 2024 at 03:20:15 -0500, Laine Stump wrote: > This patch makes it possible to manually specify which VFIO variant > driver to use for PCI hostdev device assignment, so that, e.g. you > could force use of a VFIO "variant" driver, with e.g. > > > > or alternately to force use of t

Re: [PATCH v2 1/4] conf: Introduce dynamicMemslots attribute for virtio-mem

2024-01-05 Thread Peter Krempa
On Fri, Jan 05, 2024 at 13:33:32 +0100, Michal Privoznik wrote: > Introduced in v8.2.0-rc0~74^2~2, QEMU now allows setting > .dynamic-memslots attribute for virtio-mem-pci devices. When > turned on, it allows memory exposed to guest to be split into > multiple memslots and thus smaller memory footp

[PATCH 0/2] tests: Ensure test files are newline-terminated

2024-01-05 Thread Andrea Bolognani
Test pipeline: https://gitlab.com/abologna/libvirt/-/pipelines/1128046264 Andrea Bolognani (2): tests: Drop some unused qemunbdkit data files tests: Ensure test files are newline-terminated ...69d019_36ea_4111_8f0a_8c9a70e21366-create.json | 2 +- ...69d019_36ea_4111_8f0a_8c9a70e21366-defin

[PATCH 2/2] tests: Ensure test files are newline-terminated

2024-01-05 Thread Andrea Bolognani
Currently we only append a newline to 'actual' if 'expected' (as loaded from file) already ends in a newline, but that results in inconsistent behavior. For example, some of the test files used by virhostcputest are newline-terminated and some aren't. If we were to remove existing newlines from th

[PATCH 1/2] tests: Drop some unused qemunbdkit data files

2024-01-05 Thread Andrea Bolognani
The test still passes after deleting them, which seems to indicate that they're unnecessary. Signed-off-by: Andrea Bolognani --- .../disk-network-source-curl.args.disk2.pipe.782 | 1 - tests/qemunbdkitdata/disk-network-ssh.args.disk1 | 8 .../qemunbdkitdata/disk-network-

Re: [PATCH v2 4/4] qemu_command: Generate cmd line for virtio-mem dynamicMemslots

2024-01-05 Thread Peter Krempa
On Fri, Jan 05, 2024 at 13:33:35 +0100, Michal Privoznik wrote: > This is pretty straightforward. > > Resolves: https://issues.redhat.com/browse/RHEL-15316 > Signed-off-by: Michal Privoznik > --- > src/qemu/qemu_command.c| 3 +++ > .../memory-hotplug-virti

Re: [PATCH 0/2] tests: Ensure test files are newline-terminated

2024-01-05 Thread Michal Prívozník
On 1/5/24 14:02, Andrea Bolognani wrote: > Test pipeline: https://gitlab.com/abologna/libvirt/-/pipelines/1128046264 > > Andrea Bolognani (2): > tests: Drop some unused qemunbdkit data files > tests: Ensure test files are newline-terminated > > ...69d019_36ea_4111_8f0a_8c9a70e21366-create.js

Re: [PATCH v2 2/4] qemu_capabilities: Add QEMU_CAPS_DEVICE_VIRTIO_MEM_PCI_DYNAMIC_MEMSLOTS capability

2024-01-05 Thread Peter Krempa
On Fri, Jan 05, 2024 at 13:33:33 +0100, Michal Privoznik wrote: > Starting from v8.2.0-rc0~74^2~2 QEMU has .dynamic-memslots > attribute for virtio-mem-pci device. Introduce a capability which > reflects that. > > Signed-off-by: Michal Privoznik > --- > src/qemu/qemu_capabilities.c

Re: [PATCH v2 3/4] qemu_validate: Check capability for virtio-mem dynamicMemslots

2024-01-05 Thread Peter Krempa
On Fri, Jan 05, 2024 at 13:33:34 +0100, Michal Privoznik wrote: > The QEMU_CAPS_DEVICE_VIRTIO_MEM_PCI_DYNAMIC_MEMSLOTS reflects > whether QEMU is capable of .dynamic-memslots for virtio-mem. > Use it when validating domain configuration. > > Signed-off-by: Michal Privoznik > --- > src/qemu/qemu_

Re: [PATCH v2 1/4] conf: Introduce dynamicMemslots attribute for virtio-mem

2024-01-05 Thread David Hildenbrand
On 05.01.24 13:40, Peter Krempa wrote: On Fri, Jan 05, 2024 at 13:33:32 +0100, Michal Privoznik wrote: Introduced in v8.2.0-rc0~74^2~2, QEMU now allows setting .dynamic-memslots attribute for virtio-mem-pci devices. When turned on, it allows memory exposed to guest to be split into multiple mems

Re: [PATCH v3 13/13] qemu: automatically bind to a vfio variant driver, if available

2024-01-05 Thread Peter Krempa
On Fri, Jan 05, 2024 at 03:20:16 -0500, Laine Stump wrote: > Rather than always binding to the vfio-pci driver, use the new > function virPCIDeviceFindBestVFIOVariant() to see if the running > kernel has a VFIO variant driver available that is a better match for > the device, and if one is found, u

Re: [PATCH v2 1/4] conf: Introduce dynamicMemslots attribute for virtio-mem

2024-01-05 Thread Peter Krempa
On Fri, Jan 05, 2024 at 14:34:53 +0100, David Hildenbrand wrote: > On 05.01.24 13:40, Peter Krempa wrote: > > On Fri, Jan 05, 2024 at 13:33:32 +0100, Michal Privoznik wrote: > > > Introduced in v8.2.0-rc0~74^2~2, QEMU now allows setting > > > .dynamic-memslots attribute for virtio-mem-pci devices.

Re: [PATCH v3 01/13] util: properly deal with VFIO module name vs. driver name

2024-01-05 Thread Peter Krempa
On Fri, Jan 05, 2024 at 03:20:04 -0500, Laine Stump wrote: > Historically libvirt hasn't differentiated between the name of a > loadable kernel module, and the name of the device driver that module > implements, but these two names can be (and usually are) at least > subtly different. > > For exam

Re: [PATCH v3 13/13] qemu: automatically bind to a vfio variant driver, if available

2024-01-05 Thread Laine Stump
On 1/5/24 8:46 AM, Peter Krempa wrote: On Fri, Jan 05, 2024 at 03:20:16 -0500, Laine Stump wrote: Rather than always binding to the vfio-pci driver, use the new function virPCIDeviceFindBestVFIOVariant() to see if the running kernel has a VFIO variant driver available that is a better match for

Re: [PATCH v3 12/13] conf: support manually specifying VFIO variant driver in XML

2024-01-05 Thread Laine Stump
On 1/5/24 7:36 AM, Peter Krempa wrote: On Fri, Jan 05, 2024 at 03:20:15 -0500, Laine Stump wrote: This patch makes it possible to manually specify which VFIO variant driver to use for PCI hostdev device assignment, so that, e.g. you could force use of a VFIO "variant" driver, with e.g. or

Re: [PATCH 0/6] qemu: Update capabilities and add support for assigning multiple iothreads to a virtio-blk device

2024-01-05 Thread Ján Tomko
On a Thursday in 2024, Peter Krempa wrote: See 4/6 for docs, 6/6 for examples Peter Krempa (6): qemucapabilitiesdata: Add data for the qemu-9.0 development cycle util: xml: Return GPtrArray from virXMLNodeGetSubelement qemu: capabilities: Introduce QEMU_CAPS_VIRTIO_BLK_IOTHREAD_MAPPING conf:

Re: [PATCH 5/6] qemu: Implement support for configuring iothread to virtqueue mapping for disks

2024-01-05 Thread Ján Tomko
On a Thursday in 2024, Peter Krempa wrote: Add validation and formatting of the commandline arguments for 'iothread-vq-mapping' parameter. The validation logic mirrors waht qemu what allows. Signed-off-by: Peter Krempa --- src/hypervisor/domain_driver.c | 15 - src/qemu/qemu_command.c

Re: [PATCH v3 13/13] qemu: automatically bind to a vfio variant driver, if available

2024-01-05 Thread Peter Krempa
On Fri, Jan 05, 2024 at 10:06:13 -0500, Laine Stump wrote: > On 1/5/24 8:46 AM, Peter Krempa wrote: > > On Fri, Jan 05, 2024 at 03:20:16 -0500, Laine Stump wrote: > > > Rather than always binding to the vfio-pci driver, use the new > > > function virPCIDeviceFindBestVFIOVariant() to see if the runn

Re: [PATCH v3 01/13] util: properly deal with VFIO module name vs. driver name

2024-01-05 Thread Laine Stump
On 1/5/24 9:22 AM, Peter Krempa wrote: On Fri, Jan 05, 2024 at 03:20:04 -0500, Laine Stump wrote: Historically libvirt hasn't differentiated between the name of a loadable kernel module, and the name of the device driver that module implements, but these two names can be (and usually are) at lea

Re: [PATCH v3 13/13] qemu: automatically bind to a vfio variant driver, if available

2024-01-05 Thread Laine Stump
On 1/5/24 10:30 AM, Peter Krempa wrote: On Fri, Jan 05, 2024 at 10:06:13 -0500, Laine Stump wrote: On 1/5/24 8:46 AM, Peter Krempa wrote: On Fri, Jan 05, 2024 at 03:20:16 -0500, Laine Stump wrote: Rather than always binding to the vfio-pci driver, use the new function virPCIDeviceFindBestVFIOV

[libvirt PATCH 0/3] Introduce VIR_MIGRATE_POSTCOPY_PREEMPT flag

2024-01-05 Thread Jiri Denemark
See 1/3 for details. https://issues.redhat.com/browse/RHEL-7100 Jiri Denemark (3): Introduce VIR_MIGRATE_POSTCOPY_PREEMPT flag virsh migrate: Add --postcopy-preempt option qemu_migration: Implement VIR_MIGRATE_POSTCOPY_PREEMPT docs/manpages/virsh.rst | 9 ++--- include/libvi

[libvirt PATCH 1/3] Introduce VIR_MIGRATE_POSTCOPY_PREEMPT flag

2024-01-05 Thread Jiri Denemark
During post-copy migration (once it actually switches to post-copy mode) dirty memory pages are continued to be migrated iteratively, while the destination can explicitly request a specific page to be migrated before the iterative process gets to it (which happens when a guest wants to read a page

[libvirt PATCH 3/3] qemu_migration: Implement VIR_MIGRATE_POSTCOPY_PREEMPT

2024-01-05 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/qemu/qemu_migration.c| 21 ++--- src/qemu/qemu_migration.h| 1 + src/qemu/qemu_migration_params.c | 6 ++ src/qemu/qemu_migration_params.h | 1 + 4 files changed, 26 insertions(+), 3 deletions(-) diff --git a/src/qemu/qe

[libvirt PATCH 2/3] virsh migrate: Add --postcopy-preempt option

2024-01-05 Thread Jiri Denemark
This new option will enable VIR_MIGRATE_POSTCOPY_PREEMPT flag. Signed-off-by: Jiri Denemark --- docs/manpages/virsh.rst | 9 ++--- tools/virsh-domain.c| 6 ++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/docs/manpages/virsh.rst b/docs/manpages/virsh.rst index ed102

Re: [libvirt PATCH 0/3] Introduce VIR_MIGRATE_POSTCOPY_PREEMPT flag

2024-01-05 Thread Ján Tomko
On a Friday in 2024, Jiri Denemark wrote: See 1/3 for details. https://issues.redhat.com/browse/RHEL-7100 Jiri Denemark (3): Introduce VIR_MIGRATE_POSTCOPY_PREEMPT flag virsh migrate: Add --postcopy-preempt option qemu_migration: Implement VIR_MIGRATE_POSTCOPY_PREEMPT docs/manpages/virsh.rs

Re: [libvirt PATCH 1/3] Introduce VIR_MIGRATE_POSTCOPY_PREEMPT flag

2024-01-05 Thread Peter Krempa
On Fri, Jan 5, 2024 at 4:55 PM Jiri Denemark wrote: > During post-copy migration (once it actually switches to post-copy mode) > dirty memory pages are continued to be migrated iteratively, while the > destination can explicitly request a specific page to be migrated before > the iterative proces

Re: Re: [libvirt PATCH 1/3] Introduce VIR_MIGRATE_POSTCOPY_PREEMPT flag

2024-01-05 Thread Jiri Denemark
On Fri, Jan 05, 2024 at 17:11:57 +0100, Peter Krempa wrote: > On Fri, Jan 5, 2024 at 4:55 PM Jiri Denemark wrote: > > > During post-copy migration (once it actually switches to post-copy mode) > > dirty memory pages are continued to be migrated iteratively, while the > > destination can explicitl

Re: [PATCH v2 1/4] conf: Introduce dynamicMemslots attribute for virtio-mem

2024-01-05 Thread David Hildenbrand
On 05.01.24 14:58, Peter Krempa wrote: On Fri, Jan 05, 2024 at 14:34:53 +0100, David Hildenbrand wrote: On 05.01.24 13:40, Peter Krempa wrote: On Fri, Jan 05, 2024 at 13:33:32 +0100, Michal Privoznik wrote: Introduced in v8.2.0-rc0~74^2~2, QEMU now allows setting .dynamic-memslots attribute fo

Re: [PATCH v3 01/13] util: properly deal with VFIO module name vs. driver name

2024-01-05 Thread Peter Krempa
On Fri, Jan 05, 2024 at 03:20:04 -0500, Laine Stump wrote: > Historically libvirt hasn't differentiated between the name of a > loadable kernel module, and the name of the device driver that module > implements, but these two names can be (and usually are) at least > subtly different. > > For exam

Re: [PATCH v3 01/13] util: properly deal with VFIO module name vs. driver name

2024-01-05 Thread Peter Krempa
On Fri, Jan 05, 2024 at 10:33:33 -0500, Laine Stump wrote: > On 1/5/24 9:22 AM, Peter Krempa wrote: > > On Fri, Jan 05, 2024 at 03:20:04 -0500, Laine Stump wrote: [...] > > > Change from V1: I tried to simplify the explanation in the commit log > > > message > > > > I don't think this addresses

Re: [PATCH v3 01/13] util: properly deal with VFIO module name vs. driver name

2024-01-05 Thread Laine Stump
On 1/5/24 3:03 PM, Peter Krempa wrote: On Fri, Jan 05, 2024 at 03:20:04 -0500, Laine Stump wrote: Historically libvirt hasn't differentiated between the name of a loadable kernel module, and the name of the device driver that module implements, but these two names can be (and usually are) at lea