- 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 <fengjiabo1@huawei.com> (cherry picked from commit d6a30a53977380d182cdf5f873c4ceb1ec29a85a)
50 lines
1.6 KiB
Diff
50 lines
1.6 KiB
Diff
From 10972b18fd6d91a82bc4be81b21a2db72224e8a0 Mon Sep 17 00:00:00 2001
|
|
From: lihhua <lihuhua@huawei.com>
|
|
Date: Tue, 3 Sep 2024 10:40:35 +0800
|
|
Subject: [PATCH] Consistent coding style with opensource.
|
|
|
|
---
|
|
src/qemu/qemu_driver.c | 12 ++++++++++++
|
|
src/remote/remote_driver.c | 2 +-
|
|
2 files changed, 13 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
|
|
index 5a5aa28449..df275c403c 100644
|
|
--- a/src/qemu/qemu_driver.c
|
|
+++ b/src/qemu/qemu_driver.c
|
|
@@ -20051,6 +20051,18 @@ qemuConnectTmmInfoListAppend(char **format,
|
|
return ret;
|
|
}
|
|
|
|
+/*
|
|
+* The format of baseMeminfo should be:
|
|
+* available: X num nodes (1 2 3 4)
|
|
+* numa node 0 size: XXXMi
|
|
+* numa node 0 free: XXXMi
|
|
+* ...
|
|
+*
|
|
+* The format of slabInfo should be:
|
|
+* numa node 0 td meta_data cnt: xxx
|
|
+* numa node 0 td meta_data free cnt: xxx
|
|
+* ...
|
|
+*/
|
|
static char *
|
|
qemuConnectTmmDetailInfoFormat(char *baseMeminfo,
|
|
char *slabInfo)
|
|
diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
|
|
index 4b9ad30ed6..82d4c968ea 100644
|
|
--- a/src/remote/remote_driver.c
|
|
+++ b/src/remote/remote_driver.c
|
|
@@ -7876,7 +7876,7 @@ static virHypervisorDriver hypervisor_driver = {
|
|
.domainStartDirtyRateCalc = remoteDomainStartDirtyRateCalc, /* 7.2.0 */
|
|
.domainSetLaunchSecurityState = remoteDomainSetLaunchSecurityState, /* 8.0.0 */
|
|
.domainFDAssociate = remoteDomainFDAssociate, /* 9.0.0 */
|
|
- .connectGetTmmMemoryInfo = remoteConnectGetTmmMemoryInfo /* 9.0.0 */
|
|
+ .connectGetTmmMemoryInfo = remoteConnectGetTmmMemoryInfo, /* 9.0.0 */
|
|
};
|
|
|
|
static virNetworkDriver network_driver = {
|
|
--
|
|
2.41.0.windows.1
|
|
|