libkrunfw: Add virtio-CAN driver support#115
Open
dorindabassey wants to merge 1 commit intocontainers:mainfrom
Open
libkrunfw: Add virtio-CAN driver support#115dorindabassey wants to merge 1 commit intocontainers:mainfrom
dorindabassey wants to merge 1 commit intocontainers:mainfrom
Conversation
Add virtio CAN driver patch v13 from upstream kernel mailing
list to enable vhost-user CAN device support in libkrun.
The driver implements a complete CAN bus interface over
Virtio transport, supporting both CAN Classic and CAN-FD.
Changes:
- Add patch 0027-can-virtio-Add-virtio-CAN-driver.patch (v13
from lore.kernel.org/virtualization)
- Enable CAN kernel configs
Fixes:
- Kernel 6.12 compatibility fix for can_priv structure access:
change can.fd.data_bittiming to can.data_bittiming (struct
layout changed in kernel 6.13+)
- Fix FORTIFY_SOURCE panic in virtio_can_start_xmit: set
can_tx_msg->tx_out.length before memcpy() to satisfy
__counted_by_le() buffer bounds checking.
The driver has been tested with rust-vmm vhost-device-can backend.
Upstream patch authors:
- Matias Ezequiel Vara Larsen <mvaralar@redhat.com>
- Harald Mommer <harald.mommer@oss.qualcomm.com>
- Mikhail Golubev-Ciuchea <mikhail.golubev-ciuchea@oss.qualcomm.com>
Signed-off-by: Dorinda Bassey <dbassey@redhat.com>
1ab237f to
6b6cb7a
Compare
This file contains hidden or 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
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.
Add virtio CAN driver patch v13 from upstream kernel mailing list to enable vhost-user CAN device support in libkrun. The driver implements a complete CAN bus interface over Virtio transport, supporting both CAN Classic and CAN-FD.
Changes:
Fixes:
The driver has been tested with rust-vmm vhost-device-can backend.
Upstream patch authors: