[libvirt] [PATCH 27/36] cputest: Fix comparison in checkCPUIDFeature in cpu-cpuid.py

Ján Tomko jtomko at redhat.com
Tue Apr 9 13:24:57 UTC 2019


On Mon, Apr 08, 2019 at 10:42:31AM +0200, Jiri Denemark wrote:
>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 at redhat.com>
>---
> tests/cputestdata/cpu-cpuid.py | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190409/b73c4b35/attachment-0001.sig>


More information about the libvir-list mailing list