WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

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

To: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Subject: Re: [Xen-ia64-devel] [RFC] refcnt countup bug
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Thu, 2 Feb 2006 14:06:01 +0900
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 02 Feb 2006 05:15:53 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200602020434.AA02225@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <200602020434.AA02225@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
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

<Prev in Thread] Current Thread [Next in Thread>