From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wanpeng Li Subject: Re: [PATCH] KVM: VMX: Preserve host CR4.MCE value while in guest mode. Date: Mon, 20 Apr 2015 06:59:13 +0800 Message-ID: <20150419225913.GA8627@kernel> References: <1429210685-19510-1-git-send-email-serebrin@google.com> <20150417051007.GA3080@kernel> <5530DD72.7010801@redhat.com> Reply-To: Wanpeng Li Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Ben Serebrin , kvm@vger.kernel.org, stable@vger.kernel.org, luto@amacapital.net, jankiszka@siemens.com To: Paolo Bonzini Return-path: Content-Disposition: inline In-Reply-To: <5530DD72.7010801@redhat.com> Sender: stable-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Fri, Apr 17, 2015 at 12:16:18PM +0200, Paolo Bonzini wrote: > > >On 17/04/2015 07:10, Wanpeng Li wrote: >>> > >>> >Before the change, if guest CR4.MCE==0, then the machine check is >>> >escalated to Catastrophic Error (CATERR) and the machine dies. >> Could you point out which section of SDM describes that the machine check >> is escalated to a CATERR if CR4.MCE==0? > >It's under the description of "Interrupt 18--Machine-Check Exception (#MC)": > > The machine-check mechanism is enabled by setting the MCE flag in > control register CR4. [...] If the machine-check mechanism is not > enabled (the MCE flag in control register CR4 is clear), a > machine-check exception causes the processor to enter the shutdown > state. > >This of course also applies whenever the non-root mode CR4 (*not* the >shadow CR4 in the VMCS!) has the MCE flag cleared. Got it, thanks, :) Regards, Wanpeng Li > >Paolo