public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Dor Laor <dlaor@redhat.com>
To: "Passera, Pablo R" <pablo.r.passera@intel.com>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: Using signals to communicate two Qemu processes
Date: Sun, 14 Dec 2008 00:21:27 +0200	[thread overview]
Message-ID: <49443567.40609@redhat.com> (raw)
In-Reply-To: <18C018878FB0244EB71B7FE328978A320F9FDA4C@rrsmsx503.amr.corp.intel.com>

Passera, Pablo R wrote:
> Hi all,
>         I am trying to communicate two VMs using a virtio driver. Once a data is moved to the driver I want to notify the other Qemu process that there is new data available in the buffer. I was thinking about using linux signals to synchronize both processes but when I register my SIGUSR1 handler in Qemu I am seeing an strange behavior. After starting the VM and Linux gets loaded, Qemu is receiving SIGUSR2 at a regular time period. Looking a little bit at the code I realize that signals are being used for other purposes in Qemu, however, SIGUSR1 is not used. Is it possible to use signals to synchronize these processes or should I think about using a different mechanism?
>
>   
SIGUSR2 is used as aio completion signal. You can use SIGUSR1 but you 
need to know what you're doing (some threads block signals).
Better fit would be a pipe.

The vcpu
> Thanks,
>
> Pablo Pássera
> Intel - Software Innovation Pathfinding Group
> Cordoba - Argentina
> Phone: +54 351 526 5611
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>   


  reply	other threads:[~2008-12-13 22:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-12 18:23 Using signals to communicate two Qemu processes Passera, Pablo R
2008-12-13 22:21 ` Dor Laor [this message]
2008-12-13 23:43   ` Anthony Liguori
2008-12-23 17:17 ` Avi Kivity

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=49443567.40609@redhat.com \
    --to=dlaor@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=pablo.r.passera@intel.com \
    /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