Re: [PATCH v3 05/25] x86/sgx: Introduce virtual EPC for use by KVM guests

Kai Huang
2021-04-05T21:46:55Z

On Mon, 5 Apr 2021 11:01:51 +0200 Borislav Petkov wrote:
> On Fri, Mar 19, 2021 at 08:22:21PM +1300, Kai Huang wrote:
> > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
> > index 35391e94bd22..007912f67a06 100644
> > --- a/arch/x86/Kconfig
> > +++ b/arch/x86/Kconfig
> > @@ -1942,6 +1942,18 @@ config X86_SGX
> >
> > If unsure, say N.
> >
> > +config X86_SGX_KVM
> > + bool "Software Guard eXtensions (SGX) Virtualization"
> > + depends on X86_SGX && KVM_INTEL
> > + help
>
> It seems to me this would fit better under "Virtualization" because even
> if I want to enable it, I have to go enable KVM_INTEL first and then
> return back here to turn it on too.
>
> And under "Virtualization" is where we enable all kinds of aspects which
> belong to it.

Fine to me. Please let me know if you want me to resend patches. Thanks.