Re: [PATCH 02/13] libx86: introduce helper to fetch cpuid leaf

2023-06-20 Thread Jan Beulich
On 16.06.2023 15:10, Roger Pau Monne wrote: > Introduce a helper based on the current Xen guest_cpuid code in order > to fetch a cpuid leaf from a policy. The newly introduced function in > cpuid.c should not be directly called and instead the provided > x86_cpuid_get_leaf macro should be used that

[PATCH 02/13] libx86: introduce helper to fetch cpuid leaf

2023-06-16 Thread Roger Pau Monne
Introduce a helper based on the current Xen guest_cpuid code in order to fetch a cpuid leaf from a policy. The newly introduced function in cpuid.c should not be directly called and instead the provided x86_cpuid_get_leaf macro should be used that will properly deal with const and non-const inputs.