From patchwork Wed Dec 18 01:32:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eslam Elnikety X-Patchwork-Id: 11299285 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EEA0F109A for ; Wed, 18 Dec 2019 01:34:41 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CB3C721582 for ; Wed, 18 Dec 2019 01:34:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="IvLKz/KJ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CB3C721582 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=amazon.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ihODd-0005wJ-Hb; Wed, 18 Dec 2019 01:33:41 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ihODb-0005wD-MM for xen-devel@lists.xenproject.org; Wed, 18 Dec 2019 01:33:39 +0000 X-Inumbo-ID: 6812d90e-2136-11ea-b6f1-bc764e2007e4 Received: from smtp-fw-9101.amazon.com (unknown [207.171.184.25]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 6812d90e-2136-11ea-b6f1-bc764e2007e4; Wed, 18 Dec 2019 01:33:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1576632815; x=1608168815; h=from:to:cc:subject:date:message-id:mime-version; bh=Dm2WtHsDBEyQVN/th5V+99Otnff9vZOcVxE8vZHMFTo=; b=IvLKz/KJXgUiIzs6t/BiONNiKTkCnZvqm3B65GntQSTefNchLd28/Hxi Td6QMIzl5yGRy18gCTVtJcyqY3Muer3+KV7McmDdCfiAkgBBuaeQJ3Ktu 5e/QMlf53t2DjBYoYnQ7iyrx0auyHuAZeMRGO+vfZ/ATyaP+hmeBnqoNc 4=; IronPort-SDR: YzIOiLPSyrvbzZBe22RvQxZmk0hd6B21t5vcm3Uya29lmnSXbHNoc2a3ijmOPgiPGgfq/6J6Hh Fbjo9b4P9rXg== X-IronPort-AV: E=Sophos;i="5.69,327,1571702400"; d="scan'208";a="5740140" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2a-8549039f.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP; 18 Dec 2019 01:33:22 +0000 Received: from EX13MTAUEE002.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2a-8549039f.us-west-2.amazon.com (Postfix) with ESMTPS id B9187A2434; Wed, 18 Dec 2019 01:33:20 +0000 (UTC) Received: from EX13D08UEE001.ant.amazon.com (10.43.62.126) by EX13MTAUEE002.ant.amazon.com (10.43.62.24) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 18 Dec 2019 01:33:19 +0000 Received: from EX13MTAUWC001.ant.amazon.com (10.43.162.135) by EX13D08UEE001.ant.amazon.com (10.43.62.126) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 18 Dec 2019 01:33:19 +0000 Received: from dev-dsk-elnikety-1b-cd63f796.eu-west-1.amazon.com (10.15.63.96) by mail-relay.amazon.com (10.43.162.232) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Wed, 18 Dec 2019 01:33:19 +0000 Received: by dev-dsk-elnikety-1b-cd63f796.eu-west-1.amazon.com (Postfix, from userid 6438462) id CBCADA0141; Wed, 18 Dec 2019 01:33:18 +0000 (UTC) From: Eslam Elnikety To: Date: Wed, 18 Dec 2019 01:32:55 +0000 Message-ID: X-Mailer: git-send-email 2.16.5 MIME-Version: 1.0 Precedence: Bulk Subject: [Xen-devel] [PATCH v2 0/4] x86/microcode: Support builtin CPU microcode X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Julien Grall , Wei Liu , Konrad Rzeszutek Wilk , George Dunlap , Andrew Cooper , Ian Jackson , Eslam Elnikety , Paul Durrant , Jan Beulich , David Woodhouse Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" The main goal of this patch series is to add support for builtin microcode. Towards that end, the series starts with a few improvements for the documentation and parsing of the ucode= Xen command line parameter that controls early loading of microcode (Patches 1--3), and follows with the main builtin suppot (Patch 4). Changes in v2: - An earlier version of Patch 4 was submitted in isolation. Refer to the patch itself for details regarding the relevant changes. - Patches 1--3 are additions. Eslam Elnikety (4): x86/microcode: Improve documentation and parsing for ucode= x86/microcode: avoid unnecessary xmalloc/memcpy of ucode data x86/microcode: use const qualifier for microcode buffer x86/microcode: Support builtin CPU microcode docs/admin-guide/microcode-loading.rst | 31 ++++++ docs/misc/xen-command-line.pandoc | 26 +++-- xen/arch/x86/Kconfig | 30 ++++++ xen/arch/x86/Makefile | 1 + xen/arch/x86/microcode.c | 139 ++++++++++++++----------- xen/arch/x86/microcode/Makefile | 46 ++++++++ xen/arch/x86/xen.lds.S | 12 +++ 7 files changed, 221 insertions(+), 64 deletions(-) create mode 100644 xen/arch/x86/microcode/Makefile