Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace protocol header flags bit field with mask #773

Merged
merged 2 commits into from
Aug 30, 2023

Conversation

mnissler-rivos
Copy link
Contributor

It turns out that the bit field will not yield the desired / specified bit layout on big-endian systems, see issue #768 for details. Thus, replace the bit field with constants for the individual fields and use bit masking when accessing the flags field.

include/vfio-user.h Outdated Show resolved Hide resolved
It turns out that the bit field will not yield the desired / specified
bit layout on big-endian systems, see issue nutanix#768 for details. Thus,
replace the bit field with constants for the individual fields and use
bit masking when accessing the flags field.

Signed-off-by: Mattias Nissler <[email protected]>
Signed-off-by: Mattias Nissler <[email protected]>
@tmakatos tmakatos force-pushed the hdr_flags_no_bitfield branch from de69ee3 to 95e756a Compare August 30, 2023 15:09
@tmakatos tmakatos merged commit f981913 into nutanix:master Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants