public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Tosatti <mtosatti@redhat.com>
To: Avi Kivity <avi@qumranet.com>, Anthony Liguori <aliguori@us.ibm.com>
Cc: kvm-devel@lists.sourceforge.net, Marcelo Tosatti <mtosatti@redhat.com>
Subject: [patch 4/4] QEMU/KVM: ignore SIG_IPI signals in userspace
Date: Mon, 07 Apr 2008 17:30:49 -0300	[thread overview]
Message-ID: <20080407203324.223592915@localhost.localdomain> (raw)
In-Reply-To: 20080407203045.583930505@localhost.localdomain

[-- Attachment #1: ignore-sigipi --]
[-- Type: text/plain, Size: 1038 bytes --]

Otherwise a signal can be received in userspace and a vcpu goes back
to the kernel while it should stay still.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>

Index: marcelo/git/kvm-userspace.io/qemu/qemu-kvm.c
===================================================================
--- marcelo.orig/git/kvm-userspace.io/qemu/qemu-kvm.c
+++ marcelo/git/kvm-userspace.io/qemu/qemu-kvm.c
@@ -350,7 +350,6 @@ static void *ap_main_loop(void *_env)
     vcpu->env = env;
     vcpu->env->thread_id = kvm_get_thread_id();
     sigfillset(&signals);
-    sigdelset(&signals, SIG_IPI);
     sigprocmask(SIG_BLOCK, &signals, NULL);
     kvm_create_vcpu(kvm_context, env->cpu_index);
     kvm_qemu_init_env(env);

-- 


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

  parent reply	other threads:[~2008-04-07 20:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-07 20:30 [patch 0/4] fix SMP migration and loadvm/savevm (V2) Marcelo Tosatti
2008-04-07 20:30 ` [patch 1/4] QEMU/KVM: properly copy the in-kernel apicbase value Marcelo Tosatti
2008-04-07 20:30 ` [patch 2/4] QEMU/KVM: get/set mpstate libkvm interface Marcelo Tosatti
2008-04-11  0:21   ` Avi Kivity
2008-04-07 20:30 ` [patch 3/4] QEMU/KVM: save and load mp state Marcelo Tosatti
2008-04-07 20:30 ` Marcelo Tosatti [this message]
2008-04-08 21:59 ` [patch 0/4] fix SMP migration and loadvm/savevm (V2) Avi Kivity
2008-04-09  0:29   ` Marcelo Tosatti
2008-04-11  0:05     ` 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=20080407203324.223592915@localhost.localdomain \
    --to=mtosatti@redhat.com \
    --cc=aliguori@us.ibm.com \
    --cc=avi@qumranet.com \
    --cc=kvm-devel@lists.sourceforge.net \
    /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