summaryrefslogtreecommitdiffstats
path: root/target/i386/kvm/kvm_i386.h
diff options
context:
space:
mode:
authorSean Christopherson2021-07-19 13:21:16 +0200
committerPaolo Bonzini2021-09-30 14:50:20 +0200
commitc22f5467856d7e7fa5ee4a1f0ee9edc3bb80bf5c (patch)
tree77c119aa516f544e963b7b78a2ddac0d81e5009d /target/i386/kvm/kvm_i386.h
parenti386: Update SGX CPUID info according to hardware/KVM/user input (diff)
downloadqemu-c22f5467856d7e7fa5ee4a1f0ee9edc3bb80bf5c.tar.gz
qemu-c22f5467856d7e7fa5ee4a1f0ee9edc3bb80bf5c.tar.xz
qemu-c22f5467856d7e7fa5ee4a1f0ee9edc3bb80bf5c.zip
i386: kvm: Add support for exposing PROVISIONKEY to guest
If the guest want to fully use SGX, the guest needs to be able to access provisioning key. Add a new KVM_CAP_SGX_ATTRIBUTE to KVM to support provisioning key to KVM guests. Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: Yang Zhong <yang.zhong@intel.com> Message-Id: <20210719112136.57018-14-yang.zhong@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/kvm/kvm_i386.h')
-rw-r--r--target/i386/kvm/kvm_i386.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/i386/kvm/kvm_i386.h b/target/i386/kvm/kvm_i386.h
index 54667b35f0..a978509d50 100644
--- a/target/i386/kvm/kvm_i386.h
+++ b/target/i386/kvm/kvm_i386.h
@@ -51,4 +51,6 @@ bool kvm_hyperv_expand_features(X86CPU *cpu, Error **errp);
uint64_t kvm_swizzle_msi_ext_dest_id(uint64_t address);
+bool kvm_enable_sgx_provisioning(KVMState *s);
+
#endif