From: Gerd Hoffmann Subject: Re: [Qemu-devel] [PATCH 7/7] xen: blk & nic configuration via cmd line. Date: Mon, 04 Aug 2008 20:12:26 +0200 Message-ID: <4897468A.7050009@redhat.com> References: <1217865045-10722-1-git-send-email-kraxel@redhat.com> <1217865045-10722-8-git-send-email-kraxel@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Blue Swirl Cc: xen-devel@lists.xensource.com, qemu-devel@nongnu.org List-Id: xen-devel@lists.xenproject.org Blue Swirl wrote: >> + /* config cleanup hook */ >> + atexit(xen_config_cleanup); > > I'd put this in vl.c, it's not machine specific. It actually is because it cleans up stuff only created for the xenpv machine type. Moving it to vl.c doesn't hurt, I would have to wrap it into "#ifdef CONFIG_XEN" though ... cheers, Gerd -- http://kraxel.fedorapeople.org/xenner/