Skip to content

Next round of qemu_api patches

Paolo Bonzini qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12rust: qom: add ParentFieldrust/hw/char/pl011/src/device.rs rust/qemu-api/src/qom.rs rust/qemu-api/tests/tests.rs+57 -91 reply
2/12rust: add a utility module for compile-time type checksrust/qemu-api/meson.build rust/qemu-api/src/assertions.rs rust/qemu-api/src/lib.rs+92 -02 replies
3/12rust: macros: check that the first field of a #[derive(Object)] struct is a ParentFieldrust/qemu-api-macros/src/lib.rs+36 -251 reply
4/12rust: macros: check that #[derive(Object)] requires #[repr(C)]rust/qemu-api-macros/src/lib.rs+2 -01 reply
5/12rust: qom: automatically use Drop trait to implement instance_finalizerust/qemu-api/src/qom.rs+11 -20 replies
6/12rust: qom: move device_id to PL011 class siderust/hw/char/pl011/src/device.rs+28 -311 reply
7/12rust: pl011: only leave embedded object initialization in instance_initrust/hw/char/pl011/src/device.rs rust/qemu-api/src/sysbus.rs+22 -81 reply
8/12rust: qom: make INSTANCE_POST_INIT take a shared referencerust/hw/char/pl011/src/device.rs rust/qemu-api/src/qom.rs+4 -81 reply
9/12rust: qdev: expose inherited methods to subclasses of SysBusDevicerust/hw/char/pl011/src/device.rs rust/qemu-api/src/irq.rs rust/qemu-api/src/prelude.rs +1 more+14 -141 reply
10/12rust: qemu-api-macros: extend error reporting facility to parse errorsrust/qemu-api-macros/src/lib.rs rust/qemu-api-macros/src/utils.rs+36 -171 reply
11/12rust: qemu-api-macros: add automatic TryFrom/TryInto derivationrust/hw/char/pl011/src/lib.rs rust/qemu-api-macros/src/lib.rs+73 -291 reply
12/12rust: hide warnings for subprojectssubprojects/arbitrary-int-1-rs.wrap subprojects/bilge-0.2-rs.wrap subprojects/bilge-impl-0.2-rs.wrap +20 more+44 -201 reply

Reviews trailers per patch

All 12 patches have a Reviewed-by or Acked-by.

PatchZhao Liu
1/12R-b
2/12R-b
3/12R-b
4/12R-b
5/12R-b
6/12R-b
7/12R-b
8/12R-b
9/12R-b
10/12R-b
11/12R-b
12/12R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/12] Next round of qemu_api patches

This includes:

1) the outcome of reviewing
https://lore.kernel.org/qemu-devel/[email protected]/T/,
especially with respect to instance_finalize implementation and Rust-defined subclasses (patches 1-6)

2) the beginnings of separating instance_init/instance_post_init, making the latter take &self (patches 7-9)

3) extracting pl011's logic to convert an integer into an enum into a #[derive(TryInto)] procedural macro (patches 10-11)

4) a one-off change that I noticed while reading Cargo documentation (patch 12)

Zhao: I have placed these in rust-next, but feel free to ignore them for your next HPET submission. I have also included in my tree your test additions for usage in CI, but I'm not including them here to give you the opportunity to post them with a commit message and a signed-off-by. If you don't have time, it's in safe hands. :)

Paolo

Paolo Bonzini (12):
rust: qom: add ParentField
rust: add a utility module for compile-time type checks
rust: macros: check that the first field of a #[derive(Object)] struct
is a ParentField
rust: macros: check that #[derive(Object)] requires #[repr(C)]
rust: qom: automatically use Drop trait to implement instance_finalize
rust: qom: move device_id to PL011 class side
rust: pl011: only leave embedded object initialization in
instance_init
rust: qom: make INSTANCE_POST_INIT take a shared reference
rust: qdev: expose inherited methods to subclasses of SysBusDevice
rust: qemu-api-macros: extend error reporting facility to parse errors
rust: qemu-api-macros: add automatic TryFrom/TryInto derivation
rust: hide warnings for subprojects

 rust/hw/char/pl011/src/device.rs              |  79 +++++----
 rust/hw/char/pl011/src/lib.rs                 |  28 +---
 rust/qemu-api-macros/src/lib.rs               | 150 +++++++++++++-----
 rust/qemu-api-macros/src/utils.rs             |  26 +++
 rust/qemu-api/meson.build                     |   1 +
 rust/qemu-api/src/assertions.rs               |  90 +++++++++++
 rust/qemu-api/src/irq.rs                      |   3 +-
 rust/qemu-api/src/lib.rs                      |   1 +
 rust/qemu-api/src/prelude.rs                  |   2 +
 rust/qemu-api/src/qom.rs                      |  77 +++++++--
 rust/qemu-api/src/sysbus.rs                   |  23 ++-
 rust/qemu-api/tests/tests.rs                  |   4 +-
 subprojects/arbitrary-int-1-rs.wrap           |   3 +
 subprojects/bilge-0.2-rs.wrap                 |   3 +
 subprojects/bilge-impl-0.2-rs.wrap            |   3 +
 subprojects/either-1-rs.wrap                  |   3 +
 subprojects/itertools-0.11-rs.wrap            |   3 +
 .../arbitrary-int-1-rs/meson.build            |   1 +
 .../packagefiles/bilge-0.2-rs/meson.build     |   1 +
 .../bilge-impl-0.2-rs/meson.build             |   1 +
 .../packagefiles/either-1-rs/meson.build      |   1 +
 .../itertools-0.11-rs/meson.build             |   1 +
 .../proc-macro-error-1-rs/meson.build         |   1 +
 .../proc-macro-error-attr-1-rs/meson.build    |   1 +
 .../packagefiles/proc-macro2-1-rs/meson.build |   1 +
 .../packagefiles/quote-1-rs/meson.build       |   1 +
 subprojects/packagefiles/syn-2-rs/meson.build |   1 +
 .../unicode-ident-1-rs/meson.build            |   1 +
 subprojects/proc-macro-error-1-rs.wrap        |   3 +
 subprojects/proc-macro-error-attr-1-rs.wrap   |   3 +
 subprojects/proc-macro2-1-rs.wrap             |   3 +
 subprojects/quote-1-rs.wrap                   |   3 +
 subprojects/syn-2-rs.wrap                     |   3 +
 subprojects/unicode-ident-1-rs.wrap           |   3 +
 subprojects/unicode-ident-1-rs/meson.build    |  20 ---
 35 files changed, 402 insertions(+), 146 deletions(-)
 create mode 100644 rust/qemu-api-macros/src/utils.rs
 create mode 100644 rust/qemu-api/src/assertions.rs
 delete mode 100644 subprojects/unicode-ident-1-rs/meson.build
Signature · 1 line
2.47.1