[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RESEND PATCH 29/32] qmp: Add the qmp_query_sgx_capabilities()
From: |
Eric Blake |
Subject: |
Re: [RESEND PATCH 29/32] qmp: Add the qmp_query_sgx_capabilities() |
Date: |
Mon, 3 May 2021 13:00:37 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 |
On 4/30/21 1:24 AM, Yang Zhong wrote:
> The libvirt can use qmp_query_sgx_capabilities() to get the host
s/The libvirt/Libvirt/
> sgx capabilitis.
>
capabilities
> Signed-off-by: Yang Zhong <yang.zhong@intel.com>
> ---
> hw/i386/sgx-epc.c | 66 ++++++++++++++++++++++++++++++++++++++
> include/hw/i386/pc.h | 1 +
> monitor/qmp-cmds.c | 5 +++
> qapi/misc.json | 19 +++++++++++
> stubs/sgx-stub.c | 5 +++
> tests/qtest/qmp-cmd-test.c | 1 +
> 6 files changed, 97 insertions(+)
>
> +++ b/qapi/misc.json
> @@ -561,3 +561,22 @@
> #
> ##
> { 'command': 'query-sgx', 'returns': 'SGXInfo' }
> +
> +
> +##
> +# @query-sgx-capabilities:
> +#
> +# Returns information from host SGX capabilities
> +#
> +# Returns: @SGXInfo
> +#
> +# Since: 5.1
6.1
> +#
> +# Example:
> +#
> +# -> { "execute": "query-sgx-capabilities" }
> +# <- { "return": { "sgx": true, "sgx1" : true, "sgx2" : true,
> +# "flc": true, "section-size" : 0 } }
> +#
> +##
> +{ 'command': 'query-sgx-capabilities', 'returns': 'SGXInfo' }
> diff --git a/stubs/sgx-stub.c b/stubs/sgx-stub.c
> index c2b59a88fd..1dedf3f3db 100644
> --- a/stubs/sgx-stub.c
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
- Re: [RESEND PATCH 29/32] qmp: Add the qmp_query_sgx_capabilities(),
Eric Blake <=