qemu/rust/qemu-api/src
Bernhard Beschow ab81002252 rust/qemu-api: Add initial logging support based on C API
A log_mask_ln!() macro is provided which expects similar arguments as the
C version. However, the formatting works as one would expect from Rust.

To maximize code reuse the macro is just a thin wrapper around
qemu_log(). Also, just the bare minimum of logging masks is provided
which should suffice for the current use case of Rust in QEMU.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Link: https://lore.kernel.org/r/20250615112037.11992-2-shentey@gmail.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-06-20 13:25:59 +02:00
..
assertions.rs rust: assertions: Support index field wrapped in BqlCell 2025-05-02 17:37:46 +02:00
bindings.rs rust: bindings: allow ptr_offset_with_cast 2025-06-03 22:42:18 +02:00
bitops.rs rust: Fix Zhao's email address 2025-05-26 18:04:27 +02:00
callbacks.rs rust: callbacks: allow passing optional callbacks as () 2025-02-13 12:19:33 +01:00
cell.rs rust: cell: remove support for running doctests with "cargo test --doc" 2025-06-03 22:42:18 +02:00
chardev.rs rust: enable clippy::ptr_cast_constness 2025-05-06 16:02:04 +02:00
errno.rs rust: add module to convert between success/-errno and io::Result 2025-02-25 16:18:08 +01:00
error.rs rust: qemu-api: add tests for Error bindings 2025-06-05 20:24:51 +02:00
irq.rs rust: use std::ffi instead of std::os::raw 2025-05-06 16:02:04 +02:00
lib.rs rust/qemu-api: Add initial logging support based on C API 2025-06-20 13:25:59 +02:00
log.rs rust/qemu-api: Add initial logging support based on C API 2025-06-20 13:25:59 +02:00
memory.rs rust: qom: change instance_init to take a ParentInit<> 2025-06-17 09:54:52 +02:00
module.rs rust: rename qemu-api modules to follow C code a bit more 2024-12-19 19:36:37 +01:00
prelude.rs rust/qemu-api: Add initial logging support based on C API 2025-06-20 13:25:59 +02:00
qdev.rs rust: qom: change instance_init to take a ParentInit<> 2025-06-17 09:54:52 +02:00
qom.rs rust: qom: change instance_init to take a ParentInit<> 2025-06-17 09:54:52 +02:00
sysbus.rs rust: sysbus: wrap SysBusDevice with Opaque<> 2025-03-06 12:44:47 +01:00
timer.rs rust: Fix Zhao's email address 2025-05-26 18:04:27 +02:00
uninit.rs rust: qemu_api: introduce MaybeUninit field projection 2025-06-17 09:54:51 +02:00
vmstate.rs rust: Fix the typos in doc 2025-05-26 18:04:27 +02:00
zeroable.rs rust: use MaybeUninit::zeroed() in const context 2025-05-06 16:02:04 +02:00