From: Keir Fraser Subject: Re: [PATCH] incorrect xfree for mini-os Date: Wed, 02 Apr 2008 15:45:43 +0100 Message-ID: References: <20080402105248.GE4618@implementation.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20080402105248.GE4618@implementation.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Samuel Thibault , INAKOSHI Hiroya Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 2/4/08 11:52, "Samuel Thibault" wrote: > INAKOSHI Hiroya, le Wed 02 Apr 2008 19:43:29 +0900, a =E9crit : >> xfree in extras/mini-os/lib/xmalloc.c is incorrect. >>=20 >> It has to check first if the memory to free is so big as to be freed >> directly by free_pages. >>=20 >> mini-os domains crash without this patch if they don't configure vfb >> correctly. >>=20 >> Signed-off-by: INAKOSHI Hiroya >=20 > Acked-by: Samuel Thibault Applied, but shouldn't the checks that this patch skips work okay even for big allocations made via xmalloc_whole_pages()? It works okay that way in Xen itself. -- Keir