]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[cpuid] Allow hypervisor CPUID leaves to be accessed as settings
authorMichael Brown <mcb30@ipxe.org>
Wed, 31 Jul 2024 15:43:27 +0000 (16:43 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 1 Aug 2024 11:54:49 +0000 (12:54 +0100)
commita064d397688930dcb341f62587db4e8e786777a0
treeb2e5e47d170d658c2dc7c5963895c081863f976c
parent121d96b903b221e2c63fa0fc5a8901dc24645a47
[cpuid] Allow hypervisor CPUID leaves to be accessed as settings

Redefine bit 30 of an SMBIOS numerical setting to be part of the
function number, in order to allow access to hypervisor CPUID leaves.

This technically breaks backwards compatibility with scripts
attempting to read more than 64 consecutive functions.  Since there is
no meaningful block of 64 consecutive related functions, it is
vanishingly unlikely that this capability has ever been used.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/core/cpuid_settings.c