From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8pHn-0006Ox-Du for qemu-devel@nongnu.org; Tue, 15 Dec 2015 08:05:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a8pHi-0001o3-EE for qemu-devel@nongnu.org; Tue, 15 Dec 2015 08:04:59 -0500 Received: from mx2.suse.de ([195.135.220.15]:35212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8pHi-0001nu-89 for qemu-devel@nongnu.org; Tue, 15 Dec 2015 08:04:54 -0500 Date: Tue, 15 Dec 2015 14:04:46 +0100 From: Borislav Petkov Message-ID: <20151215130446.GE26000@pd.tnic> References: <1449776482-26070-1-git-send-email-ashok.raj@intel.com> <20151214162356.GA5314@thinpad.lan.raisama.net> <20151214163738.GJ11630@pd.tnic> <20151214191145.GB18012@otc-brkl-03.jf.intel.com> <20151214223716.GK11630@pd.tnic> <20151215001726.GA22215@otc-brkl-03.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20151215001726.GA22215@otc-brkl-03.jf.intel.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [Patch V2 1/2] x86, mce: Basic support to add LMCE support to QEMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Raj, Ashok" Cc: qemu-devel@nongnu.org, Tony Luck , Eduardo Habkost , kvm@vger.kernel.org, Gleb Natapov , linux-kernel@vger.kernel.org, Gong Chen , Andi Kleen , Paolo Bonzini On Mon, Dec 14, 2015 at 07:17:27PM -0500, Raj, Ashok wrote: > I can see how this hurts.. since the poller isn't doing cpu model > specific stuff..? The poller sees mca_cfg.ser set on an AMD guest and then the whole handling/decoding goes wrong. > in the LMCE case, even if you advertise MCG_LMCE_P in MCG_CAP, the > guest kernel wont call intel_init_lmce() only from mce_intel.c.. so > the same problem won't happen. You shouldn't advertise MCG_LMCE_P if the guest is not Intel. Those MCG bits should be in the CPU model descriptor X86CPUDefinition. --=20 Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imend=C3=B6rffer, Jane Smithard, Graham Norton= , HRB 21284 (AG N=C3=BCrnberg) --=20