On 10/27/2026 10:38 AM, Brian Cain wrote: > Add the QUP + GENI uart device models. The QUP is a "Universal Peripheral" > present on Qualcomm SoCs, with connections for SPI, UART, I2C, I3C. For > now we're only interested in UART. > > Will follow up with a v2 including wiring into machines + qtest after > https://lore.kernel.org/qemu-devel/[email protected]/ > lands. > > Brian Cain (3): > hw/misc: add the QUP wrapper device > rust/chardev: fix write errors and add write watches > rust/hw/char: add QUP GENI UART device model > > MAINTAINERS | 3 + > docs/system/device-emulation.rst | 1 + > docs/system/devices/qup.rst | 10 + > include/hw/misc/qup-wrapper.h | 27 + > hw/misc/qup-wrapper.c | 90 ++ > Cargo.lock | 15 + > Cargo.toml | 1 + > hw/misc/Kconfig | 3 + > hw/misc/meson.build | 3 + > rust/chardev/src/chardev.rs | 82 +- > rust/hw/char/Kconfig | 4 + > rust/hw/char/meson.build | 1 + > rust/hw/char/qup_geni_uart/Cargo.toml | 27 + > rust/hw/char/qup_geni_uart/meson.build | 28 + > rust/hw/char/qup_geni_uart/src/device.rs | 1293 +++++++++++++++++++ > rust/hw/char/qup_geni_uart/src/lib.rs | 9 + > rust/hw/char/qup_geni_uart/src/registers.rs | 160 +++ > 17 files changed, 1741 insertions(+), 16 deletions(-) > create mode 100644 docs/system/devices/qup.rst > create mode 100644 include/hw/misc/qup-wrapper.h > create mode 100644 hw/misc/qup-wrapper.c > create mode 100644 rust/hw/char/qup_geni_uart/Cargo.toml > create mode 100644 rust/hw/char/qup_geni_uart/meson.build > create mode 100644 rust/hw/char/qup_geni_uart/src/device.rs > create mode 100644 rust/hw/char/qup_geni_uart/src/lib.rs > create mode 100644 rust/hw/char/qup_geni_uart/src/registers.rs >
Any specific reason to have this implemented in Rust? Not a bad thing in itself, but it means it's only available with rust builds, which can be a problem if a machine defined in C wants to use it unconditionally. Rust is not (yet) a mandatory dep for QEMU. Regards, Pierrick
