summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/cpuid.h
AgeCommit message (Collapse)AuthorFilesLines
2022-11-29x86/cpuid: Carve out all CPUID functionalityBorislav Petkov1-2/+139
Carve it out into a special header, where it belongs. No functional changes. Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lore.kernel.org/r/20221124164150.3040-1-bp@alien8.de
2022-04-07KVM: x86: Move lookup of indexed CPUID leafs to helperMichael Roth1-0/+34
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