From patchwork Thu Dec 15 17:14:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Borislav Petkov X-Patchwork-Id: 9476571 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9AEE760571 for ; Thu, 15 Dec 2016 17:17:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84ACE287BB for ; Thu, 15 Dec 2016 17:17:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 750B9287FB; Thu, 15 Dec 2016 17:17:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 02F9D287BB for ; Thu, 15 Dec 2016 17:16:59 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cHZbx-0004GJ-HN; Thu, 15 Dec 2016 17:14:29 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cHZbx-0004GB-4h for xen-devel@lists.xenproject.org; Thu, 15 Dec 2016 17:14:29 +0000 Received: from [85.158.139.211] by server-3.bemta-5.messagelabs.com id DE/9E-01948-47FC2585; Thu, 15 Dec 2016 17:14:28 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrHIsWRWlGSWpSXmKPExsVyuP0Ov27x+aA Ig9b9Nhbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8ajo/cZC1awVXx+2sXcwDiVtYuRk0NCwEji 7cR/TF2MXBxCAgsZJfZunsDexcgB5KRLHD2iD1LDIqAq8e7kVyYQm01ASeL3p3XsILaIgK7Es wXP2EB6mQVuM0pMbvsGViQs4CZxeEsX2AJeAVOJD0/+s0IsOMsosenXGzaIhKDEyZlPWEBsZg F1iT/zLjGDLGYWkJZY/o8DIiwv0bx1NjOIzSlgJ/H7xzIwW1RARWLW5TksExgFZiGZNAvJpFk Ik2YhmbSAkWUVo3pxalFZapGuqV5SUWZ6RkluYmaOrqGBqV5uanFxYnpqTmJSsV5yfu4mRmDI MgDBDsYv/c6HGCU5mJREebOXB0UI8SXlp1RmJBZnxBeV5qQWH2LU4OAQ2Lx29QVGKZa8/LxUJ QleoXNAdYJFqempFWmZOcCogimV4OBREuH9ewYozVtckJhbnJkOkTrFaMyx7tSSp0wcB96veM okBDZJSpxXFmSSAEhpRmke3CBYtF9ilJUS5mUEOlOIpyC1KDezBFX+FaM4B6OSMC8LyBSezLw SuH2vgE5hAjpFdIk/yCkliQgpqQZGx0fHqu0/l0tki+739FnoJlX+9Zf5rgoFIU9Fs9Kkm8/P hN6VXmssrPdF/aFNe2ZXbp7i72UuP7LCPFSeuZ7lfalb7XXAe9/88siHnSlx5QdyW9ZpuaVXM t70VnI2vLgjeaPPVp65O7d3TMgvZXbVm8OcaMPzuCv4ZKaAxPEpHAcCZdT9/yqxFGckGmoxFx UnAgDMbLvn8QIAAA== X-Env-Sender: bp@suse.de X-Msg-Ref: server-11.tower-206.messagelabs.com!1481822063!63545455!1 X-Originating-IP: [195.135.220.15] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.1.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 11706 invoked from network); 15 Dec 2016 17:14:24 -0000 Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by server-11.tower-206.messagelabs.com with DHE-RSA-CAMELLIA256-SHA encrypted SMTP; 15 Dec 2016 17:14:24 -0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 1104CADEE; Thu, 15 Dec 2016 17:14:24 +0000 (UTC) Received: by pd.tnic (Postfix, from userid 1000) id A6BCE160EE6; Thu, 15 Dec 2016 18:14:22 +0100 (CET) Date: Thu, 15 Dec 2016 18:14:22 +0100 From: Borislav Petkov To: Andrew Cooper Message-ID: <20161215171422.4blmkcgqduribmbj@pd.tnic> References: <73a4d64b-b139-6579-a560-92311641d6c7@suse.com> <20161215164635.thm7ruio2ddnxszw@pd.tnic> <5852D8A20200007800129CC6@prv-mh.provo.novell.com> <1759e235-b514-7a5d-4eae-e898437bdbd2@citrix.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1759e235-b514-7a5d-4eae-e898437bdbd2@citrix.com> User-Agent: NeoMutt/20161014 (1.7.1) Cc: Juergen Gross , xen-devel , Boris Ostrovsky , Linux Kernel Mailing List , Jan Beulich Subject: Re: [Xen-devel] Can't boot as Xen dom0 due to commit fe055896 X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP On Thu, Dec 15, 2016 at 04:59:49PM +0000, Andrew Cooper wrote: > Xen has the same logic as Linux does to look for an uncompressed > microcode blob in the initrd and apply it early in boot. > > If dom0 goes looking, it should see the same microcode version as it has > in its initrd. So it sounds to me like I wanna do this: --- -- diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index dd47e60aabf5..e238119b5dff 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -1202,6 +1202,7 @@ config X86_REBOOTFIXUPS config MICROCODE bool "CPU microcode loading support" default y + depends on !XEN depends on CPU_SUP_AMD || CPU_SUP_INTEL select FW_LOADER ---help---