From owner-freebsd-emulation@FreeBSD.ORG Sat May 30 23:34:34 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 8E1DB106564A for ; Sat, 30 May 2009 23:34:34 +0000 (UTC) (envelope-from herbszt@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id EE4D28FC0C for ; Sat, 30 May 2009 23:34:33 +0000 (UTC) (envelope-from herbszt@gmx.de) Received: (qmail invoked by alias); 30 May 2009 23:07:50 -0000 Received: from p54BD2437.dip0.t-ipconnect.de (HELO FSCPC) [84.189.36.55] by mail.gmx.net (mp039) with SMTP; 31 May 2009 01:07:50 +0200 X-Authenticated: #310364 X-Provags-ID: V01U2FsdGVkX19PAe09Xa1PxdVhk6wQI67qc9wkFH2+4LnjguOuJN zE7dWQWT4PXuQl Message-ID: <799A5F31E2B2415DA53F558FE3E2ACE7@FSCPC> From: "Sebastian Herbszt" To: "Juergen Lock" , References: <20090530205152.GA7702@triton.kn-bremen.de> In-Reply-To: <20090530205152.GA7702@triton.kn-bremen.de> Date: Sun, 31 May 2009 01:06:31 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6000.16480 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16669 X-Y-GMX-Trusted: 0 X-FuHaFi: 0.55 Cc: jan.kiszka@siemens.com, freebsd-emulation@FreeBSD.org Subject: Re: 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 23:34:34 -0000 Juergen Lock wrote: > 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?) With "-no-acpi" there is no PIIX4 PM added to the bus. If i don't mistake the mp and acpi tables aren't affected by this. The mptable doesn't contain a pci bus entry (just isa). The linux kernel does complain if booted with "acpi=off"; maybe NetBSD is more picky. > 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 would like to see the output. > (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 > .) What's your tool chain (gcc, binutils,...) ? - Sebastian