From owner-freebsd-emulation@FreeBSD.ORG Mon Feb 16 09:50:35 2009 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3A3A106564A for ; Mon, 16 Feb 2009 09:50:35 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.terabit.net.ua (mail.terabit.net.ua [195.137.202.147]) by mx1.freebsd.org (Postfix) with ESMTP id 83A378FC15 for ; Mon, 16 Feb 2009 09:50:35 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from skuns.zoral.com.ua ([91.193.166.194] helo=mail.zoral.com.ua) by mail.terabit.net.ua with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1LYzVy-000E7X-4O; Mon, 16 Feb 2009 11:11:46 +0200 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id n1G9BfL1087440 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 16 Feb 2009 11:11:42 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id n1G9BfCI093219; Mon, 16 Feb 2009 11:11:41 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n1G9BffJ093209; Mon, 16 Feb 2009 11:11:41 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 16 Feb 2009 11:11:41 +0200 From: Kostik Belousov To: Roman Divacky Message-ID: <20090216091141.GD41617@deviant.kiev.zoral.com.ua> References: <20090215214304.GA17635@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RYJh/3oyKhIjGcML" Content-Disposition: inline In-Reply-To: <20090215214304.GA17635@freebsd.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua X-Virus-Scanned: mail.terabit.net.ua 1LYzVy-000E7X-4O 73ed22c22cca7ad8c24882679140b89f X-Terabit: YES Cc: emulation@freebsd.org Subject: Re: qemu booting amd64 fbsd 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: Mon, 16 Feb 2009 09:50:36 -0000 --RYJh/3oyKhIjGcML Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 15, 2009 at 10:43:04PM +0100, Roman Divacky wrote: > hi >=20 > I am trying to boot fbsd@amd64 7.1R in qemu-0.9.1_11 but it panics > early in the boot. usually. sometimes it gets upto the root mounting > but then hangs... >=20 > am I doing something wrong or is this just broken? >=20 > is there any other (reliable) way how to boot amd64 fbsd in sw? I use the patch below for the long time. Not sure whether this is your case. --- cpu-exec.c.orig 2008-02-16 18:23:53.134009488 +0200 +++ cpu-exec.c 2008-02-16 18:24:47.127662872 +0200 @@ -452,13 +452,15 @@ svm_check_intercept(SVM_EXIT_INTR); env->interrupt_request &=3D ~(CPU_INTERRUPT_HARD |= CPU_INTERRUPT_VIRQ); intno =3D cpu_get_pic_interrupt(env); - if (loglevel & CPU_LOG_TB_IN_ASM) { - fprintf(logfile, "Servicing hardware INT=3D0x%= 02x\n", intno); - } - do_interrupt(intno, 0, 0, 0, 1); - /* ensure that no TB jump will be modified as - the program flow was changed */ - BREAK_CHAIN; + if (intno !=3D -1) { + if (loglevel & CPU_LOG_TB_IN_ASM) { + fprintf(logfile, "Servicing hardware INT=3D0x%02x\n", intno); + } + do_interrupt(intno, 0, 0, 0, 1); + /* ensure that no TB jump will be modified as + the program flow was changed */ + BREAK_CHAIN; + } #if !defined(CONFIG_USER_ONLY) } else if ((interrupt_request & CPU_INTERRUPT_VIRQ) && (env->eflags & IF_MASK) && !(env->hflags & HF_INHI= BIT_IRQ_MASK)) { --RYJh/3oyKhIjGcML Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkmZLc0ACgkQC3+MBN1Mb4jfpACeJpLN7ABy1uHWpRPDP3ZoaprY dx4AnjEiiJQKq2rBSvgfbWWAIjWUiY5h =E5cF -----END PGP SIGNATURE----- --RYJh/3oyKhIjGcML--