Bug 1389445 - VirtIO library interface incompatiblity with NetKvm (bool definition)
Summary: VirtIO library interface incompatiblity with NetKvm (bool definition)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: virtio-win
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: ybendito
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1376082
TreeView+ depends on / blocked
 
Reported: 2016-10-27 15:17 UTC by ybendito
Modified: 2017-08-01 12:53 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 12:53:08 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:2341 0 normal SHIPPED_LIVE virtio-win bug fix and enhancement update 2017-08-01 16:52:38 UTC

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


Note You need to log in before you can comment on or make changes to this bug.