[PATCH 0/3] Small Rust memory API improvements

Manos Pitsidianakis posted 3 patches 4 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20250703-rust-mem-api-v1-0-cd5314bdf580@linaro.org
Maintainers: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
include/exec/memattrs.h          | 11 ++---
rust/hw/char/pl011/src/device.rs |  8 ++--
rust/hw/timer/hpet/src/device.rs | 14 +++----
rust/qemu-api/meson.build        |  1 +
rust/qemu-api/src/memory.rs      | 86 +++++++++++++++++++++++++++++++++++-----
5 files changed, 93 insertions(+), 27 deletions(-)
[PATCH 0/3] Small Rust memory API improvements
Posted by Manos Pitsidianakis 4 months, 2 weeks ago
This series adds minor improvements to the memory API:

- Use an enum to define bit width for memory accesses instead of an
  integer
- Add *_with_attrs methods to MemoryRegionOps

The *_with_attrs methods are not currently used by any device, and that
patch can be dropped without issue.

Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
---
Manos Pitsidianakis (3):
      rust/memory: replace size arg with Bits enum
      memattrs.h: make MemTxAttrs into enum
      rust: add *_with_attrs methods to MemoryRegionOps

 include/exec/memattrs.h          | 11 ++---
 rust/hw/char/pl011/src/device.rs |  8 ++--
 rust/hw/timer/hpet/src/device.rs | 14 +++----
 rust/qemu-api/meson.build        |  1 +
 rust/qemu-api/src/memory.rs      | 86 +++++++++++++++++++++++++++++++++++-----
 5 files changed, 93 insertions(+), 27 deletions(-)
---
base-commit: c77283dd5d79149f4e7e9edd00f65416c648ee59
change-id: 20250703-rust-mem-api-7faf5644cda2

--
γαῖα πυρί μιχθήτω