Re: [PATCH v2 05/14] KVM: x86: Override reported SME/SEV feature flags with host mask

2021-01-28 Thread Paolo Bonzini
On 28/01/21 18:09, Sean Christopherson wrote: On Thu, Jan 28, 2021, Paolo Bonzini wrote: On 14/01/21 01:36, Sean Christopherson wrote: Add a reverse-CPUID entry for the memory encryption word, 0x801F.EAX, and use it to override the supported CPUID flags reported to userspace. Masking the re

Re: [PATCH v2 05/14] KVM: x86: Override reported SME/SEV feature flags with host mask

2021-01-28 Thread Sean Christopherson
On Thu, Jan 28, 2021, Paolo Bonzini wrote: > On 14/01/21 01:36, Sean Christopherson wrote: > > Add a reverse-CPUID entry for the memory encryption word, 0x801F.EAX, > > and use it to override the supported CPUID flags reported to userspace. > > Masking the reported CPUID flags avoids over-repor

Re: [PATCH v2 05/14] KVM: x86: Override reported SME/SEV feature flags with host mask

2021-01-28 Thread Paolo Bonzini
On 14/01/21 01:36, Sean Christopherson wrote: Add a reverse-CPUID entry for the memory encryption word, 0x801F.EAX, and use it to override the supported CPUID flags reported to userspace. Masking the reported CPUID flags avoids over-reporting KVM support, e.g. without the mask a SEV-SNP capab

Re: [PATCH v2 05/14] KVM: x86: Override reported SME/SEV feature flags with host mask

2021-01-14 Thread Brijesh Singh
On 1/13/21 6:36 PM, Sean Christopherson wrote: > Add a reverse-CPUID entry for the memory encryption word, 0x801F.EAX, > and use it to override the supported CPUID flags reported to userspace. > Masking the reported CPUID flags avoids over-reporting KVM support, e.g. > without the mask a SEV-

[PATCH v2 05/14] KVM: x86: Override reported SME/SEV feature flags with host mask

2021-01-13 Thread Sean Christopherson
Add a reverse-CPUID entry for the memory encryption word, 0x801F.EAX, and use it to override the supported CPUID flags reported to userspace. Masking the reported CPUID flags avoids over-reporting KVM support, e.g. without the mask a SEV-SNP capable CPU may incorrectly advertise SNP support to