-
Notifications
You must be signed in to change notification settings - Fork 292
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
virtio.h: add some user-friendly apis #622
Open
CV-Bowen
wants to merge
2
commits into
OpenAMP:main
Choose a base branch
from
CV-Bowen:virtio-config
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
CV-Bowen
commented
Oct 8, 2024
•
edited
Loading
edited
- virtio.h: add new api virtio_has_feature()
- virtio.h: add new feature bit VIRTIO_F_ANY_LAYOUT
CV-Bowen
force-pushed
the
virtio-config
branch
2 times, most recently
from
October 8, 2024 13:41
0d9c1ce
to
c1646fb
Compare
xiaoxiang781216
approved these changes
Oct 9, 2024
CV-Bowen
force-pushed
the
virtio-config
branch
4 times, most recently
from
October 10, 2024 02:59
217ee1d
to
56c5db1
Compare
@arnopo Hi, I meet a CI issue: #define virtio_read_config_member(vdev, structname, member, _ptr) \
virtio_read_config((vdev), metal_offset_of(structname, member), \
_ptr, sizeof(*(_ptr))) This code reports |
arnopo
reviewed
Oct 10, 2024
glneo
reviewed
Oct 10, 2024
CV-Bowen
force-pushed
the
virtio-config
branch
2 times, most recently
from
October 18, 2024 11:24
60c1fc3
to
3cb3e9c
Compare
CV-Bowen
force-pushed
the
virtio-config
branch
from
October 28, 2024 13:32
3cb3e9c
to
d4c0152
Compare
arnopo
requested changes
Nov 5, 2024
Follow the virtio spec, this feature bit indicates that the device accepts arbitrary descriptor layouts. Signed-off-by: Bowen Wang <[email protected]>
virtio_has_feature() can be easily used to check if the virtio device support a specific feature. And assgin feature to vdev->feature for virtio device role when get features, so the virtio device side can use virtio_has_featrue() to check weather the virtio device support a feature. Signed-off-by: Bowen Wang <[email protected]>
CV-Bowen
force-pushed
the
virtio-config
branch
from
November 21, 2024 06:50
d4c0152
to
1b4cb95
Compare
@arnopo Done, please review again. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.