Re: [PATCH v10 7/9] rust: add crate to expose bindings and interfaces

2024-09-30 Thread Paolo Bonzini
On 9/10/24 14:35, Manos Pitsidianakis wrote: +unsafe impl GlobalAlloc for QemuAllocator { +unsafe fn alloc(&self, layout: Layout) -> *mut u8 { +if matches!(Self::DEFAULT_ALIGNMENT_BYTES, Some(default) if default.checked_rem(layout.align()) == Some(0)) +{ +g_malloc

Re: [PATCH v10 7/9] rust: add crate to expose bindings and interfaces

2024-09-13 Thread Junjie Mao
Manos Pitsidianakis writes: > Add rust/qemu-api, which exposes rust-bindgen generated FFI bindings and > provides some declaration macros for symbols visible to the rest of > QEMU. > > Co-authored-by: Junjie Mao > Co-authored-by: Paolo Bonzini > Signed-off-by: Junjie Mao > Signed-off-by: Paolo

[PATCH v10 7/9] rust: add crate to expose bindings and interfaces

2024-09-10 Thread Manos Pitsidianakis
Add rust/qemu-api, which exposes rust-bindgen generated FFI bindings and provides some declaration macros for symbols visible to the rest of QEMU. Co-authored-by: Junjie Mao Co-authored-by: Paolo Bonzini Signed-off-by: Junjie Mao Signed-off-by: Paolo Bonzini Signed-off-by: Manos Pitsidianakis