From: Marcelo Tosatti Subject: Re: [PATCH] Ignore SRAO MCE if another MCE is being processed Date: Wed, 28 Apr 2010 13:28:22 -0300 Message-ID: <20100428162822.GB18168@amt.cnet> References: <1272352249.24125.19.camel@yhuang-dev.sh.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avi Kivity , Andi Kleen , "kvm@vger.kernel.org" To: Huang Ying Return-path: Received: from mx1.redhat.com ([209.132.183.28]:53019 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754253Ab0D1Q26 (ORCPT ); Wed, 28 Apr 2010 12:28:58 -0400 Content-Disposition: inline In-Reply-To: <1272352249.24125.19.camel@yhuang-dev.sh.intel.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Apr 27, 2010 at 03:10:49PM +0800, Huang Ying wrote: > In common cases, guest SRAO MCE will cause corresponding poisoned page > be un-mapped in host and SIGBUS be sent to QEMU-KVM, then QEMU-KVM > will relay the MCE to guest OS. > > But it is possible that the poisoned page is accessed in guest after > un-mapped in host and before MCE is relayed to guest OS. So that, the > SRAR SIGBUS is sent to QEMU-KVM before the SRAO SIGBUS, and if > QEMU-KVM relays them to guest OS one by one, guest system may reset, > because the SRAO MCE may be triggered while the SRAR MCE is being > processed. In fact, the SRAO MCE can be ignored in this situation, so > that the guest system is given opportunity to survive. > > Signed-off-by: Huang Ying Applied, thanks.