]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Hide IA32_PLATFORM_DCA_CAP[31:0] from the guest
authorJim Mattson <jmattson@google.com>
Thu, 22 Sep 2022 23:18:54 +0000 (16:18 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 30 Sep 2022 10:38:01 +0000 (06:38 -0400)
commit4eac73cdb2d7cec60c7af64f878e8d4cb28ea3c0
tree03326d1b9bc2126b063fc0580c27bb6960c2cc8f
parent1bdf4eaf990330a646d91efa81f54e6046a5e847
KVM: x86: Hide IA32_PLATFORM_DCA_CAP[31:0] from the guest

The only thing reported by CPUID.9 is the value of
IA32_PLATFORM_DCA_CAP[31:0] in EAX. This MSR doesn't even exist in the
guest, since CPUID.1:ECX.DCA[bit 18] is clear in the guest.

Clear CPUID.9 in KVM_GET_SUPPORTED_CPUID.

Fixes: 4c6c3c2fac70 ("KVM: Sanitize cpuid")
Signed-off-by: Jim Mattson <jmattson@google.com>
Message-Id: <20220922231854.249383-1-jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c