On Wed, Jan 06, 2021 at 02:55:21PM +1300, Kai Huang wrote: > From: Sean Christopherson <sean.j.christopherson@xxxxxxxxx> > > Add a feature word to hold SGX features enumerated via CPUID.0x12.0x0, > along with flags for SGX1 and SGX2. As part of virtualizing SGX, KVM > needs to expose the SGX CPUID leafs to its guest. SGX1 and SGX2 need to > be in a dedicated feature word so that they can be queried via KVM's > reverse CPUID lookup to properly emulate the expected guest behavior. > > Signed-off-by: Sean Christopherson <sean.j.christopherson@xxxxxxxxx> > [Kai: Also clear SGX1 and SGX2 bits in clear_sgx_caps().] > Signed-off-by: Kai Huang <kai.huang@xxxxxxxxx> Acked-by: Jarkko Sakkinen <jarkko@xxxxxxxxxx> /Jarkko