From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTSGv-0003sW-Al for qemu-devel@nongnu.org; Tue, 08 Oct 2013 04:04:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTSGm-0007GG-UH for qemu-devel@nongnu.org; Tue, 08 Oct 2013 04:04:01 -0400 Received: from mail-ee0-x22b.google.com ([2a00:1450:4013:c00::22b]:55490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTSGm-0007GA-NF for qemu-devel@nongnu.org; Tue, 08 Oct 2013 04:03:52 -0400 Received: by mail-ee0-f43.google.com with SMTP id e52so3764807eek.2 for ; Tue, 08 Oct 2013 01:03:51 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <5253BC64.2060105@redhat.com> Date: Tue, 08 Oct 2013 10:03:48 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <20131008004126.773017235@amt.cnet> <20131008004224.509422315@amt.cnet> In-Reply-To: <20131008004224.509422315@amt.cnet> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [patch 1/2] qemu: mempath: prefault pages manually List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marcelo Tosatti Cc: qemu-devel@nongnu.org Il 08/10/2013 02:41, Marcelo Tosatti ha scritto: > + /* unblock SIGBUS */ > + pthread_sigmask(SIG_BLOCK, NULL, &oldset); > + sigemptyset(&set); > + sigaddset(&set, SIGBUS); > + pthread_sigmask(SIG_UNBLOCK, &set, NULL); Please instead modify qemu-thread-posix.c to unblock all per-thread signals (SIGBUS, SIGSEGV, SIGILL, SIGFPE and SIGSYS). There is no need to keep those blocked. Paolo