Il 22/10/2012 11:38, Avi Kivity ha scritto: >> > >> > typedef struct MemoryRegionOps MemoryRegionOps; >> > typedef struct MemoryRegion MemoryRegion; >> > @@ -66,6 +67,8 @@ struct MemoryRegionOps { >> > target_phys_addr_t addr, >> > uint64_t data, >> > unsigned size); >> > + int (*ref)(MemoryRegion *mr); >> > + void (*unref)(MemoryRegion *mr); >> > > Why return an int? Should succeed unconditionally. Please fold into 7 > (along with 6).
So the stop_machine idea is thrown away? I really believe we're going down a rat's nest with reference counting. Paolo