On Thu, Sep 22, 2016 at 08:23:36PM +0200, Paolo Bonzini wrote:How is this even possible? The spec clearly says under SEV only in long mode or PAE mode guest can control whether memory is encrypted via c-bit, and in other modes guest will be always in encrypted mode. Guest EFI is also virtual, so are you suggesting EFI code (or code which loads EFI) should also be modified to load EFI as unencrypted? Looks it's not even possible to happen.
Unless this is part of some spec, it's easier if things are the same inYeah, I was pondering over how sprinkling sev_active checks might not be
SME and SEV.
so clean.
I'm wondering if we could make the EFI regions presented to the guest
unencrypted too, as part of some SEV-specific init routine so that the
guest kernel doesn't need to do anything different.