From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VU9m4-0005It-Fn for qemu-devel@nongnu.org; Thu, 10 Oct 2013 02:31:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VU9lw-000431-31 for qemu-devel@nongnu.org; Thu, 10 Oct 2013 02:31:04 -0400 Received: from mail-ea0-x235.google.com ([2a00:1450:4013:c01::235]:40066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VU9lv-00042o-SI for qemu-devel@nongnu.org; Thu, 10 Oct 2013 02:30:56 -0400 Received: by mail-ea0-f181.google.com with SMTP id d10so901501eaj.12 for ; Wed, 09 Oct 2013 23:30:55 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <52564999.5070908@redhat.com> Date: Thu, 10 Oct 2013 08:30:49 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <20131008004126.773017235@amt.cnet> <20131008004224.509422315@amt.cnet> <5253BC64.2060105@redhat.com> <20131008215155.GA16625@amt.cnet> <52550E58.6030106@redhat.com> <20131009194109.GA16670@amt.cnet> <5255CA22.30107@redhat.com> In-Reply-To: <5255CA22.30107@redhat.com> 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 09/10/2013 23:26, Paolo Bonzini ha scritto: > Il 09/10/2013 21:41, Marcelo Tosatti ha scritto: >>>> How was that tested? For BUS_MCEERR_AO it can work, but BUS_MCEERR_AR >>>> calls force_sig_info which does this: >>>> >>>> ignored = action->sa.sa_handler == SIG_IGN; >>>> blocked = sigismember(&t->blocked, sig); >>>> if (blocked || ignored) { >>>> action->sa.sa_handler = SIG_DFL; >>>> if (blocked) { >>>> sigdelset(&t->blocked, sig); >>>> recalc_sigpending_and_wake(t); >>>> } >>>> >>>> if (action->sa.sa_handler == SIG_DFL) >>>> t->signal->flags &= ~SIGNAL_UNKILLABLE; >>>> >>>> and kills the process (because that's the default action of SIG_DFL). >> For vcpu context its not blocked? > > It causes KVM to exit back to userspace, but as soon as KVM exits it > should be blocked. ... but it's been queued and this bypasses the checks in force_sig_info. So in guest mode it is accepted, in QEMU mode it causes a SIGBUS. Paolo