Re: [PATCH v3 5/8] Add memory hardware address read/write API

2025-05-22 Thread Pierrick Bouvier
On 5/22/25 2:01 PM, Rowan Hart wrote: > This definition strikes me as odd. What was your reason to assert > `current_cpu` here, but not in the other two functions? Also a bit > surprising is the declaration of `cpu` if you use it in just one place > (rather than just use

Re: [PATCH v3 5/8] Add memory hardware address read/write API

2025-05-22 Thread Rowan Hart
> > > > This definition strikes me as odd. What was your reason to assert > > `current_cpu` here, but not in the other two functions? Also a bit > > surprising is the declaration of `cpu` if you use it in just one place > > (rather than just use `current_cpu` directly as for the assertion). > > > >

Re: [PATCH v3 5/8] Add memory hardware address read/write API

2025-05-22 Thread Pierrick Bouvier
On 5/21/25 8:34 PM, Rowan Hart wrote: Well, first I just noticed that I left a debug print in this function! So I'll fix that. Reading this patch, and patch 3 (Add address space API), I am not sure AddressSpace is something we want to leak in plugins interface. It is a concept *very* internal t

Re: [PATCH v3 5/8] Add memory hardware address read/write API

2025-05-22 Thread Pierrick Bouvier
On 5/22/25 4:59 AM, Julian Ganz wrote: This definition strikes me as odd. What was your reason to assert `current_cpu` here, but not in the other two functions? Also a bit surprising is the declaration of `cpu` if you use it in just one place (rather than just use `current_cpu` directly as for th

Re: [PATCH v3 5/8] Add memory hardware address read/write API

2025-05-22 Thread Julian Ganz
Hi Rowan, > diff --git a/include/qemu/qemu-plugin.h b/include/qemu/qemu-plugin.h > index eff8430b4a..d4f229abd9 100644 > --- a/include/qemu/qemu-plugin.h > +++ b/include/qemu/qemu-plugin.h > @@ -1014,6 +1014,102 @@ QEMU_PLUGIN_API > bool qemu_plugin_write_memory_vaddr(uint64_t addr, >

Re: [PATCH v3 5/8] Add memory hardware address read/write API

2025-05-21 Thread Rowan Hart
Well, first I just noticed that I left a debug print in this function! So I'll fix that. Reading this patch, and patch 3 (Add address space API), I am not sure AddressSpace is something we want to leak in plugins interface. It is a concept *very* internal to QEMU, and not reflecting directly s

Re: [PATCH v3 5/8] Add memory hardware address read/write API

2025-05-21 Thread Pierrick Bouvier
On 5/21/25 2:43 AM, Rowan Hart wrote: From: novafacing Signed-off-by: novafacing Signed-off-by: Rowan Hart --- include/qemu/qemu-plugin.h | 96 +++ plugins/api.c | 100 + 2 files changed, 196 insertions(+)

[PATCH v3 5/8] Add memory hardware address read/write API

2025-05-21 Thread Rowan Hart
From: novafacing Signed-off-by: novafacing Signed-off-by: Rowan Hart --- include/qemu/qemu-plugin.h | 96 +++ plugins/api.c | 100 + 2 files changed, 196 insertions(+) diff --git a/include/qemu/qemu-plugin.h b/i