Re: [PATCH 13/15] rust: memory: wrap MemoryRegion with Opaque<>

2025-02-25 Thread Paolo Bonzini
On 2/25/25 10:14, Zhao Liu wrote: impl MemoryRegion { // inline to ensure that it is not included in tests, which only @@ -174,13 +174,15 @@ pub fn init_io>( size: u64, ) { unsafe { -Self::do_init_io(&mut self.inner, owner.cast::(), &ops.0, name, siz

Re: [PATCH 13/15] rust: memory: wrap MemoryRegion with Opaque<>

2025-02-25 Thread Zhao Liu
> impl MemoryRegion { > // inline to ensure that it is not included in tests, which only > @@ -174,13 +174,15 @@ pub fn init_io>( > size: u64, > ) { > unsafe { > -Self::do_init_io(&mut self.inner, owner.cast::(), > &ops.0, name, size); > +Self::

[PATCH 13/15] rust: memory: wrap MemoryRegion with Opaque<>

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