mbox series

[0/2] Limit memory encryption cpuid pass through

Message ID 20191121203344.156835-1-pgonda@google.com (mailing list archive)
Headers show
Series Limit memory encryption cpuid pass through | expand

Message

Peter Gonda Nov. 21, 2019, 8:33 p.m. UTC
KVM_GET_SUPPORTED_CPUID for 0x8000001F currently passes through all data if
X86_FEATURE_SEV is enabled. Guests only need the SEV bit and Cbit location
to work correctly. This series moves handing of this cpuid function out of
svm.c to the general x86 function and masks out host data.

Peter Gonda (2):
  KVM x86: Move kvm cpuid support out of svm
  KVM x86: Mask memory encryption guest cpuid

 arch/x86/kvm/cpuid.c | 11 +++++++++++
 arch/x86/kvm/svm.c   |  7 -------
 2 files changed, 11 insertions(+), 7 deletions(-)

Comments

Brijesh Singh Nov. 22, 2019, 2:34 p.m. UTC | #1
On 11/21/19 2:33 PM, Peter Gonda wrote:
> KVM_GET_SUPPORTED_CPUID for 0x8000001F currently passes through all data if
> X86_FEATURE_SEV is enabled. Guests only need the SEV bit and Cbit location
> to work correctly. This series moves handing of this cpuid function out of
> svm.c to the general x86 function and masks out host data.
> 
> Peter Gonda (2):
>    KVM x86: Move kvm cpuid support out of svm
>    KVM x86: Mask memory encryption guest cpuid
> 
>   arch/x86/kvm/cpuid.c | 11 +++++++++++
>   arch/x86/kvm/svm.c   |  7 -------
>   2 files changed, 11 insertions(+), 7 deletions(-)
> 

Reviewed-by: Brijesh Singh <brijesh.singh@amd.com>