diff --git a/libvirt.spec b/libvirt.spec index a8c6c9935cfcc5260832bf41d6f7d88395dfdcb7..00a28d497033cea1e8185b5d7ff3292c255759a3 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -101,7 +101,7 @@ Summary: Library providing a simple virtualization API Name: libvirt Version: 6.2.0 -Release: 61 +Release: 62 License: LGPLv2+ URL: https://libvirt.org/ @@ -501,6 +501,13 @@ Patch0388: qemu_migration_cookie-Rename-ret-in-qemuDomainExtrac.patch Patch0389: tests-upstream-Fixing-compiler-warning-in-cputest.patch Patch0390: qemu-Return-perf-status-that-affect-next-boot-for-sh.patch Patch0391: lxc-fix-lxcContainerMountAllFS-DEREF_BEFORE_CHECK.patch +Patch0392: Include-vdpa-devices-in-node-device-list.patch +Patch0393: node_device-fix-leak-of-DIR.patch +Patch0394: vdpa-Introduce-the-new-device-type-vdpa-to-hostdev.patch +Patch0395: vdpa-support-vdpa-device-hot-plug-unplug.patch +Patch0396: vdpa-support-vdpa-device-migrate.patch +Patch0397: vdpa-return-pcieFlags-when-calculate-vdpa-passthroug.patch +Patch0398: vdpa-Release-pci-slot-address-when-unplugging-vdpa-d.patch Requires: libvirt-daemon = %{version}-%{release} Requires: libvirt-daemon-config-network = %{version}-%{release} @@ -2237,6 +2244,15 @@ exit 0 %changelog +* Wed Mar 13 2024 jiangdongxu - 6.2.0-62 +- vdpa: Release pci slot address when unplugging vdpa device +- vdpa: return pcieFlags when calculate vdpa passthrough devices. +- vdpa: support vdpa device migrate +- vdpa: support vdpa device hot plug/unplug +- vdpa: Introduce the new device type vdpa to hostdev +- node_device: fix leak of DIR* +- Include vdpa devices in node device list + * Wed Nov 29 2023 Jiabo Feng - 6.2.0-61 - lxc: fix lxcContainerMountAllFS() DEREF_BEFORE_CHECK - qemu: Return perf status that affect next boot for shutoff domains While we set up perf events for a shutoff domain and check the settings, All of perf events are reported as 'disabled', unless we add --config, This is redundant for a shutoff domain. diff --git a/vdpa-Release-pci-slot-address-when-unplugging-vdpa-d.patch b/vdpa-Release-pci-slot-address-when-unplugging-vdpa-d.patch new file mode 100644 index 0000000000000000000000000000000000000000..7a2f0b29c7019c7b94b31b6dc8b0b017af3ab999 --- /dev/null +++ b/vdpa-Release-pci-slot-address-when-unplugging-vdpa-d.patch @@ -0,0 +1,39 @@ +From 9858958385ae145196a0b95befbd9ae8f2f5ce18 Mon Sep 17 00:00:00 2001 +From: jiangdongxu1 +Date: Wed, 13 Mar 2024 15:28:47 +0800 +Subject: [PATCH] vdpa: Release pci slot address when unplugging vdpa device + +Signed-off-by: jiangdongxu1 +--- + src/qemu/qemu_hotplug.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c +index 3c5540291b..f44ac938ae 100644 +--- a/src/qemu/qemu_hotplug.c ++++ b/src/qemu/qemu_hotplug.c +@@ -4560,6 +4560,12 @@ qemuDomainRemoveMediatedDevice(virQEMUDriverPtr driver, + qemuDomainReleaseDeviceAddress(vm, hostdev->info); + } + ++static void ++qemuDomainRemoveVDPADevice(virDomainObjPtr vm, ++ virDomainHostdevDefPtr hostdev) ++{ ++ qemuDomainReleaseDeviceAddress(vm, hostdev->info); ++} + + static int + qemuDomainRemoveHostDevice(virQEMUDriverPtr driver, +@@ -4653,6 +4659,8 @@ qemuDomainRemoveHostDevice(virQEMUDriverPtr driver, + qemuDomainRemoveMediatedDevice(driver, vm, hostdev); + break; + case VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_VDPA: ++ qemuDomainRemoveVDPADevice(vm, hostdev); ++ break; + case VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_LAST: + break; + } +-- +2.27.0 + diff --git a/vdpa-return-pcieFlags-when-calculate-vdpa-passthroug.patch b/vdpa-return-pcieFlags-when-calculate-vdpa-passthroug.patch new file mode 100644 index 0000000000000000000000000000000000000000..6fbca022aa1713902247dd6bd7ca07848d2d7c13 --- /dev/null +++ b/vdpa-return-pcieFlags-when-calculate-vdpa-passthroug.patch @@ -0,0 +1,32 @@ +From 78b7156840b421becd45c13c0ff4da57c314b4a5 Mon Sep 17 00:00:00 2001 +From: jiangdongxu1 +Date: Wed, 13 Mar 2024 15:23:57 +0800 +Subject: [PATCH] vdpa: return pcieFlags when calculate vdpa passthrough + devices. + +Signed-off-by: jiangdongxu1 +--- + src/qemu/qemu_domain_address.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/src/qemu/qemu_domain_address.c b/src/qemu/qemu_domain_address.c +index 6649553486..ce40fdc928 100644 +--- a/src/qemu/qemu_domain_address.c ++++ b/src/qemu/qemu_domain_address.c +@@ -825,6 +825,13 @@ qemuDomainDeviceCalculatePCIConnectFlags(virDomainDeviceDefPtr dev, + if (hostdev->source.subsys.type == VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_MDEV) + return pcieFlags; + ++ /* ++ * vDPA passthrough is currently only support on arm architechture. ++ * Thus, we just assume it's PCI Express. ++ */ ++ if (hostdev->source.subsys.type == VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_VDPA) ++ return pcieFlags; ++ + /* according to pbonzini, from the guest PoV vhost-scsi devices + * are the same as virtio-scsi, so they should follow virtio logic + */ +-- +2.27.0 +