qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Dor Laor <dor.laor@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] qcow2 vs. image file format --> pci device
Date: Sat, 29 Sep 2007 22:49:27 +0200	[thread overview]
Message-ID: <46FEBA57.1030801@qumranet.com> (raw)
In-Reply-To: <200709291657.57839.clemens.kol@gmx.at>

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.

  reply	other threads:[~2007-09-29 20:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 [this message]
     [not found] <20070929212408.11071gmx1@mx071.gmx.net>
2007-10-01  8:52 ` Clemens Kolbitsch
2007-10-01  9:31   ` Dor Laor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46FEBA57.1030801@qumranet.com \
    --to=dor.laor@gmail.com \
    --cc=dor.laor@qumranet.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).