Bug 1389445

Summary: VirtIO library interface incompatiblity with NetKvm (bool definition)
Product: Red Hat Enterprise Linux 7 Reporter: ybendito
Component: virtio-winAssignee: ybendito
virtio-win sub component: virtio-win-prewhql QA Contact: Virtualization Bugs <virt-bugs>
Status: CLOSED ERRATA Docs Contact:
Severity: unspecified    
Priority: unspecified CC: ailan, jen, lijin, lmiksik, michen, phou, virt-bugs, vrozenfe, wyu, xiagao, ybendito
Version: 7.3   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 12:53:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1376082    

Description ybendito 2016-10-27 15:17:38 UTC
Virtio library defines 'bool' as 'int' and all the drivers include this definition, but netkvm, which is C++ and use 'bool' as fundamental type, which length is 1 byte (VC++ specific). 
As a result, for example, when netkvm calls virtio_device_initialize(...) with 
msix_used=false the parameter is passed incorrectly and virtio library executes get_config/set_config incorrectly.

Comment 7 ybendito 2017-06-01 08:04:32 UTC
Fixed in virtio-win-prewhql-0.1-130. The BZ can be closed, verified by development.

Comment 8 lijin 2017-06-07 05:53:38 UTC
change status to verified according to comment#7

Comment 11 errata-xmlrpc 2017-08-01 12:53:08 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2341