Re: [libvirt PATCH] cpu-data: Pretend to always run on logical processor #0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 08, 2021 at 15:43:02 +0100, Tim Wiederhake wrote:
> The output of cpuid depends on the logical processor id the process
> runs on, as reflected by the "local apic id" present in cpuid leaves
> (eax=1,ebx=0), (eax=11,ebx=0), and (eax=11,ebx=1). This produces
> arbitrary changes in the output files that complicate comparisons.
> 
> This patch masks the occurences of the local apic id with 0x00, so
> that two consecutive runs of "./cpu-data.py gather" produce identical
> results.
> 
> Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx>
> ---
>  tests/cputestdata/cpu-data.py | 16 +++++++++++++++-
>  1 file changed, 15 insertions(+), 1 deletion(-)

Reviewed-by: Jiri Denemark <jdenemar@xxxxxxxxxx>

and pushed. Thanks.




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux