Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MAVbE-0000mU-DN for qemu-devel@nongnu.org; Sat, 30 May 2009 16:56:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MAVbC-0000m8-0p for qemu-devel@nongnu.org; Sat, 30 May 2009 16:56:15 -0400 Received: from [199.232.76.173] (port=44405 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MAVbB-0000m5-SX for qemu-devel@nongnu.org; Sat, 30 May 2009 16:56:13 -0400 Received: from gelbbaer.kn-bremen.de ([78.46.108.116]:35155 helo=smtp.kn-bremen.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MAVbA-0006XP-Ol for qemu-devel@nongnu.org; Sat, 30 May 2009 16:56:13 -0400 From: Juergen Lock Date: Sat, 30 May 2009 22:51:52 +0200 Message-ID: <20090530205152.GA7702@triton.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] Thanx for the kqemu patches; some notes about NetBSD/OpenBSD guests List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: jan.kiszka@siemens.com, freebsd-emulation@FreeBSD.org 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