Re: [PATCH v2 13/25] x86/sgx: Add helpers to expose ECREATE and EINIT to KVM

2021-03-14 Thread Kai Huang
On Tue, 9 Mar 2021 14:39:46 +1300 Kai Huang wrote: > From: Sean Christopherson > > The host kernel must intercept ECREATE to impose policies on guests, and > intercept EINIT to be able to write guest's virtual SGX_LEPUBKEYHASH MSR > values to hardware before running guest's EINIT so it can run co

[PATCH v2 13/25] x86/sgx: Add helpers to expose ECREATE and EINIT to KVM

2021-03-08 Thread Kai Huang
From: Sean Christopherson The host kernel must intercept ECREATE to impose policies on guests, and intercept EINIT to be able to write guest's virtual SGX_LEPUBKEYHASH MSR values to hardware before running guest's EINIT so it can run correctly according to hardware behavior. Provide wrappers aro