From: Martin Rodriguez Reboredo <yakoyoku@gmail.com>
To: Daniel Almeida <daniel.almeida@collabora.com>,
wedsonaf@gmail.com, ojeda@kernel.org
Cc: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org,
virtualization@lists.linux-foundation.org
Subject: Re: [PATCH v2 2/2] rust: virtio: add virtio support
Date: Thu, 6 Apr 2023 11:22:38 -0300 [thread overview]
Message-ID: <c2ebdc61-6aff-ab64-a0cb-e2170edfa689@gmail.com> (raw)
In-Reply-To: <20230405201416.395840-3-daniel.almeida@collabora.com>
On 4/5/23 17:14, Daniel Almeida wrote:
> This patch adds virtIO support to the rust crate. This includes the
> capability to create a virtIO driver (through the module_virtio_driver
> macro and the respective Driver trait) as well as initial virtqueue
> support.
>
> A sample virtIO module is included for conveninence.
>
> Signed-off-by: Daniel Almeida <daniel.almeida@collabora.com>
> ---
> rust/bindings/bindings_helper.h | 3 +
> rust/helpers.c | 25 +++
> rust/kernel/lib.rs | 2 +
> rust/kernel/virtio.rs | 261 ++++++++++++++++++++++++++++++++
> rust/kernel/virtio/virtqueue.rs | 126 +++++++++++++++
> samples/rust/Kconfig | 10 ++
> samples/rust/Makefile | 1 +
> samples/rust/rust_virtio.rs | 195 ++++++++++++++++++++++++
> 8 files changed, 623 insertions(+)
> create mode 100644 rust/kernel/virtio.rs
> create mode 100644 rust/kernel/virtio/virtqueue.rs
> create mode 100644 samples/rust/rust_virtio.rs
IMO this should be split further. If I were to suggest I'd say to do it
as following.
- virtio bindings
- virtqueue bindings
- sample virtio module
This way the size of each commit would be more amenable to reviews.
>
> [...]
Regards
-> Martin
next prev parent reply other threads:[~2023-04-06 14:22 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-05 20:14 [PATCH v2 0/2] rust: virtio: add virtio support Daniel Almeida
2023-04-05 20:14 ` Daniel Almeida via Virtualization
2023-04-05 20:14 ` [PATCH v2 1/2] rust: add scatterlist support Daniel Almeida
2023-04-05 20:14 ` Daniel Almeida via Virtualization
2023-04-06 14:21 ` Martin Rodriguez Reboredo
2023-04-05 20:14 ` [PATCH v2 2/2] rust: virtio: add virtio support Daniel Almeida
2023-04-05 20:14 ` Daniel Almeida via Virtualization
2023-04-06 14:22 ` Martin Rodriguez Reboredo [this message]
2023-04-06 18:26 ` Wedson Almeida Filho
2023-04-06 19:04 ` Wedson Almeida Filho
2023-04-07 23:36 ` Daniel Almeida
2023-04-07 23:36 ` Daniel Almeida via Virtualization
2023-04-05 23:19 ` [PATCH v2 0/2] " Miguel Ojeda
2023-04-05 23:19 ` Miguel Ojeda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c2ebdc61-6aff-ab64-a0cb-e2170edfa689@gmail.com \
--to=yakoyoku@gmail.com \
--cc=daniel.almeida@collabora.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=virtualization@lists.linux-foundation.org \
--cc=wedsonaf@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.