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
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
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