[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 03/32] qom: Add memory-backend-epc ObjectOptions support
From: |
Yang Zhong |
Subject: |
[PATCH v2 03/32] qom: Add memory-backend-epc ObjectOptions support |
Date: |
Tue, 11 May 2021 14:20:22 +0800 |
Add the new 'memory-backend-epc' user creatable QOM object in
the ObjectOptions to support SGX since v6.1, or the sgx backend
object cannot bootup.
Signed-off-by: Yang Zhong <yang.zhong@intel.com>
v1-->v2:
- Added the new MemoryBackendEpcProperties and related documents,
and updated the blurb(Eric Blake).
---
qapi/qom.json | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/qapi/qom.json b/qapi/qom.json
index cd0e76d564..3b1822c07f 100644
--- a/qapi/qom.json
+++ b/qapi/qom.json
@@ -632,6 +632,23 @@
'*hugetlbsize': 'size',
'*seal': 'bool' } }
+##
+# @MemoryBackendEpcProperties:
+#
+# Properties for memory-backend-epc objects.
+#
+# The @share boolean option is true by default with epc
+#
+# The @merge boolean option is false by default with epc
+#
+# The @dump boolean option is false by default with epc
+#
+# Since: 6.1
+##
+{ 'struct': 'MemoryBackendEpcProperties',
+ 'base': 'MemoryBackendProperties',
+ 'data': {} }
+
##
# @PrManagerHelperProperties:
#
@@ -767,6 +784,7 @@
{ 'name': 'memory-backend-memfd',
'if': 'defined(CONFIG_LINUX)' },
'memory-backend-ram',
+ 'memory-backend-epc',
'pef-guest',
'pr-manager-helper',
'rng-builtin',
@@ -824,6 +842,7 @@
'memory-backend-memfd': { 'type': 'MemoryBackendMemfdProperties',
'if': 'defined(CONFIG_LINUX)' },
'memory-backend-ram': 'MemoryBackendProperties',
+ 'memory-backend-epc': 'MemoryBackendEpcProperties',
'pr-manager-helper': 'PrManagerHelperProperties',
'rng-builtin': 'RngProperties',
'rng-egd': 'RngEgdProperties',
--
2.29.2.334.gfaefdd61ec
- [PATCH v2 00/32] Qemu SGX virtualization, Yang Zhong, 2021/05/11
- [PATCH v2 01/32] memory: Add RAM_PROTECTED flag to skip IOMMU mappings, Yang Zhong, 2021/05/11
- [PATCH v2 02/32] hostmem: Add hostmem-epc as a backend for SGX EPC, Yang Zhong, 2021/05/11
- [PATCH v2 04/32] i386: Add 'sgx-epc' device to expose EPC sections to guest, Yang Zhong, 2021/05/11
- [PATCH v2 03/32] qom: Add memory-backend-epc ObjectOptions support,
Yang Zhong <=
- [PATCH v2 06/32] i386: Add primary SGX CPUID and MSR defines, Yang Zhong, 2021/05/11
- [PATCH v2 05/32] vl: Add "sgx-epc" option to expose SGX EPC sections to guest, Yang Zhong, 2021/05/11
- [PATCH v2 08/32] i386: Add SGX CPUID leaf FEAT_SGX_12_0_EBX, Yang Zhong, 2021/05/11
- [PATCH v2 07/32] i386: Add SGX CPUID leaf FEAT_SGX_12_0_EAX, Yang Zhong, 2021/05/11
- [PATCH v2 11/32] i386: Add feature control MSR dependency when SGX is enabled, Yang Zhong, 2021/05/11
- [PATCH v2 09/32] i386: Add SGX CPUID leaf FEAT_SGX_12_1_EAX, Yang Zhong, 2021/05/11
- [PATCH v2 10/32] i386: Add get/set/migrate support for SGX_LEPUBKEYHASH MSRs, Yang Zhong, 2021/05/11
- [PATCH v2 12/32] i386: Update SGX CPUID info according to hardware/KVM/user input, Yang Zhong, 2021/05/11
- [PATCH v2 13/32] linux-headers: Add placeholder for KVM_CAP_SGX_ATTRIBUTE, Yang Zhong, 2021/05/11
- [PATCH v2 14/32] i386: kvm: Add support for exposing PROVISIONKEY to guest, Yang Zhong, 2021/05/11