From patchwork Wed Jan 22 22:30:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eslam Elnikety X-Patchwork-Id: 11346471 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 50EBB1820 for ; Wed, 22 Jan 2020 22:32:18 +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 28E542465A for ; Wed, 22 Jan 2020 22:32:18 +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="v7qaQo0s" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 28E542465A 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 1iuOWl-0001HT-9N; Wed, 22 Jan 2020 22:31:11 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iuOWk-0001HO-G8 for xen-devel@lists.xenproject.org; Wed, 22 Jan 2020 22:31:10 +0000 X-Inumbo-ID: e3853e28-3d66-11ea-bd76-12813bfff9fa Received: from smtp-fw-2101.amazon.com (unknown [72.21.196.25]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id e3853e28-3d66-11ea-bd76-12813bfff9fa; Wed, 22 Jan 2020 22:31:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1579732271; x=1611268271; h=from:to:cc:subject:date:message-id:mime-version; bh=xUMhbhziUmqV6hKmdOGDbUUR7CRPaThJEjSKS64dYSc=; b=v7qaQo0svDRnIHjWxmQMSn75hALEy/ci/aLeHvznMmS9EDplbvPI/ila gDJn+c9ELhAozlWvM1bA6gloh72DAW3EyrSiVk1MsaSgZnoEviPDJkzw8 K0tWC7Uu/2uyBQPmoJ6rGuEJ8ztuKjyzT0HrLyG44GAfhsJtbbFA62LRs o=; IronPort-SDR: etZ0XOmsK3R3QIJUzxISyABS77u/853P/Tvcck8vkmB8peng2B0iWr+NOYdTGKtfaUMlBcuOUE 2ehswjrS2png== X-IronPort-AV: E=Sophos;i="5.70,351,1574121600"; d="scan'208";a="13763715" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-2b-baacba05.us-west-2.amazon.com) ([10.43.8.2]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP; 22 Jan 2020 22:31:09 +0000 Received: from EX13MTAUEB002.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2b-baacba05.us-west-2.amazon.com (Postfix) with ESMTPS id 4CC81A23A5; Wed, 22 Jan 2020 22:31:08 +0000 (UTC) Received: from EX13D08UEB003.ant.amazon.com (10.43.60.11) by EX13MTAUEB002.ant.amazon.com (10.43.60.12) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 22 Jan 2020 22:31:07 +0000 Received: from EX13MTAUWA001.ant.amazon.com (10.43.160.58) by EX13D08UEB003.ant.amazon.com (10.43.60.11) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 22 Jan 2020 22:31:07 +0000 Received: from dev-dsk-elnikety-1b-cd63f796.eu-west-1.amazon.com (10.15.63.96) by mail-relay.amazon.com (10.43.160.118) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Wed, 22 Jan 2020 22:31:06 +0000 Received: by dev-dsk-elnikety-1b-cd63f796.eu-west-1.amazon.com (Postfix, from userid 6438462) id 50466A013F; Wed, 22 Jan 2020 22:31:06 +0000 (UTC) From: Eslam Elnikety To: Date: Wed, 22 Jan 2020 22:30:42 +0000 Message-ID: X-Mailer: git-send-email 2.16.6 MIME-Version: 1.0 Precedence: Bulk Subject: [Xen-devel] [PATCH v1 0/4] x86/microcode: Improve documentation and code 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: Konrad Rzeszutek Wilk , Andrew Cooper , Eslam Elnikety , Paul Durrant , David Woodhouse Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" This patch series introduces improvements to the existing documentation and code of x86/microcode. Patches 1 and 2 improve the documentation and parsing for `ucode=`. Patches 3 and 4 introduce nits/improvements to the microcode early loading code. Some (variant of the) patches have been sent earlier under "Support builtin CPU microcode" as those patches were motivated by discussions following the initial submission of the builtin microcode. On a second thought, such improvements should have gone independently. So here it goes. (Those improvements will be dropped from the builtin microcode series as I submit its v3). Changes since submitted under [v2] x86/microcode: Support builtin CPU microcode - Patch 1: New / explicitly document the current behaviour of ucode=scan with EFI - Patch 2: Fix index data type, drop unwelcomed function rename - Patch 3 and 4: Added Acked-by, otherwise as before Eslam Elnikety (4): x86/microcode: Improve documentation for ucode= x86/microcode: Improve parsing for ucode= x86/microcode: avoid unnecessary xmalloc/memcpy of ucode data x86/microcode: use const qualifier for microcode buffer docs/misc/xen-command-line.pandoc | 14 ++++-- xen/arch/x86/microcode.c | 74 +++++++++++-------------------- 2 files changed, 37 insertions(+), 51 deletions(-)