]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cputest: Fix comparison in checkCPUIDFeature in cpu-cpuid.py
authorJiri Denemark <jdenemar@redhat.com>
Mon, 1 Apr 2019 16:26:38 +0000 (18:26 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 12 Apr 2019 20:53:39 +0000 (22:53 +0200)
commit77f1fbaed8a0104de84dc62845e7f74169ab1c3f
tree1ce06f1abaa849fc1fa602ae86fd37c7244bd1f5
parenta7ad56edd9ee5d4b110979b98fac98fd8ac3d9f6
cputest: Fix comparison in checkCPUIDFeature in cpu-cpuid.py

leaf["eax"] & eax > 0 check works correctly only if there's at most 1
bit set in eax. Luckily that's been always the case, but fixing this
could save us from future surprises.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/cputestdata/cpu-cpuid.py