From: "Jan Beulich" Subject: Re: [PATCH V2] x86, amd_ucode: Safeguard against #GP Date: Mon, 02 Jun 2014 08:31:02 +0100 Message-ID: <538C44560200007800016B08@mail.emea.novell.com> References: <1401215048-17154-1-git-send-email-aravind.gopalakrishnan@amd.com> <53852405.9010704@citrix.com> <5385FDD3.8020307@amd.com> <53862348.1060400@oracle.com> <5388AB6A.7010803@amd.com> <5388B005.2070108@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5388B005.2070108@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Aravind Gopalakrishnan , Andrew Cooper , boris ostrovsky Cc: keir@xen.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 30.05.14 at 18:21, wrote: > The unhandled #GP fault certainly should be wrapped with wrmsr_safe(), > and an error/warning presented to the user. In the case that a bad > ucode is discovered, it should be discarded and the server allowed to > boot. It is substantially more useful for the server to come up and say > "I couldn't load that bit of microcode you wanted me to", than to sit in > a reboot loop because you made a typo in the bootloader config, and have > to get someone in the datacenter to poke the physical server. But this isn't due to a typo somewhere, but due to a corrupted microcode blob. Besides that no matter which BKDG I look at, I can't seem to find any indication of there being room for a #GP here if the MSR itself is implemented. While I don't question its presence in reality, I'd prefer if this was documented properly for a patch to recover from it to go in. Jan