From 4757f653ca61dee2cbf1fc79c6327cea52bfad91 Mon Sep 17 00:00:00 2001 From: Jiabo Feng Date: Thu, 12 Dec 2024 20:29:06 +0800 Subject: [PATCH] libvirt update to version 9.10.0-14: - Bugfix: Enhance the capability to trace the shutdown status of large VMS - conf: qemu: support provide inject secret for Hygon CSV - conf: qemu: add libvirt support reuse id for hygon CSV - Automatically unbind all devices' driver under same root port and bind to vfio-pci in the context of CVM. - Consistent coding style with opensource. - build: Make daemons depend on generated *_protocol.[ch] - Add the get tmm memory info API into libvirt-host. Also should add the RPC calls into libvirtd for API calling. - Add cvm parameter into the type of LaunchSecurity which is a optional filed for libvirt xml Signed-off-by: Jiabo Feng (cherry picked from commit d6a30a53977380d182cdf5f873c4ceb1ec29a85a) --- ...r-into-the-type-of-LaunchSecurity-wh.patch | 189 +++++++ ...memory-info-API-into-libvirt-host.-A.patch | 509 ++++++++++++++++++ ...bind-all-devices-driver-under-same-r.patch | 151 ++++++ ...he-capability-to-trace-the-shutdown-.patch | 66 +++ Consistent-coding-style-with-opensource.patch | 49 ++ ...ns-depend-on-generated-_protocol.-ch.patch | 91 ++++ ...bvirt-support-reuse-id-for-hygon-CSV.patch | 89 +++ ...t-provide-inject-secret-for-Hygon-CS.patch | 129 +++++ libvirt.spec | 20 +- 9 files changed, 1292 insertions(+), 1 deletion(-) create mode 100644 Add-cvm-parameter-into-the-type-of-LaunchSecurity-wh.patch create mode 100644 Add-the-get-tmm-memory-info-API-into-libvirt-host.-A.patch create mode 100644 Automatically-unbind-all-devices-driver-under-same-r.patch create mode 100644 Bugfix-Enhance-the-capability-to-trace-the-shutdown-.patch create mode 100644 Consistent-coding-style-with-opensource.patch create mode 100644 build-Make-daemons-depend-on-generated-_protocol.-ch.patch create mode 100644 conf-qemu-add-libvirt-support-reuse-id-for-hygon-CSV.patch create mode 100644 conf-qemu-support-provide-inject-secret-for-Hygon-CS.patch diff --git a/Add-cvm-parameter-into-the-type-of-LaunchSecurity-wh.patch b/Add-cvm-parameter-into-the-type-of-LaunchSecurity-wh.patch new file mode 100644 index 0000000..3178050 --- /dev/null +++ b/Add-cvm-parameter-into-the-type-of-LaunchSecurity-wh.patch @@ -0,0 +1,189 @@ +From ddf9053ad7df4553ec4abb04370e74f90bb134cf Mon Sep 17 00:00:00 2001 +From: ikarosYuuki +Date: Fri, 2 Aug 2024 14:16:37 +0800 +Subject: [PATCH] Add cvm parameter into the type of LaunchSecurity which is a + optional filed for libvirt xml. Its purpose is to pass the cvm parameter + through to qemu. Also this patch support virsh edit to save cvm parameter + into libvirt temporary xml. + +--- + src/conf/domain_conf.c | 4 ++++ + src/conf/domain_conf.h | 1 + + src/conf/schemas/domaincommon.rng | 9 +++++++++ + src/qemu/qemu_command.c | 5 +++++ + src/qemu/qemu_driver.c | 8 ++++++++ + src/qemu/qemu_firmware.c | 1 + + src/qemu/qemu_namespace.c | 1 + + src/qemu/qemu_process.c | 1 + + src/qemu/qemu_validate.c | 2 ++ + 9 files changed, 32 insertions(+) + +diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c +index 4798d01d12..db49355788 100644 +--- a/src/conf/domain_conf.c ++++ b/src/conf/domain_conf.c +@@ -1516,6 +1516,7 @@ VIR_ENUM_IMPL(virDomainLaunchSecurity, + "", + "sev", + "s390-pv", ++ "cvm", + ); + + typedef enum { +@@ -3829,6 +3830,7 @@ virDomainSecDefFree(virDomainSecDef *def) + g_free(def->data.sev.session); + break; + case VIR_DOMAIN_LAUNCH_SECURITY_PV: ++ case VIR_DOMAIN_LAUNCH_SECURITY_CVM: + case VIR_DOMAIN_LAUNCH_SECURITY_NONE: + case VIR_DOMAIN_LAUNCH_SECURITY_LAST: + break; +@@ -13570,6 +13572,7 @@ virDomainSecDefParseXML(xmlNodePtr lsecNode, + return NULL; + break; + case VIR_DOMAIN_LAUNCH_SECURITY_PV: ++ case VIR_DOMAIN_LAUNCH_SECURITY_CVM: + break; + case VIR_DOMAIN_LAUNCH_SECURITY_NONE: + case VIR_DOMAIN_LAUNCH_SECURITY_LAST: +@@ -26614,6 +26617,7 @@ virDomainSecDefFormat(virBuffer *buf, virDomainSecDef *sec) + } + + case VIR_DOMAIN_LAUNCH_SECURITY_PV: ++ case VIR_DOMAIN_LAUNCH_SECURITY_CVM: + break; + + case VIR_DOMAIN_LAUNCH_SECURITY_NONE: +diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h +index e8a75afa2c..a687895726 100644 +--- a/src/conf/domain_conf.h ++++ b/src/conf/domain_conf.h +@@ -2858,6 +2858,7 @@ typedef enum { + VIR_DOMAIN_LAUNCH_SECURITY_NONE, + VIR_DOMAIN_LAUNCH_SECURITY_SEV, + VIR_DOMAIN_LAUNCH_SECURITY_PV, ++ VIR_DOMAIN_LAUNCH_SECURITY_CVM, + + VIR_DOMAIN_LAUNCH_SECURITY_LAST, + } virDomainLaunchSecurity; +diff --git a/src/conf/schemas/domaincommon.rng b/src/conf/schemas/domaincommon.rng +index b98a2ae602..f31603b2fd 100644 +--- a/src/conf/schemas/domaincommon.rng ++++ b/src/conf/schemas/domaincommon.rng +@@ -520,6 +520,9 @@ + s390-pv + + ++ ++ ++ + + + +@@ -565,6 +568,12 @@ + + + ++ ++ ++ cvm ++ ++ ++ +