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

Re: [Xen-ia64-devel] [RFC] refcnt countup bug



Hi Kanno.

On Thu, Feb 02, 2006 at 01:34:40PM +0900, Masaki Kanno wrote:

> I found a bug regarding updating domain struct's "refcnt", that is,
> "refcnt" is incremented 2 times in the following condition.
> (I belive it should be incremented only once).
>  
>  - Hypercall (DOM0_GETMEMLIST) is issued and
>  - This is the first memory allocation for that DomU

put_domain() call by free_domheap_pages() does
a decrement corresponding to get_knownalive_domain(), I think.
It prevents from freeing a domain before freeing all domain's memory.
It means that, to free a domain, its memory must be freed somehow.

-- 
yamahata

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.