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-devel

Re: [Xen-devel] [PATCH] libxc: free thread specific hypercall buffer on

To: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] libxc: free thread specific hypercall buffer on xc_interface_close
From: Christoph Egger <Christoph.Egger@xxxxxxx>
Date: Thu, 19 Aug 2010 14:39:55 +0200
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 19 Aug 2010 05:41:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1282148788.3170.1221.camel@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <b1f4b4be1f94c0007794.1282143667@xxxxxxxxxxxxxxxxxxxxx> <201008181804.56934.Christoph.Egger@xxxxxxx> <1282148788.3170.1221.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.10
On Wednesday 18 August 2010 18:26:28 Ian Campbell wrote:
> On Wed, 2010-08-18 at 17:04 +0100, Christoph Egger wrote:
> > This patch prevents me from starting a guest until
> > the outstanding issue - namely why is hcall_buf_prep() never called -
> > is solved.
>
> You wouldn't expect hcall_buf_prep to be called if you opened the xc
> interface and then closed it without doing a hypercall which required
> any locked down memory.
>
> This updated version of the patch was intended to handle exactly this
> case

Yes, it works. The issue was in the debug code itself. After
removing the trace code I am able to start guests again.

Thanks for your help.

> since it appears that under NetBSD it can cause issues. 

I am wondering why this issue didn't appear on Linux.
Does Linux have some kind of auto-initialization?

Christoph

-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632


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