RE: [RFC PATCH v5 13/26] x86/sgx: Add helpers to expose ECREATE and EINIT to KVM

Huang, Kai
2021-02-16T09:34:05Z

> > > > > > +EXPORT_SYMBOL_GPL(sgx_virt_einit);
> > > >
> > > > Remove exports.
> > >
> > > Why? KVM needs to use them in later patches.
> >
> > Because they are only required for LKM's.
>
> I mean when LKM needs to call kernel functions.
>
> Right, KVM can be compiled as LKM.

Just to confirm, you are OK with exposing them as symbol, since KVM (as a module) needs to use them, right?