qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Re: testing qemu svn r6636 on FreeBSD; future of qemu on FreeBSD...
       [not found]   ` <20090223211933.GA79361@saturn.kn-bremen.de>
@ 2009-02-25 15:24     ` Gary Jennejohn
  0 siblings, 0 replies; 8+ messages in thread
From: Gary Jennejohn @ 2009-02-25 15:24 UTC (permalink / raw)
  To: Juergen Lock; +Cc: freebsd-emulation, freebsd-current, qemu-devel

On Mon, 23 Feb 2009 22:19:33 +0100
Juergen Lock <nox@jelal.kn-bremen.de> wrote:

> On Mon, Feb 23, 2009 at 03:47:24PM +0100, Gary Jennejohn wrote:
> > On Sun, 22 Feb 2009 02:37:47 +0100
> > Juergen Lock <nox@jelal.kn-bremen.de> wrote:
> > 
> > > been experimental and you should use raw images if you want reliability;
> > > raw is also usually faster) - apart from these two issues this snapshot
> > > is looking pretty good in my (limited) testing so far; you are encouraged
> > > to test it with your various guests that you have lying around, if it
> > > works for you as well maybe we can indeed update the FreeBSD qemu-devel
> > > port again before the next official qemu release gets cut...
> > > 
> > 
> > Well, I applied the patches and installed qemu.
> > 
> > I tried installing openSUSELinux 10.3 because I had a DVD laying around.
> > 
> > I used a 150GB raw image created using qemu-img.  I did not use kqemu.
> > I started qemu with this command line:
> > 
> > qemu -boot d -cdrom /dev/acd0 -hda linux.img -localtime -m 1G
> > 
> > Note I have an AMD64 X2 with 4GB of RAM installed running 8-current.
> > 
> > It got up to the point where it actually started the install and then
> > croaked with SIGSEGV, I think it was.  The error message flashed by
> > rather quickly.
> > 
> > That means that I was able to partition the disks and specify some
> > non-standard packages. It managed to create and format the disk
> > partitions and figure out from the DVD which packages to install.
> > 
> > Not too bad, I suppose.
> 
> A SIGSEGV, hmm.  What I do see sometimes especially without kqemu is guest
> failures related to various kinds of timeouts, i.e. guests not expecting
> running as slowly...  tho a SIGSEGV is probably something different.
>

I tried the installation a few more times using the patched qemu-devel
and was able to see that the error was indeed a segmentation violation
in Yast.call, whatever that may mean.

> You could try a few things:
> a) the same with kqemu (userland), in case its a tcg bug (or indeed a
>    timeout; remember to rebuild qemu in case you built it without the
>    kqemu knob enabled or otherwise kqemu won't get used), and also
> b) another time with -kernel-kqemu in case its a tcg bug affecting
>    guest kernel code (altho of course in both cases kqemu can cause its
>    own kind of failures, even more so with amd64 guests...)
>

I'll consider doing these steps with the patched qemu-devel later.

> c) try the same with the original qemu-devel port and also with qemu 0.9.1
>    (the qemu port), in case its a regression (possibly caused by the tcg
>    conversion?)
>

qemu never gets past the initial openSUSE install screen.  It just sits
there eating 100% of the CPU without any visible progress.

I tried qemu-devel with kqemu.ko loaded but it never got past loading the
Linux kernel.  It hung at various boot stages with no apparent pattern.

Without kqemu.ko it is actually doing the install as I write this.  Have
to wait and see just how far it gets.

One difference between now and before is that I have vfs_aio in the
kernel.  I'm also running a brand-new kernel from today.

BTW this is the command line which I used:
qemu -net none -m 1G -boot d -cdrom /dev/acd0 -hda linux.img -localtime -std-vga

> d) see if you can enable coredumps in the guest in order to find out more
>    about your particular failure.
> 

Well, supposedly Yast.call dumped core, but since the Linux install runs
out of a memory disk there's no way for me to see it.

I have no idea how to enable coredumps such that I can acccess any coredumps
which may be made.

>  Oh and if you do any of these you may want to also Cc the qemu list with
> your findings, they are probably interested as well...
> 

OK, added.

---
Gary Jennejohn

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] Re: testing qemu svn r6636 on FreeBSD; future of qemu on FreeBSD...
@ 2009-02-25 19:15 Gary Jennejohn
  2009-02-28 17:15 ` Juergen Lock
  0 siblings, 1 reply; 8+ messages in thread
From: Gary Jennejohn @ 2009-02-25 19:15 UTC (permalink / raw)
  To: Juergen Lock; +Cc: freebsd-emulation, freebsd-current, qemu-devel

On Mon, 23 Feb 2009 22:19:33 +0100
Juergen Lock <nox@jelal.kn-bremen.de> wrote:

> You could try a few things:
> a) the same with kqemu (userland), in case its a tcg bug (or indeed a
>    timeout; remember to rebuild qemu in case you built it without the
>    kqemu knob enabled or otherwise kqemu won't get used), and also
> b) another time with -kernel-kqemu in case its a tcg bug affecting
>    guest kernel code (altho of course in both cases kqemu can cause its
>    own kind of failures, even more so with amd64 guests...)
>  

Neither of these work.  The only way I can get past loading the kernel
is with -no-kqemu.

I still see the segmentation fault in Yast.call.  Now I know that it's
in line 486, if that's of any interest.

Sorry, I'm not going to invest any more time in this.

---
Gary Jennejohn

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] Re: testing qemu svn r6636 on FreeBSD; future of qemu on FreeBSD...
  2009-02-25 19:15 [Qemu-devel] Re: testing qemu svn r6636 on FreeBSD; future of qemu on FreeBSD Gary Jennejohn
@ 2009-02-28 17:15 ` Juergen Lock
  2009-02-28 19:16   ` Gary Jennejohn
  0 siblings, 1 reply; 8+ messages in thread
From: Juergen Lock @ 2009-02-28 17:15 UTC (permalink / raw)
  To: Gary Jennejohn; +Cc: freebsd-emulation, freebsd-current, qemu-devel

On Wed, Feb 25, 2009 at 08:15:50PM +0100, Gary Jennejohn wrote:
> On Mon, 23 Feb 2009 22:19:33 +0100
> Juergen Lock <nox@jelal.kn-bremen.de> wrote:
> 
> > You could try a few things:
> > a) the same with kqemu (userland), in case its a tcg bug (or indeed a
> >    timeout; remember to rebuild qemu in case you built it without the
> >    kqemu knob enabled or otherwise kqemu won't get used), and also
> > b) another time with -kernel-kqemu in case its a tcg bug affecting
> >    guest kernel code (altho of course in both cases kqemu can cause its
> >    own kind of failures, even more so with amd64 guests...)
> >  
> 
> Neither of these work.  The only way I can get past loading the kernel
> is with -no-kqemu.
> 
> I still see the segmentation fault in Yast.call.  Now I know that it's
> in line 486, if that's of any interest.
> 
> Sorry, I'm not going to invest any more time in this.

Thanx.  Can someone else verify that kqemu still works on FreeBSD-current?
It is possible that you got hit by the kqemu tsc vs smp problem, i.e.
passing `notsc' to the guest kernel or forcing qemu onto one cpu
(cpuset -l 0 qemu ...) may have helped there, sorry I should have thought
of that earlier...

 Also, did I get that right that this opensuse 10.3 install worked with
the original qemu-devel port (without kqemu)?  So we do seem to have a
regression here...  (thats a 20080620 qemu svn snapshot, for the folks
on the qemu list.)

 Thanx,
	Juergen

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] Re: testing qemu svn r6636 on FreeBSD; future of qemu on FreeBSD...
  2009-02-28 17:15 ` Juergen Lock
@ 2009-02-28 19:16   ` Gary Jennejohn
  2009-02-28 21:36     ` Juergen Lock
  0 siblings, 1 reply; 8+ messages in thread
From: Gary Jennejohn @ 2009-02-28 19:16 UTC (permalink / raw)
  To: Juergen Lock; +Cc: freebsd-emulation, freebsd-current, qemu-devel

On Sat, 28 Feb 2009 18:15:20 +0100
Juergen Lock <nox@jelal.kn-bremen.de> wrote:

> On Wed, Feb 25, 2009 at 08:15:50PM +0100, Gary Jennejohn wrote:
> > On Mon, 23 Feb 2009 22:19:33 +0100
> > Juergen Lock <nox@jelal.kn-bremen.de> wrote:
> > 
> > > You could try a few things:
> > > a) the same with kqemu (userland), in case its a tcg bug (or indeed a
> > >    timeout; remember to rebuild qemu in case you built it without the
> > >    kqemu knob enabled or otherwise kqemu won't get used), and also
> > > b) another time with -kernel-kqemu in case its a tcg bug affecting
> > >    guest kernel code (altho of course in both cases kqemu can cause its
> > >    own kind of failures, even more so with amd64 guests...)
> > >  
> > 
> > Neither of these work.  The only way I can get past loading the kernel
> > is with -no-kqemu.
> > 
> > I still see the segmentation fault in Yast.call.  Now I know that it's
> > in line 486, if that's of any interest.
> > 
> > Sorry, I'm not going to invest any more time in this.
> 
> Thanx.  Can someone else verify that kqemu still works on FreeBSD-current?
>

I went back to openSUSE with the standard qemu-devel.  I found that I
could (usually) boot w/o problems if I put -no-acpi on the CL.

Right now I have openSUSE runngin pretty well.  It's nearly as fast as
on my old (genuine) IBM X31 laptop :)

> It is possible that you got hit by the kqemu tsc vs smp problem, i.e.
> passing `notsc' to the guest kernel or forcing qemu onto one cpu
> (cpuset -l 0 qemu ...) may have helped there, sorry I should have thought
> of that earlier...
> 

I just tried these suggestions (with the standard qemu-devel) and they
don't seem to do any harm :-P

>  Also, did I get that right that this opensuse 10.3 install worked with
> the original qemu-devel port (without kqemu)?  So we do seem to have a
> regression here...  (thats a 20080620 qemu svn snapshot, for the folks
> on the qemu list.)
> 

See above.

Now I'm thinking about giving the patched qemu-devel another try, since
I've found some workarounds for booting.  I'll see whether I can at least
boot into the installed openSUSE using it.

---
Gary Jennejohn

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] Re: testing qemu svn r6636 on FreeBSD; future of qemu on FreeBSD...
  2009-02-28 19:16   ` Gary Jennejohn
@ 2009-02-28 21:36     ` Juergen Lock
  2009-03-01 17:57       ` Gary Jennejohn
  0 siblings, 1 reply; 8+ messages in thread
From: Juergen Lock @ 2009-02-28 21:36 UTC (permalink / raw)
  To: Gary Jennejohn; +Cc: freebsd-emulation, freebsd-current, qemu-devel

On Sat, Feb 28, 2009 at 08:16:50PM +0100, Gary Jennejohn wrote:
> On Sat, 28 Feb 2009 18:15:20 +0100
> Juergen Lock <nox@jelal.kn-bremen.de> wrote:
> 
> > On Wed, Feb 25, 2009 at 08:15:50PM +0100, Gary Jennejohn wrote:
> > > On Mon, 23 Feb 2009 22:19:33 +0100
> > > Juergen Lock <nox@jelal.kn-bremen.de> wrote:
> > > 
> > > > You could try a few things:
> > > > a) the same with kqemu (userland), in case its a tcg bug (or indeed a
> > > >    timeout; remember to rebuild qemu in case you built it without the
> > > >    kqemu knob enabled or otherwise kqemu won't get used), and also
> > > > b) another time with -kernel-kqemu in case its a tcg bug affecting
> > > >    guest kernel code (altho of course in both cases kqemu can cause its
> > > >    own kind of failures, even more so with amd64 guests...)
> > > >  
> > > 
> > > Neither of these work.  The only way I can get past loading the kernel
> > > is with -no-kqemu.
> > > 
> > > I still see the segmentation fault in Yast.call.  Now I know that it's
> > > in line 486, if that's of any interest.
> > > 
> > > Sorry, I'm not going to invest any more time in this.
> > 
> > Thanx.  Can someone else verify that kqemu still works on FreeBSD-current?
> >
> 
> I went back to openSUSE with the standard qemu-devel.  I found that I
> could (usually) boot w/o problems if I put -no-acpi on the CL.
> 
> Right now I have openSUSE runngin pretty well.  It's nearly as fast as
> on my old (genuine) IBM X31 laptop :)
> 
> > It is possible that you got hit by the kqemu tsc vs smp problem, i.e.
> > passing `notsc' to the guest kernel or forcing qemu onto one cpu
> > (cpuset -l 0 qemu ...) may have helped there, sorry I should have thought
> > of that earlier...
> > 
> 
> I just tried these suggestions (with the standard qemu-devel) and they
> don't seem to do any harm :-P
> 
..but they didn't help either?  (i.e. w/o -no-acpi)

> >  Also, did I get that right that this opensuse 10.3 install worked with
> > the original qemu-devel port (without kqemu)?  So we do seem to have a
> > regression here...  (thats a 20080620 qemu svn snapshot, for the folks
> > on the qemu list.)
> > 
> 
> See above.
> 
> Now I'm thinking about giving the patched qemu-devel another try, since
> I've found some workarounds for booting.  I'll see whether I can at least
> boot into the installed openSUSE using it.

 Thanx, :)
	Juergen

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] Re: testing qemu svn r6636 on FreeBSD; future of qemu on FreeBSD...
  2009-02-28 21:36     ` Juergen Lock
@ 2009-03-01 17:57       ` Gary Jennejohn
  2009-03-01 23:13         ` Juergen Lock
  0 siblings, 1 reply; 8+ messages in thread
From: Gary Jennejohn @ 2009-03-01 17:57 UTC (permalink / raw)
  To: Juergen Lock; +Cc: freebsd-emulation, freebsd-current, qemu-devel

On Sat, 28 Feb 2009 22:36:20 +0100
Juergen Lock <nox@jelal.kn-bremen.de> wrote:

> On Sat, Feb 28, 2009 at 08:16:50PM +0100, Gary Jennejohn wrote:
{snip old stuff]
> > > It is possible that you got hit by the kqemu tsc vs smp problem, i.e.
> > > passing `notsc' to the guest kernel or forcing qemu onto one cpu
> > > (cpuset -l 0 qemu ...) may have helped there, sorry I should have thought
> > > of that earlier...
> > > 
> > 
> > I just tried these suggestions (with the standard qemu-devel) and they
> > don't seem to do any harm :-P
> > 
> ..but they didn't help either?  (i.e. w/o -no-acpi)
>

Yes it did.  It boots without -no-apci and with notpc just fine.

> > 
> > Now I'm thinking about giving the patched qemu-devel another try, since
> > I've found some workarounds for booting.  I'll see whether I can at least
> > boot into the installed openSUSE using it.
> 

OK, the patched qemu-devel can boot the already installed openSUSE.

I tried it with and without kernel-kqemu and both worked as long as
I booted with notpc.

Can't explain why the installation failed, though.

---
Gary Jennejohn

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] Re: testing qemu svn r6636 on FreeBSD; future of qemu on FreeBSD...
  2009-03-01 17:57       ` Gary Jennejohn
@ 2009-03-01 23:13         ` Juergen Lock
  2009-03-02  0:32           ` Gary Jennejohn
  0 siblings, 1 reply; 8+ messages in thread
From: Juergen Lock @ 2009-03-01 23:13 UTC (permalink / raw)
  To: Gary Jennejohn; +Cc: freebsd-emulation, freebsd-current, qemu-devel

On Sun, Mar 01, 2009 at 06:57:09PM +0100, Gary Jennejohn wrote:
> On Sat, 28 Feb 2009 22:36:20 +0100
> Juergen Lock <nox@jelal.kn-bremen.de> wrote:
> 
> > On Sat, Feb 28, 2009 at 08:16:50PM +0100, Gary Jennejohn wrote:
> {snip old stuff]
> > > > It is possible that you got hit by the kqemu tsc vs smp problem, i.e.
> > > > passing `notsc' to the guest kernel or forcing qemu onto one cpu
> > > > (cpuset -l 0 qemu ...) may have helped there, sorry I should have thought
> > > > of that earlier...
> > > > 
> > > 
> > > I just tried these suggestions (with the standard qemu-devel) and they
> > > don't seem to do any harm :-P
> > > 
> > ..but they didn't help either?  (i.e. w/o -no-acpi)
> >
> 
> Yes it did.  It boots without -no-apci and with notpc just fine.
> 
You mean notsc, right...?

> > > 
> > > Now I'm thinking about giving the patched qemu-devel another try, since
> > > I've found some workarounds for booting.  I'll see whether I can at least
> > > boot into the installed openSUSE using it.
> > 
> 
> OK, the patched qemu-devel can boot the already installed openSUSE.
> 
> I tried it with and without kernel-kqemu and both worked as long as
> I booted with notpc.
> 
 ..also notsc here? :)

> Can't explain why the installation failed, though.

 OK, thanx,
	Juergen

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] Re: testing qemu svn r6636 on FreeBSD; future of qemu on FreeBSD...
  2009-03-01 23:13         ` Juergen Lock
@ 2009-03-02  0:32           ` Gary Jennejohn
  0 siblings, 0 replies; 8+ messages in thread
From: Gary Jennejohn @ 2009-03-02  0:32 UTC (permalink / raw)
  To: Juergen Lock; +Cc: freebsd-emulation, freebsd-current, qemu-devel

On Mon, 2 Mar 2009 00:13:16 +0100
Juergen Lock <nox@jelal.kn-bremen.de> wrote:

> On Sun, Mar 01, 2009 at 06:57:09PM +0100, Gary Jennejohn wrote:
> > Yes it did.  It boots without -no-apci and with notpc just fine.
> > 
> You mean notsc, right...?
> 
> > > > 
> > > > Now I'm thinking about giving the patched qemu-devel another try, since
> > > > I've found some workarounds for booting.  I'll see whether I can at least
> > > > boot into the installed openSUSE using it.
> > > 
> > 
> > OK, the patched qemu-devel can boot the already installed openSUSE.
> > 
> > I tried it with and without kernel-kqemu and both worked as long as
> > I booted with notpc.
> > 
>  ..also notsc here? :)
> 

Yes, I meant notsc everywhere :-P

---
Gary Jennejohn

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-03-02  0:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-25 19:15 [Qemu-devel] Re: testing qemu svn r6636 on FreeBSD; future of qemu on FreeBSD Gary Jennejohn
2009-02-28 17:15 ` Juergen Lock
2009-02-28 19:16   ` Gary Jennejohn
2009-02-28 21:36     ` Juergen Lock
2009-03-01 17:57       ` Gary Jennejohn
2009-03-01 23:13         ` Juergen Lock
2009-03-02  0:32           ` Gary Jennejohn
  -- strict thread matches above, loose matches on Subject: below --
2009-02-22  1:37 [Qemu-devel] " Juergen Lock
     [not found] ` <20090223154724.7d687b13@ernst.jennejohn.org>
     [not found]   ` <20090223211933.GA79361@saturn.kn-bremen.de>
2009-02-25 15:24     ` [Qemu-devel] " Gary Jennejohn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).