Re: [PATCH] x86/sev: Add AMD_SEV_ES_GUEST Kconfig for including SEV-ES support

From: Paolo Bonzini
Date: Mon Jan 18 2021 - 15:34:01 EST


On 18/01/21 21:29, Borislav Petkov wrote:
On Fri, Jan 15, 2021 at 04:25:17PM -0800, Sean Christopherson wrote:
Introduce a new Kconfig, AMD_SEV_ES_GUEST, to control the inclusion of
support for running as an SEV-ES guest. Pivoting on AMD_MEM_ENCRYPT for
guest SEV-ES support is undesirable for host-only kernel builds as
AMD_MEM_ENCRYPT is also required to enable KVM/host support for SEV and
SEV-ES.

Huh, what?

I'm not sure I understand what you're trying to say here and am not
convinced why yet another Kconfig symbol is needed?

I think it makes sense because AMD_SEV_ES_GUEST's #VC handling is quite a bit of code that you may not want or need. The commit message does need a rewrite though.

Paolo