Date: Mon, 16 Feb 2009 11:11:41 +0200 From: Kostik Belousov <kostikbel@gmail.com> To: Roman Divacky <rdivacky@freebsd.org> Cc: emulation@freebsd.org Subject: Re: qemu booting amd64 fbsd Message-ID: <20090216091141.GD41617@deviant.kiev.zoral.com.ua> In-Reply-To: <20090215214304.GA17635@freebsd.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Sun, Feb 15, 2009 at 10:43:04PM +0100, Roman Divacky wrote:
> hi
>
> 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...
>
> am I doing something wrong or is this just broken?
>
> 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 &= ~(CPU_INTERRUPT_HARD | CPU_INTERRUPT_VIRQ);
intno = cpu_get_pic_interrupt(env);
- if (loglevel & CPU_LOG_TB_IN_ASM) {
- fprintf(logfile, "Servicing hardware INT=0x%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 != -1) {
+ if (loglevel & CPU_LOG_TB_IN_ASM) {
+ fprintf(logfile, "Servicing hardware INT=0x%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_INHIBIT_IRQ_MASK)) {
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)
iEYEARECAAYFAkmZLc0ACgkQC3+MBN1Mb4jfpACeJpLN7ABy1uHWpRPDP3ZoaprY
dx4AnjEiiJQKq2rBSvgfbWWAIjWUiY5h
=E5cF
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090216091141.GD41617>
