From owner-freebsd-emulation@FreeBSD.ORG Sat May 30 20:56:12 2009 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 489641065670 for ; Sat, 30 May 2009 20:56:12 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 084B38FC08 for ; Sat, 30 May 2009 20:56:11 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 6B31E1E00188; Sat, 30 May 2009 22:56:10 +0200 (CEST) Received: from triton.kn-bremen.de (noident@localhost [127.0.0.1]) by triton.kn-bremen.de (8.14.3/8.14.3) with ESMTP id n4UKpr6H008693; Sat, 30 May 2009 22:51:53 +0200 (CEST) (envelope-from nox@triton.kn-bremen.de) Received: (from nox@localhost) by triton.kn-bremen.de (8.14.3/8.14.3/Submit) id n4UKpqlb008692; Sat, 30 May 2009 22:51:52 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Sat, 30 May 2009 22:51:52 +0200 To: qemu-devel@nongnu.org Message-ID: <20090530205152.GA7702@triton.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Cc: jan.kiszka@siemens.com, freebsd-emulation@FreeBSD.org Subject: Thanx for the kqemu patches; some notes about NetBSD/OpenBSD guests 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: Sat, 30 May 2009 20:56:12 -0000 Hi! I just committed Jan's kqemu patch series to the FreeBSD kqemu port (yes FreeBSD is another one of those `left behind' OSes where kvm doesn't really work yet...) - and I also committed an old NetBSD/OpenBSD guest kqemu patch, http://lists.gnu.org/archive/html/qemu-devel/2007-11/msg00125.html and then played with a NetBSD guest in qemu 0.10.5 a little, where I found out a few things: 1. A few times I even got NetBSD 5.0/i386 running with -kernel-kqemu now, tho a few other times I also got guest processes segfaulting etc. `Regualr' kqemu seems stable now tho. 2. NetBSD doesn't seem to particularly like qemu's acpi tables, it apparenly doesn't find a pci bus and anything on it in that case (like a nic our audio card; `pcictl pci0 list' says Device not configured.) 3. When I disable acpi either via the boot menu or via -no-acpi it still has trouble assigning pci irqs correctly (like, uses irq 12 instead of 11 for the nic) - this seems to have something to do with the emulated io-apic that it still picks up in that case - if I disable that by building a new bios that has this patch reverted, pc-bios/bios-pq/0003_kvm-bios-generate-mptable-unconditionally.patch the irqs at least get assigned correctly. (Maybe the bios should only pass an mptable for a single cpu when there also is acpi?) 4. most of qemu's emulated nics NetBSD still doesn't like, I had most luck with pcnet. (5. vbox has troubles with NetBSD too, it only boots here when I enable svm _and_ npt. Luckily that's also when a vm runs the fastest, but of course npt/ept are also still pretty rare...) Oh, if anyone wants dmesg.s of the various with/without acpi/io-apic combinations I can post those too, the patched bios I just put at: http://people.freebsd.org/~nox/qemu/pc-bios-0.10.5-no-default-mptable/bios.bin (I had to end up building it on a Linux guest, our assembler said things like rombios32start.S:56: Error: `0(%ebx)' is not a valid 16 bit base/index expression .) Thanx, Juergen