From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 21 18:53:50 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2133916A41F for ; Wed, 21 Sep 2005 18:53:50 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4957343D46 for ; Wed, 21 Sep 2005 18:53:48 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1]) by gwyn.kn-bremen.de (8.13.4/8.13.4/Debian-3) with ESMTP id j8LIrlrt030312; Wed, 21 Sep 2005 20:53:47 +0200 Received: from saturn.kn-bremen.de (uucp@localhost) by gwyn.kn-bremen.de (8.13.4/8.13.4/Submit) with UUCP id j8LIrlil030310; Wed, 21 Sep 2005 20:53:47 +0200 Received: from saturn.kn-bremen.de (localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.1/8.13.1) with ESMTP id j8LIph14013625; Wed, 21 Sep 2005 20:51:43 +0200 (CEST) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.1/8.13.1/Submit) id j8LIphmg013624; Wed, 21 Sep 2005 20:51:43 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Wed, 21 Sep 2005 20:51:43 +0200 To: "Lyubich, M" Message-ID: <20050921185143.GA12893@saturn.kn-bremen.de> Mail-Followup-To: "Lyubich, M" , freebsd-emulation@freebsd.org References: <1127319952.1726.3.camel@sbec.Suzlon-HRO.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1127319952.1726.3.camel@sbec.Suzlon-HRO.local> User-Agent: Mutt/1.4.2.1i Cc: freebsd-emulation@freebsd.org Subject: Re: kqemu, FreeBSD, and virtual filesystem X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2005 18:53:50 -0000 On Wed, Sep 21, 2005 at 06:25:52PM +0200, Lyubich, M wrote: > Hello, > > My question relates to accelerator KQEMU and how it should be configured > for FreeBSD. > > The documentation on the Fabrice's site > http://fabrice.bellard.free.fr/qemu/kqemu-doc.html > > states that: > > "When using KQEMU on a Linux or FreeBSD host, QEMU will create a big > hidden file containing the RAM of the virtual machine. For best > performance, it is important that this file is kept in RAM and not on > the hard disk. ..... You can use the QEMU_TMPDIR shell variable to set a > new directory for the QEMU RAM file." > > Applying this to freebsd, does it mean that I have to use mdconfig + > newfs to create new filesystem and then setenv QEMU_TMPDIR=/dev/md0? The FreeBSD port uses the MAP_ANON mmap flag, and doesnt need QEMU_TMPDIR (see files/patch-osdep.c which patches work/qemu-snapshot-2005-09-09_23/ osdep.c:qemu_vmalloc().) So you don't need to do anything. Juergen