From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aurelien Jarno Subject: Re: FreeBSD image hangs during boot Date: Wed, 10 Oct 2007 22:42:29 +0200 Message-ID: <20071010204229.GA19121@volta.aurel32.net> References: <47022E7E.3030509@aurel32.net> <470234DF.6030802@qumranet.com> <470237DC.5060008@aurel32.net> <47023BBB.3020806@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Avi Kivity Return-path: Content-Disposition: inline In-Reply-To: <47023BBB.3020806-atKUWr5tajBWk0Htik3J/w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org On Tue, Oct 02, 2007 at 02:38:19PM +0200, Avi Kivity wrote: > Aurelien Jarno wrote: > > Avi Kivity a =E9crit : > > = > >> Aurelien Jarno wrote: > >> = > >>> Hi all, > >>> > >>> That's not something new, but I never seen the problem mentioned here. > >>> FreeBSD does not work on KVM, approximately since the lapic merge. > >>> > >>> However, that does not seem related to lapic, as using -no-kvm-irqchip > >>> does not help. With -no-kvm I get a page fault in kernel mode, while = the > >>> normal QEMU (0.9.0 or CVS) does not have this problem. > >>> > >>> This can be easily reproduced with the latest installation CD: > >>> ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-i386/6.2/6.2-RELEASE-i38= 6-bootonly.iso > >>> > >>> = > >>> = > >> It complains about the RSDT checksum. Running with -no-acpi works = > >> around the problem (it gets to some country selection screen). So it = > >> looks like the ACPI tables are messed up. > >> = > > > > The RSDT checksum problem is not new, but it was harmless on previous > > versions (like kvm-37). > > > > Using -no-acpi, I am able to boot the machine with -no-kvm, but the > > guest still hang with -no-acpi and with -no-kvm-irqchip or lapic > > enabled. At least on AMD64, I haven't tested yet on an Intel machine. > > > > = > = > Hangs on AMD here as well; works on intel (with -no-acpi). I have finally found time to bisect the problem. The commit that has = broken FreeBSD on AMD is already a bit old: commit aa38840d3d2e0a804e628077df8d8879b496d741 Author: Rusty Russell Date: Sun Sep 9 14:12:54 2007 +0300 KVM: Clean up unloved invlpg emulation invlpg shouldn't fetch the "src" address, since it may not be valid, however SVM's "solution" which neuters emulation of all group 7 instruction is horrible and breaks kvm-lite. The simplest fix is to put a special check in for invlpg. Signed-off-by: Rusty Russell Signed-off-by: Avi Kivity = -- = .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org | aurelien-rXXEIb44qovR7s880joybQ@public.gmane.org `- people.debian.org/~aurel32 | www.aurel32.net ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/