[0/2] Introduce x86 specific identification API

Message ID 20230922093722.2057688-1-david.marchand@redhat.com (mailing list archive)
Headers
Series Introduce x86 specific identification API |

Message

David Marchand Sept. 22, 2023, 9:37 a.m. UTC
  Rather than have every driver implement their own set of cpuid() ugly
stuff, provide an abstracted (gcc/clang vs MSVC) API for querying about
x86 processor details.

Note:
- coming up with a cross arch API seems a difficult task, hence a arch
  specific API has been preferred. If other arches have ideas how to
  abstract I am open to suggestions though I won't have the time to
  implement it for this release,
- usage of this arch specific API must not become the common practice
  and maintainers will have to be wary that drivers are still working
  fine with generic/common processor/arch features,