]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cpu_x86: Properly disable unknown CPU features
authorJiri Denemark <jdenemar@redhat.com>
Mon, 19 Jun 2017 11:18:52 +0000 (13:18 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 13 Jul 2017 07:53:15 +0000 (09:53 +0200)
commit83e081b8ab32dd990b4e4ccc7bf8a1a416fc51c2
treed820c5c68a3d9ca658fd1e2aa132116f72976927
parentee68bb391efb684341edb6286a1278631167f08c
cpu_x86: Properly disable unknown CPU features

CPU features unknown to a hypervisor will not be present in dataDisabled
even though the features won't naturally be enabled because.
Thus any features we asked for which are not in dataEnabled should be
considered disabled.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/cpu/cpu_x86.c
tests/cputest.c
tests/cputestdata/x86_64-cpuid-Core-i7-5600U-arat-disabled.xml [new file with mode: 0644]
tests/cputestdata/x86_64-cpuid-Core-i7-5600U-arat-enabled.xml [new file with mode: 0644]
tests/cputestdata/x86_64-cpuid-Core-i7-5600U-arat-guest.xml [new file with mode: 0644]
tests/cputestdata/x86_64-cpuid-Core-i7-5600U-arat-host.xml [new file with mode: 0644]
tests/cputestdata/x86_64-cpuid-Core-i7-5600U-arat-json.xml [new file with mode: 0644]
tests/cputestdata/x86_64-cpuid-Core-i7-5600U-arat.json [new file with mode: 0644]
tests/cputestdata/x86_64-cpuid-Core-i7-5600U-arat.xml [new file with mode: 0644]