Only invoke the underlying cpuid instruction if the real CPU might support
authorguenther <guenther@openbsd.org>
Wed, 19 Jan 2022 19:39:42 +0000 (19:39 +0000)
committerguenther <guenther@openbsd.org>
Wed, 19 Jan 2022 19:39:42 +0000 (19:39 +0000)
commite1c2dbc7e0caae89526ea1ea599dc1ec35c00c8a
treed8d305c3f0d6055ef27b722816c4bd63ad002ace
parent9c1e5562d7d86319839f2142a88e9099409dc83d
Only invoke the underlying cpuid instruction if the real CPU might support
the leaf (<=cpuid_level) and always pass the subleaf.  Delete the
CPUID_LEAF() calls made superfluous by always passing the subleaf.

ok mlarkin@
sys/arch/amd64/amd64/vmm.c