KVM: pass through CPUID(0x80000006)
authorEric Northup <digitaleric@gmail.com>
Wed, 15 Apr 2020 01:23:20 +0000 (18:23 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Apr 2020 16:08:41 +0000 (12:08 -0400)
commit43d05de2bee7561b7958628b7c27c89b779de990
tree9daf60c61357743b1ad8b1b555c8f91e69a96876
parent24647e0a39b6c5ef007fa2f9a91ac8b581e093b9
KVM: pass through CPUID(0x80000006)

Return the host's L2 cache and TLB information for CPUID.0x80000006
instead of zeroing out the entry as part of KVM_GET_SUPPORTED_CPUID.
This allows a userspace VMM to feed KVM_GET_SUPPORTED_CPUID's output
directly into KVM_SET_CPUID2 (without breaking the guest).

Signed-off-by: Eric Northup (Google) <digitaleric@gmail.com>
Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Jon Cargille <jcargill@google.com>
Message-Id: <20200415012320.236065-1-jcargill@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c