List Info

Thread: Re: kqemu locking my machine hard on amd64 smp, with most recent patches




Re: kqemu locking my machine hard on amd64 smp, with most recent patches
country flaguser name
United States
2008-05-14 21:53:20
Hi Juergen.  No, I'm running it in a screen session on a
headless  
machine and using VNC as a display device.  I run it from
the console  
and it hangs before anything useful shows up.  Specifically,
it spits  
this out before hanging:

oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
audio: Failed to create voice `pcspk'
pcspk: Could not open voice

So yeah, it's complaining about the sound hardware.  Anyway,
if I  
watch it in VNC, it hangs immediately when trying to boot
the linux  
kernel; the only VM I've tried with it is a kubuntu install.
 It goes  
through the BIOS init, kicks off grub, and then says
"Starting up ..."  
and then hangs.

I've attached my dmesg.  Thanks for whatever time you can
put into this.


Todd







On May 14, 2008, at 7:33 PM, Juergen Lock wrote:

> In article <E1D909B0-2633-46F0-A862-45179A09B3A7duke.edu> you write:
>> I've been following the discussion on this list
about solving the SMP
>> amd64 kqemu issues pretty closely and have been
testing out the
>> modules as I've gone along, and as of kqemu
1.3.0.p11_4 it was  
>> working
>> pretty well for me.  However, I just built kqemu
1.3.0.p11_6 and with
>> qemu 0.9.1_7 it's locking my machine up hard.  It
isn't leaving me a
>> dump in /var/crash after I manually reset it, so
I'm not sure what to
>> look for.  Without kqemu, it's running fine albeit
expectedly slowly.
>> Does anyone have any suggestions for solutions, or
ways to generate
>> logs of whatever the problem may be short of
attaching a debugger or
>> something equally unwieldy?
>
> Are you running qemu under X?  You could try on the
console to see
> if there's anything printed there (like with the
qemu-devel port that
> has -curses which works at least for FreeBSD isos.)
>
> Anyway, I can't look at this today, but could you send
me a dmesg of
> the box in question?
>
> Thanx,
> 	Juergen


_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

  
Re: kqemu locking my machine hard on amd64 smp, with most recent patches
user name
2008-05-15 12:28:36
On Wed, May 14, 2008 at 10:53:20PM -0400, Todd Wasson
wrote:
> Hi Juergen.  No, I'm running it in a screen session on
a headless machine 
> and using VNC as a display device.  I run it from the
console and it hangs 
> before anything useful shows up.  Specifically, it
spits this out before 
> hanging:
> 
> oss: Could not initialize DAC
> oss: Failed to open `/dev/dsp'
> oss: Reason: No such file or directory
> oss: Could not initialize DAC
> oss: Failed to open `/dev/dsp'
> oss: Reason: No such file or directory
> audio: Failed to create voice `pcspk'
> pcspk: Could not open voice
> 
> So yeah, it's complaining about the sound hardware.

Oh that's _probably_ unrelated.

>  Anyway, if I watch it 
> in VNC, it hangs immediately when trying to boot the
linux kernel; the only 
> VM I've tried with it is a kubuntu install.  It goes
through the BIOS init, 
> kicks off grub, and then says "Starting up
..." and then hangs.
> 
> I've attached my dmesg.  Thanks for whatever time you
can put into this.

 Thanx.  Can you try the folloing patch?  (also at
	http://people.freebsd.org/~nox/qemu/kqemu-kmod-ts
s-cpldt2.patch
)

Index: Makefile
============================================================
=======
RCS file: /home/pcvs/ports/emulators/kqemu-kmod/Makefile,v
retrieving revision 1.25
diff -u -p -r1.25 Makefile
--- Makefile	12 May 2008 19:09:52 -0000	1.25
+++ Makefile	15 May 2008 17:07:33 -0000
 -7,7
+7,7 
 
 PORTNAME=	kqemu
 PORTVERSION=	1.3.0.p11
-PORTREVISION=	6
+PORTREVISION=	7
 CATEGORIES=	emulators kld
 MASTER_SITES=	http://fabrice.b
ellard.free.fr/qemu/ 
 		http://qemu.org/ 
Index: files/patch-tssworkaround
============================================================
=======
RCS file:
/home/pcvs/ports/emulators/kqemu-kmod/files/patch-tssworkaro
und,v
retrieving revision 1.3
diff -u -p -r1.3 patch-tssworkaround
--- files/patch-tssworkaround	12 May 2008 19:09:52
-0000	1.3
+++ files/patch-tssworkaround	15 May 2008 17:04:38 -0000
 -14,7
+14,7  Index: kqemu-freebsd.c
  
  #include "kqemu-kernel.h"
  
- -248,6 +256,57 
+ -248,6 +256,60 
      va_end(ap);
  }
  
 -26,7
+26,7  Index: kqemu-freebsd.c
 +extern  struct pcpu __pcpu[];
 +
 +/* called with interrupts disabled */
-+void CDECL kqemu_tss_fixup(unsigned long kerngdtbase)
++void CDECL kqemu_tss_fixup(unsigned long kerngdtbase,
uint16_t kernldtsel)
 +{
 +    int gsel_tss = GSEL(GPROC0_SEL, SEL_KPL);
 +    unsigned cpuid = PCPU_GET(cpuid);
 -64,6
+64,9  Index: kqemu-freebsd.c
 +	wrmsr(MSR_GSBASE, (u_int64_t)&__pcpu[cpuid]);
 +	wrmsr(MSR_KGSBASE, curthread->td_pcb->pcb_gsbase);
 +	wrmsr(MSR_FSBASE, 0);
++	ssdtosyssd(&gdt_segs[GPROC0_SEL],
++	   (struct system_segment_descriptor
*)&newgdt[GPROC0_SEL]);
++	lldt(kernldtsel);
 +    }
 +    ltr(gsel_tss);
 +}
 -90,7
+93,7  Index: common/kernel.c
 +#ifdef __FreeBSD__
 +#ifdef __x86_64__
 +        spin_lock(&g->lock);
-+        kqemu_tss_fixup(s->kernel_gdt.base);
++        kqemu_tss_fixup(s->kernel_gdt.base,
s->kernel_ldt_sel);
 +        spin_unlock(&g->lock);
 +#endif
 +#endif
 -104,7
+107,7  Index: kqemu-kernel.h
  
 +#ifdef __FreeBSD__
 +#ifdef __x86_64__
-+void CDECL kqemu_tss_fixup(unsigned long kerngdtbase);
++void CDECL kqemu_tss_fixup(unsigned long kerngdtbase,
uint16_t kernldtsel);
 +#endif
 +#endif
 +
_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )