From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Cc: qemu-rust@nongnu.org
Subject: [PATCH 0/5] rust: pl011 cleanups + chardev bindings
Date: Thu, 27 Feb 2025 17:45:29 +0100 [thread overview]
Message-ID: <20250227164538.814576-1-pbonzini@redhat.com> (raw)
With this series, the only remaining use of unsafe is for vmstate's post
load callback, which is small and self contained. All functionality
used by pl011 and HPET devices are wrapped in Rust APIs, so they look
like what a "real" from-scratch Rust device would be.
Patch 2 is best reviewed with "git diff -b --color-moved" or similar.
Paolo
Paolo Bonzini (5):
rust: chardev: provide basic bindings to character devices
rust: pl011: move register definitions out of lib.rs
rust: pl011: clean up visibilities
rust: pl011: switch to safe chardev operation
rust: pl011: pass around registers::Data
rust/hw/char/pl011/src/device.rs | 146 +++-----
rust/hw/char/pl011/src/lib.rs | 509 +---------------------------
rust/hw/char/pl011/src/registers.rs | 507 +++++++++++++++++++++++++++
rust/qemu-api/meson.build | 17 +-
rust/qemu-api/src/chardev.rs | 237 ++++++++++++-
rust/qemu-api/src/zeroable.rs | 1 +
6 files changed, 800 insertions(+), 617 deletions(-)
create mode 100644 rust/hw/char/pl011/src/registers.rs
--
2.48.1
next reply other threads:[~2025-02-27 16:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-27 16:45 Paolo Bonzini [this message]
2025-02-27 16:45 ` [PATCH 1/5] rust: chardev: provide basic bindings to character devices Paolo Bonzini
2025-02-27 16:45 ` [PATCH 2/5] rust: pl011: move register definitions out of lib.rs Paolo Bonzini
2025-02-27 17:28 ` Peter Maydell
2025-02-27 18:18 ` Paolo Bonzini
2025-02-27 18:18 ` Paolo Bonzini
2025-02-27 16:45 ` [PATCH 3/5] rust: pl011: clean up visibilities of callbacks Paolo Bonzini
2025-02-27 16:45 ` [PATCH 4/5] rust: pl011: switch to safe chardev operation Paolo Bonzini
2025-02-27 17:25 ` Peter Maydell
2025-02-27 18:02 ` Paolo Bonzini
2025-02-27 18:53 ` Peter Maydell
2025-02-27 16:45 ` [PATCH 5/5] rust: pl011: pass around registers::Data Paolo Bonzini
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=20250227164538.814576-1-pbonzini@redhat.com \
--to=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-rust@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).