Re: [PATCH v2 06/25] x86/cpu/intel: Allow SGX virtualization without Launch Control support

2021-03-12 Thread Sean Christopherson
On Tue, Mar 09, 2021, Kai Huang wrote: > + if (cpu_has(c, X86_FEATURE_SGX) && IS_ENABLED(CONFIG_X86_SGX)) { > + /* > + * Separate out SGX driver enabling from KVM. This allows KVM > + * guests to use SGX even if the kernel SGX driver refuses to > +

[PATCH v2 06/25] x86/cpu/intel: Allow SGX virtualization without Launch Control support

2021-03-08 Thread Kai Huang
From: Sean Christopherson The kernel will currently disable all SGX support if the hardware does not support launch control. Make it more permissive to allow SGX virtualization on systems without Launch Control support. This will allow KVM to expose SGX to guests that have less-strict