Re: [PATCH 10/12] rust: memory: wrap MemoryRegion with Opaque<>

2025-03-04 Thread Zhao Liu
Sorry, when I revisit this patch, I have more thoughts.. > -/// A safe wrapper around [`bindings::MemoryRegion`]. Compared to the > -/// underlying C struct it is marked as pinned because the QOM tree > -/// contains a pointer to it. > -pub struct MemoryRegion { > -inner: bindings::MemoryRegi

Re: [PATCH 10/12] rust: memory: wrap MemoryRegion with Opaque<>

2025-03-03 Thread Zhao Liu
On Thu, Feb 27, 2025 at 03:22:17PM +0100, Paolo Bonzini wrote: > Date: Thu, 27 Feb 2025 15:22:17 +0100 > From: Paolo Bonzini > Subject: [PATCH 10/12] rust: memory: wrap MemoryRegion with Opaque<> > X-Mailer: git-send-email 2.48.1 > > Signed-off-by: Paolo Bonzini &g

[PATCH 10/12] rust: memory: wrap MemoryRegion with Opaque<>

2025-02-27 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- rust/qemu-api/src/bindings.rs | 3 --- rust/qemu-api/src/memory.rs | 35 +-- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/rust/qemu-api/src/bindings.rs b/rust/qemu-api/src/bindings.rs index b791ca6d87f..26cc8d