Re: [PATCH RFC 00/12] Support throttle block filters

2024-04-11 Thread Chun Feng Wu
I addressed those comments in v2 https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/5Z3J4SSEFWPZGN436HUGP2M6G4NPCWNW/ On 2024/4/10 16:08, Peter Krempa wrote: On Tue, Apr 09, 2024 at 20:13:08 -0700, w...@linux.ibm.com wrote: From: Chun Feng Wu Hi, I am thinking to

[PATCH RFC v2 12/12] config: validate: Verify throttle group fields

2024-04-11 Thread wucf
From: Hao Ning Xin Both throttlegroup and iotune share the same fields, so they share the same verification logic Signed-off-by: Hao Ning Xin --- src/conf/domain_validate.c | 98 +- 1 file changed, 64 insertions(+), 34 deletions(-) diff --git

[PATCH RFC v2 10/12] virsh: Add support for throttle group operations

2024-04-11 Thread wucf
From: Chun Feng Wu * Add new cmds: throttlegroupset, throttlegrouplist, throttlegroupinfo, throttlegroupdel * Update "attach_disk" to support new option: throttle-groups to form filter chain in QEMU for specific disk Signed-off-by: Chun Feng Wu --- tools/virsh-completer-domain.c | 64

[PATCH RFC v2 11/12] config: validate: Use "iotune" and "throttlefilters" exclusively for specific disk

2024-04-11 Thread wucf
From: Yan Xiu Wu No need to use both "iotune" and "throttlefilters" for specific disk Signed-off-by: Yan Xiu Wu --- src/conf/domain_validate.c | 8 src/qemu/qemu_driver.c | 6 ++ 2 files changed, 14 insertions(+) diff --git a/src/conf/domain_validate.c

[PATCH RFC v2 08/12] test: Test throttle group lifecycle APIs

2024-04-11 Thread wucf
From: Chun Feng Wu * Test "Set": testDomainSetThrottleGroup * Test "Get": testDomainGetThrottleGroup * Test "Del": testDomainDelThrottleGroup Signed-off-by: Chun Feng Wu --- src/test/test_driver.c | 382 + 1 file changed, 382 insertions(+) diff --git

[PATCH RFC v2 09/12] tests: Test qemuMonitorJSONGetThrottleGroup and qemuMonitorJSONUpdateThrottleGroup

2024-04-11 Thread wucf
From: Chun Feng Wu Within "testQemuMonitorJSONqemuMonitorJSONUpdateThrottleGroup" * Test qemuMonitorJSONGetThrottleGroup * Test qemuMonitorJSONUpdateThrottleGroup, which updates limits through "qom-set" Signed-off-by: Chun Feng Wu --- tests/qemumonitorjsontest.c | 88

[PATCH RFC v2 07/12] schema: Add new domain elements to support multiple throttle filters

2024-04-11 Thread wucf
From: Chun Feng Wu * Add new elements '' and '' * contains defintions * can include multiple throttlegroup references to form filter chain in qemu * Chained throttle filters feature in qemu is described at https://github.com/qemu/qemu/blob/master/docs/throttle.txt Signed-off-by: Chun Feng

[PATCH RFC v2 05/12] qemu: hotplug: Support hot attach block disk along with throttle filters

2024-04-11 Thread wucf
From: Chun Feng Wu When attaching disk along with specified throttle groups, those groups will be chained up by parent node name, this change includes service side codes: * Each filter references one throttle group by group name * Each filter has a nodename, and those filters are chained up in

[PATCH RFC v2 06/12] qemu: command: Support throttle groups and filters during qemuProcessLaunch

2024-04-11 Thread wucf
From: Chun Feng Wu * Add qemuBuildThrottleGroupCommandLine in qemuBuildCommandLine * Add qemuBuildThrottleFiltersCommandLine in qemuBuildDiskCommandLine * Make sure referenced throttle group exists Signed-off-by: Chun Feng Wu --- src/conf/domain_validate.c | 14 ++ src/qemu/qemu_command.c

[PATCH RFC v2 04/12] qemu: Implement qemu driver for throttle API

2024-04-11 Thread wucf
From: Chun Feng Wu Implement the following methods: * virDomainSetThrottleGroup * virDomainGetThrottleGroup * virDomainDelThrottleGroup Signed-off-by: Chun Feng Wu --- src/qemu/qemu_domain.c | 14 ++ src/qemu/qemu_domain.h | 4 + src/qemu/qemu_driver.c | 523

[PATCH RFC v2 03/12] remote: New APIs for ThrottleGroup lifecycle management

2024-04-11 Thread wucf
From: Chun Feng Wu Support throttlegroup lifecycle management by the following implementation: * New methods defined in "include/libvirt/libvirt-domain.h" * And they're exported in "src/libvirt_public.syms" * Corresponding internal API is defined in "src/driver-hypervisor.h" * Public API calls

[PATCH RFC v2 02/12] qemu: monitor: Add support for ThrottleGroup operations

2024-04-11 Thread wucf
From: Chun Feng Wu * ThrottleGroup is updated through "qemuMonitorJSONUpdateThrottleGroup" * ThrottleGroup is retrieved through "qemuMonitorJSONGetThrottleGroup" * ThrottleGroup is deleted by reusing "qemuMonitorDelObject" * ThrottleGroup is added by reusing "qemuMonitorAddObject" *

[PATCH RFC v2 01/12] config: Introduce ThrottleGroup and ThrottleFilter

2024-04-11 Thread wucf
From: Chun Feng Wu * Define new structs 'virDomainThrottleGroupDef' and 'virDomainThrottleFilterDef' * Update _virDomainDef to include virDomainThrottleGroupDef * Update _virDomainDiskDef to include virDomainThrottleFilterDef * Support new resource operations for DOM XML and structs,

[PATCH RFC v2 00/12] Support throttle block filters

2024-04-11 Thread wucf
From: Chun Feng Wu Hi, I am thinking to leverage "throttle block filter" in QEMU to support more flexible I/O limits(e.g. tiered I/O groups), one sample provided by QEMU doc is: https://github.com/qemu/qemu/blob/master/docs/throttle.txt "For example, let's say that we have three different

[PATCH v2 3/3] qemu: Generate command line for sound devices with model 'virtio'

2024-04-11 Thread Rayhan Faizel
Allow generation of command line for virtio-sound-pci and virtio-sound-device devices along with additional virtio options. A new testcase is added to test virtio-sound-pci. The arm-vexpressa9-virtio testcase is also extended to test virtio-sound-device. Signed-off-by: Rayhan Faizel ---

[PATCH v2 2/3] conf: Introduce support for virtio-sound devices

2024-04-11 Thread Rayhan Faizel
This patch adds parsing of the virtio sound model, along with parsing of virtio options and PCI/virtio-mmio address assignment. A new 'streams' attribute is added for configuring number of PCM streams (default is 2) in virtio sound devices. QEMU additionally has jacks and chmaps parameters but

[PATCH v2 1/3] qemu_capabilities: Add QEMU_CAPS_DEVICE_VIRTIO_SOUND capability

2024-04-11 Thread Rayhan Faizel
Signed-off-by: Rayhan Faizel --- src/qemu/qemu_capabilities.c | 3 +++ src/qemu/qemu_capabilities.h | 1 + tests/qemucapabilitiesdata/caps_8.2.0_aarch64.xml | 1 + tests/qemucapabilitiesdata/caps_8.2.0_armv7l.xml | 1 +

[PATCH v2 0/3] qemu: Add support for virtio sound model

2024-04-11 Thread Rayhan Faizel
virtio-sound-pci and virtio-sound-device were recently introduced in QEMU 8.2.0. The full documentation of the virtio sound implementation in QEMU can be found here: https://www.qemu.org/docs/master/system/devices/virtio-snd.html Example: [Changes in v2] - Added missing break statement that

Re: [RFC PATCH v1 5/5] node_device_udev: Rename `th` to `udevThread`

2024-04-11 Thread Boris Fiuczynski
Makes sens and also adding the prefix to the other three attributes you mentioned in you follow up email. To all four... Reviewed-by: Boris Fiuczynski On 4/3/24 16:03, Marc Hartmayer wrote: The new thread name makes it easier to understand the purpose of the thread. Signed-off-by: Marc

Re: [RFC PATCH v1 4/5] node_device_udev: Take lock if driver->privateData is modified

2024-04-11 Thread Boris Fiuczynski
Reviewed-by: Boris Fiuczynski On 4/3/24 16:03, Marc Hartmayer wrote: Since @driver->privateData is modified take the lock. Question: In theory we could take the udevEventData->mdevctlLock? Isn't that protecting the access to the mdevctlMonitor? On the first sight scheduleMdevctlUpdate does

Re: [RFC PATCH v1 3/5] node_device_udev: Add comments about locking

2024-04-11 Thread Boris Fiuczynski
Reviewed-by: Boris Fiuczynski On 4/3/24 16:03, Marc Hartmayer wrote: Commit a99d876a0f58 ("node_device: Use automatic mutex management") replaced the locking mechanism and accidentally removed the comment with the reason why the lock is taken. Restore this comment and add a new comment about

Re: [RFC PATCH v1 2/5] node_device_udev: Test for mdevctlTimeout != -1

2024-04-11 Thread Boris Fiuczynski
Reviewed-by: Boris Fiuczynski On 4/3/24 16:03, Marc Hartmayer wrote: It is done a little differently everywhere in libvirt, but most common is to test for != -1. Signed-off-by: Marc Hartmayer --- src/node_device/node_device_udev.c | 7 --- 1 file changed, 4 insertions(+), 3

Re: [RFC PATCH v1 1/5] node_device_udev: Remove the timeout if the data is disposed

2024-04-11 Thread Boris Fiuczynski
Reviewed-by: Boris Fiuczynski On 4/3/24 16:03, Marc Hartmayer wrote: Remove the timeout when the udevEventData is disposed, analogous to priv->watch. Signed-off-by: Marc Hartmayer --- src/node_device/node_device_udev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH 3/3] qemu: Generate command line for sound devices with model 'virtio'

2024-04-11 Thread Rayhan Faizel
Allow generation of command line for virtio-sound-pci and virtio-sound-device devices along with additional virtio options. A new testcase is added to test virtio-sound-pci. The arm-vexpressa9-virtio testcase is also extended to test virtio-sound-device. Signed-off-by: Rayhan Faizel ---

[PATCH 2/3] conf: Introduce support for virtio-sound devices

2024-04-11 Thread Rayhan Faizel
This patch adds parsing of the virtio sound model, along with parsing of virtio options and PCI/virtio-mmio address assignment. A new 'streams' attribute is added for configuring number of PCM streams (default is 2) in virtio sound devices. QEMU additionally has jacks and chmaps parameters but

[PATCH 0/3] qemu: Add support for virtio sound model

2024-04-11 Thread Rayhan Faizel
virtio-sound-pci and virtio-sound-device were recently introduced in QEMU 8.2.0. The full documentation of the virtio sound implementation in QEMU can be found here: https://www.qemu.org/docs/master/system/devices/virtio-snd.html Example: Rayhan Faizel (3): qemu_capabilities: Add

[PATCH 1/3] qemu_capabilities: Add QEMU_CAPS_DEVICE_VIRTIO_SOUND capability

2024-04-11 Thread Rayhan Faizel
Signed-off-by: Rayhan Faizel --- src/qemu/qemu_capabilities.c | 3 +++ src/qemu/qemu_capabilities.h | 1 + tests/qemucapabilitiesdata/caps_8.2.0_aarch64.xml | 1 + tests/qemucapabilitiesdata/caps_8.2.0_armv7l.xml | 1 +

Re: [PATCH-for-9.1 v2 2/3] migration: Remove RDMA protocol handling

2024-04-11 Thread Peter Xu
On Wed, Apr 10, 2024 at 09:49:15AM -0400, Peter Xu wrote: > On Wed, Apr 10, 2024 at 02:28:59AM +, Zhijian Li (Fujitsu) via wrote: > > > > > > on 4/10/2024 3:46 AM, Peter Xu wrote: > > > > >> Is there document/link about the unittest/CI for migration tests, Why > > >> are those tests