[libvirt] [PATCH 11/41] cpu_x86: Refactor internal KVM features

Peter Krempa pkrempa at redhat.com
Wed Jun 8 13:38:25 UTC 2016


On Wed, Jun 08, 2016 at 10:22:25 +0200, Jiri Denemark wrote:
> The internal features are only used in explicit checks with
> cpuHasFeature. Loading them into the CPU map is dangerous since the
> features may accidentally be reported to users when decoding CPUID data.
> 
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
>  src/cpu/cpu_x86.c | 156 +++++++++++++++++++++++++++++-------------------------
>  1 file changed, 85 insertions(+), 71 deletions(-)

ACK, although typecasting static strings into non-const is a bit gross.




More information about the libvir-list mailing list