[patch 4/4] QEMU/KVM: ignore SIG_IPI signals in userspace

Marcelo Tosatti
2008-04-07T20:30:49Z

[-- 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);