kqemu, FreeBSD, and virtual filesystem

Juergen Lock nox at jelal.kn-bremen.de
Wed Sep 21 11:53:50 PDT 2005


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


More information about the freebsd-emulation mailing list