On 08/09/20 18:41, Li Qiang wrote: > Currently the MR is not explicitly connecting with its device instead of > a opaque. In most situation this opaque is the deivce but it is not an > enforcement. This patch adds a DeviceState member of to MemoryRegion > we will use it in later patch. > > Signed-off-by: Li Qiang <liq...@163.com> > --- > include/exec/memory.h | 9 +++++++++ > softmmu/memory.c | 15 +++++++++++++++ > 2 files changed, 24 insertions(+) > > diff --git a/include/exec/memory.h b/include/exec/memory.h > index 0cfe987ab4..620fb12d9b 100644 > --- a/include/exec/memory.h > +++ b/include/exec/memory.h > @@ -404,6 +404,7 @@ struct MemoryRegion { > const char *name; > unsigned ioeventfd_nb; > MemoryRegionIoeventfd *ioeventfds; > + DeviceState *dev;
There is already an owner field for this. Paolo