]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Move lookup of indexed CPUID leafs to helper
authorMichael Roth <michael.roth@amd.com>
Thu, 24 Feb 2022 16:56:10 +0000 (10:56 -0600)
committerBorislav Petkov <bp@suse.de>
Thu, 7 Apr 2022 14:47:11 +0000 (16:47 +0200)
commit28c49419c596f9006f23afceca569212f2dd3f5a
treeb520b988f3441a2bb3822bcd61c5ce2d334c06ed
parentb32fd367e28c804bb3b5a86566d316d23296f2e4
KVM: x86: Move lookup of indexed CPUID leafs to helper

Determining which CPUID leafs have significant ECX/index values is
also needed by guest kernel code when doing SEV-SNP-validated CPUID
lookups. Move this to common code to keep future updates in sync.

Signed-off-by: Michael Roth <michael.roth@amd.com>
Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Venu Busireddy <venu.busireddy@oracle.com>
Link: https://lore.kernel.org/r/20220307213356.2797205-31-brijesh.singh@amd.com
arch/x86/include/asm/cpuid.h [new file with mode: 0644]
arch/x86/kvm/cpuid.c