Re: [libvirt] [PATCH] Use closest CPU model when decoding from CPUID

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

 



2010/1/15 Jiri Denemark <jdenemar@xxxxxxxxxx>:
> Current implementation of x86Decode() used for CPUID -> model+features
> translation does not always select the closest CPU model. When walking
> through all models from cpu_map.xml the function considers a new
> candidate as a better choice than a previously selected candidate only
> if the new one is a superset of the old one. In case the new candidate
> is closer to host CPU but lacks some feature comparing to the old
> candidate, the function does not choose well.
>
> This patch changes the algorithm so that the closest model is always
> selected. That is, the model which requires the lowest number of
> additional features to describe host CPU.
>
> Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
> ---

ACK

Thanks, pushed.

Matthias

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[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]