-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 PCI Transport Support for NuttX #13433
Merged
Merged
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
anchao
approved these changes
Sep 14, 2024
CV-Bowen
force-pushed
the
virtio-pci
branch
2 times, most recently
from
September 14, 2024 08:34
aeccdd5
to
5aa3e90
Compare
1. only support pci modern device; 2. need the pci controller support MSI/MSI-X; It has been verified based on virtio-rng and virtio-net. Signed-off-by: Yongrong Wang <wangyongrong@xiaomi.com> Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
…e_io_xxx Use IO api to access the io region Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
Follow the virtio spec, support the virtio pci Legacy Signed-off-by: wangyongrong <wangyongrong@xiaomi.com> Signed-off-by: andi <andi6@xiaomi.com> Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
Extrace common part of virtio pci modern and legacy to virtio-pci to reduce the duplicated code. Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
1. Some platforms do not support interrupt mode (PCI_MSI/MSIX), so add polling mode support, so these platforms can also use virtio-pci; 2. In some cases, we do not want to use the interrupt for virtio driver to avoid time jitter, so add the polling mode support; 3. If CONFIG_DRIVERS_VIRTIO_PCI_POLLING_PERIOD <= 0, interrupt mode. if CONFIG_DRIVERS_VIRTIO_PCI_POLLING_PERIOD > 0, polling mode. Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
Should assgin back the feature to the vdev->features Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
CV-Bowen
force-pushed
the
virtio-pci
branch
from
September 14, 2024 10:47
5aa3e90
to
412aeb4
Compare
Just rebase to fix the conflict. |
xiaoxiang781216
approved these changes
Sep 14, 2024
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.
Summary
VirtIO PCI Transport Support for NuttX.
Now NuttX can use already implemented virtio-drivers to driver the virtio-pci based virtio device without any modifications to the these drivers.
Impact
New feature, VirtIO-PCI-Transport
Testing
x86-64 with virtio-pci-net, virtio-pci-rng, virtio-pci-blk