qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] view qemu output/console
       [not found] <20070921061109.16713gmx1@mx026.gmx.net>
@ 2007-09-24 15:25 ` Clemens Kolbitsch
  2007-09-24 15:50   ` Johannes Schindelin
  2007-09-29 14:57 ` [Qemu-devel] qcow2 vs. image file format --> pci device Clemens Kolbitsch
  1 sibling, 1 reply; 7+ messages in thread
From: Clemens Kolbitsch @ 2007-09-24 15:25 UTC (permalink / raw)
  To: qemu-devel

hi!
i'm having a problem that could have a very easy answer:

my i386 linx system crashes due to a module error and i have to find out where 
it crashes exactly.... i have the module source code.

when the kernel crashes, it displayes the message, however as it is way much 
more information that can be displayed in the qemu window, i only see the 
last 20-something lines. as the crash is fatal, no entries are made to the 
log-files and i have not succeeded redirecting output to my console (using 
the -nographic option) as my linux does not boot correctly then.

i have also tried attaching a debugger, however i neither have a unzipped 
image of my kernel nor are the breakpoints hit correctly as the crash happens 
inside a module that is loaded on system-startup (i.e. is not part of the 
kernel).

can someone give me a hint on how i am able to read the whole output of 
the "kernel-oops"?

thanks!!

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

* Re: [Qemu-devel] view qemu output/console
  2007-09-24 15:25 ` [Qemu-devel] view qemu output/console Clemens Kolbitsch
@ 2007-09-24 15:50   ` Johannes Schindelin
  2007-09-24 16:11     ` andrzej zaborowski
  0 siblings, 1 reply; 7+ messages in thread
From: Johannes Schindelin @ 2007-09-24 15:50 UTC (permalink / raw)
  To: Clemens Kolbitsch; +Cc: qemu-devel

Hi,

On Mon, 24 Sep 2007, Clemens Kolbitsch wrote:

> when the kernel crashes, it displayes the message, however as it is way 
> much more information that can be displayed in the qemu window, i only 
> see the last 20-something lines. as the crash is fatal, no entries are 
> made to the log-files and i have not succeeded redirecting output to my 
> console (using the -nographic option) as my linux does not boot 
> correctly then.

If your host is not windows, you can use the "-monitor stdio" option to 
output monitor information on the console you start QEmu in.

Hth,
Dscho

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

* Re: [Qemu-devel] view qemu output/console
  2007-09-24 15:50   ` Johannes Schindelin
@ 2007-09-24 16:11     ` andrzej zaborowski
  2007-09-24 16:34       ` Clemens Kolbitsch
  0 siblings, 1 reply; 7+ messages in thread
From: andrzej zaborowski @ 2007-09-24 16:11 UTC (permalink / raw)
  To: qemu-devel; +Cc: Clemens Kolbitsch

On 24/09/2007, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> On Mon, 24 Sep 2007, Clemens Kolbitsch wrote:
>
> > when the kernel crashes, it displayes the message, however as it is way
> > much more information that can be displayed in the qemu window, i only
> > see the last 20-something lines. as the crash is fatal, no entries are
> > made to the log-files and i have not succeeded redirecting output to my
> > console (using the -nographic option) as my linux does not boot
> > correctly then.
>
> If your host is not windows, you can use the "-monitor stdio" option to
> output monitor information on the console you start QEmu in.

AIUI Clemens wants to redirect the VGA console output, not QEmu
monitor. One idea is to dig out my ncurses interface patch (I believe
debian has a version that applies to post-9.0 qemu, and if you're on
debian just use the "-curses" switch), then GNU screen would let you
log all VGA console output to a file. Another idea is to set a
breakpoint at the guest printk() address.

Regards

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

* Re: [Qemu-devel] view qemu output/console
  2007-09-24 16:11     ` andrzej zaborowski
@ 2007-09-24 16:34       ` Clemens Kolbitsch
  0 siblings, 0 replies; 7+ messages in thread
From: Clemens Kolbitsch @ 2007-09-24 16:34 UTC (permalink / raw)
  To: andrzej zaborowski; +Cc: qemu-devel

On Monday 24 September 2007 18:11:04 andrzej zaborowski wrote:
> On 24/09/2007, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> > On Mon, 24 Sep 2007, Clemens Kolbitsch wrote:
> > > when the kernel crashes, it displayes the message, however as it is way
> > > much more information that can be displayed in the qemu window, i only
> > > see the last 20-something lines. as the crash is fatal, no entries are
> > > made to the log-files and i have not succeeded redirecting output to my
> > > console (using the -nographic option) as my linux does not boot
> > > correctly then.
> >
> > If your host is not windows, you can use the "-monitor stdio" option to
> > output monitor information on the console you start QEmu in.
>
> AIUI Clemens wants to redirect the VGA console output, not QEmu
> monitor.

exactly...

> One idea is to dig out my ncurses interface patch (I believe 
> debian has a version that applies to post-9.0 qemu, and if you're on
> debian just use the "-curses" switch), then GNU screen would let you
> log all VGA console output to a file.

ok... i'll give it a try!! thanks :-)

> Another idea is to set a 
> breakpoint at the guest printk() address.

that was my first approach.. however as I don't have the uncompressed linux 
image, i don't know what to connect gdb to :-(

can i simply uncompress the kernel-file??

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

* [Qemu-devel] qcow2 vs. image file format --> pci device
       [not found] <20070921061109.16713gmx1@mx026.gmx.net>
  2007-09-24 15:25 ` [Qemu-devel] view qemu output/console Clemens Kolbitsch
@ 2007-09-29 14:57 ` Clemens Kolbitsch
  2007-09-29 20:49   ` Dor Laor
  1 sibling, 1 reply; 7+ messages in thread
From: Clemens Kolbitsch @ 2007-09-29 14:57 UTC (permalink / raw)
  To: qemu-devel

hi everyone!
i have a strange problem (at least to me it seems strange :-)  ):

i have implemented a pci device (Network IC) and it works just fine when using 
a standard image. however i now want to support snapshotting...

i started to convert my image into the qcow2 format and suddenly my code does 
not work any more... even if i uncomment everything that has to do with 
snapshotting in my code, it still blocks during qemu startup.

the thing that could cause this: i use 2 additional threads in my NIC code ... 
each is working with semaphores that might cause problems.

is there something in particular i have to be careful of when using qcow2 file 
format?

thanks!!

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

* Re: [Qemu-devel] qcow2 vs. image file format --> pci device
  2007-09-29 14:57 ` [Qemu-devel] qcow2 vs. image file format --> pci device Clemens Kolbitsch
@ 2007-09-29 20:49   ` Dor Laor
  0 siblings, 0 replies; 7+ messages in thread
From: Dor Laor @ 2007-09-29 20:49 UTC (permalink / raw)
  To: qemu-devel

Clemens Kolbitsch wrote:
> hi everyone!
> i have a strange problem (at least to me it seems strange :-)  ):
>
> i have implemented a pci device (Network IC) and it works just fine when using 
> a standard image. however i now want to support snapshotting...
>
> i started to convert my image into the qcow2 format and suddenly my code does 
> not work any more... even if i uncomment everything that has to do with 
> snapshotting in my code, it still blocks during qemu startup.
>
> the thing that could cause this: i use 2 additional threads in my NIC code ... 
> each is working with semaphores that might cause problems.
>
> is there something in particular i have to be careful of when using qcow2 file 
> format?
>
> thanks!!
>
>
>   
Qcow2 uses async io which triggers io completion with SIGIO signal.
If you use threads you must mask this (and also SIGALARM, ..) so your 
thread won't
take over the main threads handling.
Anyway, using threads is not the standard qemu guideline.
Dor.

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

* Re: [Qemu-devel] qcow2 vs. image file format --> pci device
  2007-10-01  8:52 ` Clemens Kolbitsch
@ 2007-10-01  9:31   ` Dor Laor
  0 siblings, 0 replies; 7+ messages in thread
From: Dor Laor @ 2007-10-01  9:31 UTC (permalink / raw)
  To: Clemens Kolbitsch; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1520 bytes --]

Clemens Kolbitsch wrote:
>> Clemens Kolbitsch wrote:
>>     
>>> hi everyone!
>>> i have a strange problem (at least to me it seems strange :-)  ):
>>>
>>> i have implemented a pci device (Network IC) and it works just fine when
>>> using a standard image. however i now want to support snapshotting...
>>>
>>> i started to convert my image into the qcow2 format and suddenly my code
>>> does not work any more... even if i uncomment everything that has to do
>>> with snapshotting in my code, it still blocks during qemu startup.
>>>
>>> the thing that could cause this: i use 2 additional threads in my NIC
>>> code ... each is working with semaphores that might cause problems.
>>>
>>> is there something in particular i have to be careful of when using qcow2
>>> file format?
>>>
>>> thanks!!
>>>       
>> Qcow2 uses async io which triggers io completion with SIGIO signal.
>> If you use threads you must mask this (and also SIGALARM, ..) so your
>> thread won't
>> take over the main threads handling.
>> Anyway, using threads is not the standard qemu guideline.
>>     
>
> Hi,
> Ok.. thanks! How do I tell Qemu that I use threads (in this case I don't see 
> an easy way around using them... although there is one obviously ;-) )??
>
>   
All other NIC emulation work without threads. They use select 
(qemu_set_fd_handler)
> In what other HW example can I see how to use the SIGIO completion stuff?
>   
Actually I had a mistake, qemu use SIGUSR2 for async io and SIGIO for 
timer management.
> Clemens
>
>   


[-- Attachment #2: Type: text/html, Size: 2131 bytes --]

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

end of thread, other threads:[~2007-10-01  9:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20070921061109.16713gmx1@mx026.gmx.net>
2007-09-24 15:25 ` [Qemu-devel] view qemu output/console Clemens Kolbitsch
2007-09-24 15:50   ` Johannes Schindelin
2007-09-24 16:11     ` andrzej zaborowski
2007-09-24 16:34       ` Clemens Kolbitsch
2007-09-29 14:57 ` [Qemu-devel] qcow2 vs. image file format --> pci device Clemens Kolbitsch
2007-09-29 20:49   ` Dor Laor
     [not found] <20070929212408.11071gmx1@mx071.gmx.net>
2007-10-01  8:52 ` Clemens Kolbitsch
2007-10-01  9:31   ` Dor Laor

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).