On 2 June 2013 16:43, Paolo Bonzini <pbonz...@redhat.com> wrote: > +/** > + * memory_region_ref: Add 1 to a memory region's reference count > + * > + * Whenever memory regions are accessed outside the BQL, they need to be > + * preserved against hot-unplug. MemoryRegions actually do not have their > + * own reference count; they piggyback on a QOM object, their "owner". > + * This function adds a reference to the owner.
It doesn't make much sense to describe the function as "add 1 to a memory region's reference count" and then say that memory regions don't have reference counts... -- PMM