diff options
author | Yang Zhong <yang.zhong@intel.com> | 2021-09-10 18:22:57 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-09-30 15:30:24 +0200 |
commit | 0205c4fa1ea35d569b4c2f63adacef438c1e8f53 (patch) | |
tree | 2876a4723cc5e9bb38e38c8487f46f2f71ae3af7 /target/i386/monitor.c | |
parent | 57d874c4c7a0acbaa076a166e3da093b6edbdb0f (diff) | |
download | qemu-0205c4fa1ea35d569b4c2f63adacef438c1e8f53.zip qemu-0205c4fa1ea35d569b4c2f63adacef438c1e8f53.tar.gz qemu-0205c4fa1ea35d569b4c2f63adacef438c1e8f53.tar.bz2 |
target/i386: Add the query-sgx-capabilities QMP command
Libvirt can use query-sgx-capabilities to get the host
sgx capabilities to decide how to allocate SGX EPC size to VM.
Signed-off-by: Yang Zhong <yang.zhong@intel.com>
Message-Id: <20210910102258.46648-3-yang.zhong@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/monitor.c')
-rw-r--r-- | target/i386/monitor.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target/i386/monitor.c b/target/i386/monitor.c index d7384ba..196c1c9 100644 --- a/target/i386/monitor.c +++ b/target/i386/monitor.c @@ -790,3 +790,8 @@ void hmp_info_sgx(Monitor *mon, const QDict *qdict) monitor_printf(mon, "size: %" PRIu64 "\n", info->section_size); } + +SGXInfo *qmp_query_sgx_capabilities(Error **errp) +{ + return sgx_get_capabilities(errp); +} |