Re: [tip:x86/urgent] x86/CPU: Add native CPUID variants returning a single datum

From: Borislav Petkov
Date: Tue Jan 10 2017 - 04:15:52 EST


On Mon, Jan 09, 2017 at 04:19:29PM -0800, hpa@xxxxxxxxx wrote:
> Any reason to not make these interfaces (leaf, subleaf) from the start?

Two, actually:

1. I modelled them after the cpuid_<reg>(op) versions

2. I don't think we need the subleaf variant right now.

But, when we do, we can do that when we cross that bridge and add

native_cpuid_<reg>(leaf, subleaf)

which gets called by the native_cpuid_<reg>(leaf) variants.

--
Regards/Gruss,
Boris.

SUSE Linux GmbH, GF: Felix ImendÃrffer, Jane Smithard, Graham Norton, HRB 21284 (AG NÃrnberg)
--