Re: [Qemu-devel] kernel-kqemu and linux
Sorry, still fails at the same place. It recognises the APIC: ... Found and enabled local APIC! mapped APIC to d000 (fee0) ... I noticed that before the 'kernel BUG' message I got a warning that scrolled off the screen; so I halted qemu and captured it piece by piece: ... hda: cache flushes not supported hda:Badness in blk_remove_plug at block/ll_rw_blk.c:1436 xx blk_remove_plug+0x69/0x70 xx ide_do_request+0x3c2/0x3f0 xx do_ide_request+0x24/0x30 xx generic_unplug_device+0x10/0x20 xx block_sync_page+0x3a/0x50 ... xx kernel_thread_helper+0x5/0xc hda1 hda2 hda3 [ cut here ] kernel BUG at mm/swap.c:215! ... then as before (I can transcribe the whole trace if you want). The warning is the following code: int blk_remove_plug(request_queue_t *q) { WARN_ON(!irqs_disabled()) "Badness in" comes from the WARN_ON macro. So it appears that linux expects the irqs to have been disabled, which they are in the normal emulation but not in the virtualised kernel mode. Without -kernel-kqemu I don't get the warning (or the BUG): ... hda: cache flushes not supported hda1 hda2 hda3 hdc: ATAPI 4X CD-ROM drive, 512kB Cache and it boots up & works fine. Kev. On Tue, 21 Mar 2006 00:39:15 +0100 Fabrice Bellard <[EMAIL PROTECTED]> wrote: > Try the following patch: > > diff -u -w -r1.39 helper2.c > --- helper2.c 4 Dec 2005 18:46:06 - 1.39 > +++ helper2.c 20 Mar 2006 23:38:51 - > @@ -110,6 +110,7 @@ > env->pat = 0x0007040600070406ULL; > env->cpuid_ext_features = 0; > env->cpuid_features |= CPUID_FXSR | CPUID_MMX | CPUID_SSE | > CPUID_SSE2 > | CPUID_PAE | CPUID_SEP; > +env->cpuid_features |= CPUID_APIC; /* TEST */ > env->cpuid_xlevel = 0; > { > const char *model_id = "QEMU Virtual CPU version " > QEMU_VERSION; > > If it works then APIC usage will become the default on i386... > > Fabrice. > > Kevin F. Quinn wrote: > > Hi. > > > > I'm successfully running Windows 2000 guest on qemu (linux host) > > with kernel-kqemu, and the speed is excellent. However I can't get > > linux to run as a guest (still linux host); no matter what kernel > > or kernel config I create, it always BUGs at the same point: > > > > hda: hda1 hda2 hda3 > > [ cut here ] > > kernel BUG at mm/swap.c:215! > > invalid operand: [#1] > > Modules linked in: > > CPU:0 > > EIP:0060:[]Not tainted VLI > > EFLAGS: 00010256 (2.6.15-gentoo-r1) > > EIP is at release_pages+0x131/0x140 > > eax: ebx: c12f98e0 ecx: c0458c94 edx: c12f98e0 > > esi: edi: ebp: 0001 esp: d7fc1da8 > > ds: 007b es: 007b ss: 0068 > > Process swapper (pid: 1, threadinfo=d7fc task=d7fe4a10) > > Stack: c136eca8 d7fc1e30 0040 > > 000e c12fb160 > >c0458bc0 0001 c04f2ac0 c0141bca c04f2ac8 0001 > > d7fc1e28 > >0001 d7fc1e28 0001 0001 c01419b5 > > d7fc1e30 0001 > > Call TRace: > > [] __pagevec_lru_add_active+0xaa/0xc0 > > [] __pagevec_release+0x25/0x30 > > [] invalidate_mapping_pages+0xf9/0x100 > > [] invalidate_inode_pages+0x1e/0x30 > > [] kill_bdev+0x19/0x40 > > [] add_disk+0x49/0x60 > > ... (during ide probe) > > > > > > If kernel-kqemu works with linux 2.6 for anyone, could you email > > a .config that works?) > > > > Thanks, > > > > > > > > > > ___ > > Qemu-devel mailing list > > Qemu-devel@nongnu.org > > http://lists.nongnu.org/mailman/listinfo/qemu-devel > > > > ___ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel -- Kevin F. Quinn signature.asc Description: PGP signature ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
Re: [Qemu-devel] kernel-kqemu and linux
Fabrice Bellard wrote: Try the following patch: diff -u -w -r1.39 helper2.c --- helper2.c 4 Dec 2005 18:46:06 - 1.39 +++ helper2.c 20 Mar 2006 23:38:51 - @@ -110,6 +110,7 @@ env->pat = 0x0007040600070406ULL; env->cpuid_ext_features = 0; env->cpuid_features |= CPUID_FXSR | CPUID_MMX | CPUID_SSE | CPUID_SSE2 | CPUID_PAE | CPUID_SEP; +env->cpuid_features |= CPUID_APIC; /* TEST */ env->cpuid_xlevel = 0; { const char *model_id = "QEMU Virtual CPU version " QEMU_VERSION; If it works then APIC usage will become the default on i386... I'm afraid that makes no difference at all here.. PIII-M linux host and both 2.4 compiled for i386 and 2.6 compiled for PII linux guests Regards, Brad -- "Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so." -- Douglas Adams ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
Re: [Qemu-devel] kernel-kqemu and linux
Try the following patch: diff -u -w -r1.39 helper2.c --- helper2.c 4 Dec 2005 18:46:06 - 1.39 +++ helper2.c 20 Mar 2006 23:38:51 - @@ -110,6 +110,7 @@ env->pat = 0x0007040600070406ULL; env->cpuid_ext_features = 0; env->cpuid_features |= CPUID_FXSR | CPUID_MMX | CPUID_SSE | CPUID_SSE2 | CPUID_PAE | CPUID_SEP; +env->cpuid_features |= CPUID_APIC; /* TEST */ env->cpuid_xlevel = 0; { const char *model_id = "QEMU Virtual CPU version " QEMU_VERSION; If it works then APIC usage will become the default on i386... Fabrice. Kevin F. Quinn wrote: Hi. I'm successfully running Windows 2000 guest on qemu (linux host) with kernel-kqemu, and the speed is excellent. However I can't get linux to run as a guest (still linux host); no matter what kernel or kernel config I create, it always BUGs at the same point: hda: hda1 hda2 hda3 [ cut here ] kernel BUG at mm/swap.c:215! invalid operand: [#1] Modules linked in: CPU:0 EIP:0060:[]Not tainted VLI EFLAGS: 00010256 (2.6.15-gentoo-r1) EIP is at release_pages+0x131/0x140 eax: ebx: c12f98e0 ecx: c0458c94 edx: c12f98e0 esi: edi: ebp: 0001 esp: d7fc1da8 ds: 007b es: 007b ss: 0068 Process swapper (pid: 1, threadinfo=d7fc task=d7fe4a10) Stack: c136eca8 d7fc1e30 0040 000e c12fb160 c0458bc0 0001 c04f2ac0 c0141bca c04f2ac8 0001 d7fc1e28 0001 d7fc1e28 0001 0001 c01419b5 d7fc1e30 0001 Call TRace: [] __pagevec_lru_add_active+0xaa/0xc0 [] __pagevec_release+0x25/0x30 [] invalidate_mapping_pages+0xf9/0x100 [] invalidate_inode_pages+0x1e/0x30 [] kill_bdev+0x19/0x40 [] add_disk+0x49/0x60 ... (during ide probe) If kernel-kqemu works with linux 2.6 for anyone, could you email a .config that works?) Thanks, ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] qemu configure
CVSROOT:/sources/qemu Module name:qemu Branch: Changes by: Paul Brook <[EMAIL PROTECTED]> 06/03/19 16:31:11 Modified files: . : configure Log message: Rename --*able-softmmu --*able-system. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/qemu/configure.diff?tr1=1.85&tr2=1.86&r1=text&r2=text ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
Re: [Qemu-devel] -kernel-kqemu and a linux guest
On 3/17/06, Brad Campbell <[EMAIL PROTECTED]> wrote: > More info.. > Tried with a brand new shiny 2.6.15.6 kernel.. > screendump and .config at http://fnarfbargle.dyndns.org:81/qemu-oops/ > Also oops2.jpg is the vanilla Debian 2.4 kernel from R3.1 Got the same as oops.jpg when trying on 2.6.12 from mandriva ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] kernel-kqemu and linux
Hi. I'm successfully running Windows 2000 guest on qemu (linux host) with kernel-kqemu, and the speed is excellent. However I can't get linux to run as a guest (still linux host); no matter what kernel or kernel config I create, it always BUGs at the same point: hda: hda1 hda2 hda3 [ cut here ] kernel BUG at mm/swap.c:215! invalid operand: [#1] Modules linked in: CPU:0 EIP:0060:[]Not tainted VLI EFLAGS: 00010256 (2.6.15-gentoo-r1) EIP is at release_pages+0x131/0x140 eax: ebx: c12f98e0 ecx: c0458c94 edx: c12f98e0 esi: edi: ebp: 0001 esp: d7fc1da8 ds: 007b es: 007b ss: 0068 Process swapper (pid: 1, threadinfo=d7fc task=d7fe4a10) Stack: c136eca8 d7fc1e30 0040 000e c12fb160 c0458bc0 0001 c04f2ac0 c0141bca c04f2ac8 0001 d7fc1e28 0001 d7fc1e28 0001 0001 c01419b5 d7fc1e30 0001 Call TRace: [] __pagevec_lru_add_active+0xaa/0xc0 [] __pagevec_release+0x25/0x30 [] invalidate_mapping_pages+0xf9/0x100 [] invalidate_inode_pages+0x1e/0x30 [] kill_bdev+0x19/0x40 [] add_disk+0x49/0x60 ... (during ide probe) If kernel-kqemu works with linux 2.6 for anyone, could you email a .config that works?) Thanks, -- Kevin F. Quinn signature.asc Description: PGP signature ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] Documentation Erratum
This fixes an omission in the documentation: diff -c -r1.1 qemu-doc.texi *** qemu-doc.texi 2006/02/16 09:32:42 1.1 --- qemu-doc.texi 2006/03/20 15:56:04 *** *** 432,437 --- 432,438 [Linux only, parallel port only] Use host parallel port @var{N}. Currently only SPP parallel port features can be used. @item file:filename + [Unix only] Write output to filename. No character can be read. @item stdio [Unix only] standard input/output ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel