[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 14/18] qapi/qom: Add ObjectOptions for sev-guest
From: |
Kevin Wolf |
Subject: |
[PATCH 14/18] qapi/qom: Add ObjectOptions for sev-guest |
Date: |
Mon, 30 Nov 2020 13:25:34 +0100 |
This adds a QAPI schema for the properties of the sev-guest object.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
---
qapi/qom.json | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/qapi/qom.json b/qapi/qom.json
index 24bfa83af5..43d081cb42 100644
--- a/qapi/qom.json
+++ b/qapi/qom.json
@@ -621,6 +621,38 @@
'base': 'RngProperties',
'data': { '*filename': 'str' } }
+##
+# @SevGuestProperties:
+#
+# Properties for sev-guest objects.
+#
+# @sev-device: SEV device to use (default: "/dev/sev")
+#
+# @dh-cert-file: guest owners DH certificate (encoded with base64)
+#
+# @session-file: guest owners session parameters (encoded with base64)
+#
+# @policy: SEV policy value (default: 0x1)
+#
+# @handle: SEV firmware handle (default: 0)
+#
+# @cbitpos: C-bit location in page table entry (default: 0)
+#
+# @reduced-phys-bits: number of bits in physical addresses that become
+# unavailable when SEV is enabled
+#
+# Since: 6.0
+##
+{ 'struct': 'SevGuestProperties',
+ 'data': { '*sev-device': 'str',
+ '*dh-cert-file': 'str',
+ '*session-file': 'str',
+ '*policy': 'uint32',
+ '*handle': 'uint32',
+ '*cbitpos': 'uint32',
+ 'reduced-phys-bits': 'uint32' },
+ 'if': 'defined(CONFIG_SEV)' }
+
##
# @ObjectType:
#
@@ -655,6 +687,7 @@
'rng-random',
'secret',
'secret_keyring',
+ {'name': 'sev-guest', 'if': 'defined(CONFIG_SEV)' },
'throttle-group',
'tls-creds-anon',
'tls-creds-psk',
@@ -704,6 +737,8 @@
'rng-random': 'RngRandomProperties',
'secret': 'SecretProperties',
'secret_keyring': 'SecretKeyringProperties',
+ 'sev-guest': { 'type': 'SevGuestProperties',
+ 'if': 'defined(CONFIG_SEV)' },
'throttle-group': 'ThrottleGroupProperties',
'tls-creds-anon': 'TlsCredsAnonProperties',
'tls-creds-psk': 'TlsCredsPskProperties',
--
2.28.0
- [PATCH 06/18] qapi/qom: Add ObjectOptions for rng-*, deprecate 'opened', (continued)
- [PATCH 06/18] qapi/qom: Add ObjectOptions for rng-*, deprecate 'opened', Kevin Wolf, 2020/11/30
- [PATCH 05/18] qapi/qom: Add ObjectOptions for memory-backend-*, Kevin Wolf, 2020/11/30
- [PATCH 04/18] qapi/qom: Add ObjectOptions for dbus-vmstate, Kevin Wolf, 2020/11/30
- [PATCH 07/18] qapi/qom: Add ObjectOptions for throttle-group, Kevin Wolf, 2020/11/30
- [PATCH 08/18] qapi/qom: Add ObjectOptions for secret*, deprecate 'loaded', Kevin Wolf, 2020/11/30
- [PATCH 09/18] qapi/qom: Add ObjectOptions for tls-*, deprecate 'loaded', Kevin Wolf, 2020/11/30
- [PATCH 10/18] qapi/qom: Add ObjectOptions for can-*, Kevin Wolf, 2020/11/30
- [PATCH 11/18] qapi/qom: Add ObjectOptions for colo-compare, Kevin Wolf, 2020/11/30
- [PATCH 12/18] qapi/qom: Add ObjectOptions for filter-*, Kevin Wolf, 2020/11/30
- [PATCH 13/18] qapi/qom: Add ObjectOptions for pr-manager-helper, Kevin Wolf, 2020/11/30
- [PATCH 14/18] qapi/qom: Add ObjectOptions for sev-guest,
Kevin Wolf <=
- [PATCH 15/18] qapi/qom: Add ObjectOptions for input-*, Kevin Wolf, 2020/11/30
- [PATCH 16/18] tests: Drop 'props' from object-add calls, Kevin Wolf, 2020/11/30
- [PATCH 17/18] qapi/qom: Drop deprecated 'props' from object-add, Kevin Wolf, 2020/11/30
- [PATCH 18/18] qapi/qom: QAPIfy object-add, Kevin Wolf, 2020/11/30
- Re: [PATCH 00/18] qapi/qom: QAPIfy object-add, Paolo Bonzini, 2020/11/30
- Re: [PATCH 00/18] qapi/qom: QAPIfy object-add, Kevin Wolf, 2020/11/30