qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 02/15] memory: add ref/unref


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH 02/15] memory: add ref/unref
Date: Sun, 2 Jun 2013 16:58:26 +0100

On 2 June 2013 16:43, Paolo Bonzini <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]