From patchwork Wed Oct 23 12:28:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andrew Cooper X-Patchwork-Id: 13847015 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 3D1F3CF5366 for ; Wed, 23 Oct 2024 12:28:30 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.824591.1238738 (Exim 4.92) (envelope-from ) id 1t3aTD-0008Kr-E1; Wed, 23 Oct 2024 12:28:11 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 824591.1238738; Wed, 23 Oct 2024 12:28:11 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t3aTD-0008Kk-B0; Wed, 23 Oct 2024 12:28:11 +0000 Received: by outflank-mailman (input) for mailman id 824591; Wed, 23 Oct 2024 12:28:09 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t3aTB-0008KR-NI for xen-devel@lists.xenproject.org; Wed, 23 Oct 2024 12:28:09 +0000 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [2a00:1450:4864:20::12d]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 42c09a9b-913a-11ef-a0be-8be0dac302b0; Wed, 23 Oct 2024 14:28:08 +0200 (CEST) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-53b13ea6b78so3183739e87.2 for ; Wed, 23 Oct 2024 05:28:08 -0700 (PDT) Received: from andrewcoop.eng.citrite.net ([185.25.67.249]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9a91572475sm470923866b.154.2024.10.23.05.28.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2024 05:28:06 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 42c09a9b-913a-11ef-a0be-8be0dac302b0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1729686487; x=1730291287; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=enwoEkHrB4PVkQyUNobQYIVu5lajkhVSiVikEltYAlI=; b=n5gAfo0peHssfhOOhPnV81mg6sxjCcP2yVacFIOZenyRInRXFatIYdWAjl0j4sFbkQ o3Eqo6bVdpX0BGVrOBvpQilie+mkgJHK13rKsx/VM9iRrJQES2yoyKNejRLifhwfDKav vy84Sd9Keuso3vx/Ux0ScFdkFjlPUzf3PIeeg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729686487; x=1730291287; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=enwoEkHrB4PVkQyUNobQYIVu5lajkhVSiVikEltYAlI=; b=FQkjNFwirpX/zLpNI9uDMvQYJNpLFEwbta6iF6MX5MgCHiVaS79BGq1AxG5AiDrP0k 4XyUuYlB8FWNC8J3kqXpfqdrsICs8wO05hTIFfymujRu5Ctg+/gL81EP5oLQF5oCR8wp 8bUctSM5CCDv57So8RMsI9VGu9tESlmZ64BdQGH1hia+8KulqUThEEpeEVb06FbhoNoj rVftwh/GJrCRrXexxc5VtWD7Is3CuuGoFuGOHBIWmG5OoXwMm020D3DZbr+TcFPfk6Ui lT5JnIiGuSTz+bm8FjynyNOWkNrjfXjFKhJBpH4AMfjb27kr8QuvM1lpzHeSclNejyY1 cCQQ== X-Gm-Message-State: AOJu0YzwUQ0eAhPmFTAgJLCmjl2L5s7CbbB3S+OaCvv20UbjANg+t2P1 9dPziKDsJK21JukD/n91WPpF1RteSX3MTy8AthBq8xrqr1hAVKxrhpqNLh/HkW/mn0kISc59eTF l X-Google-Smtp-Source: AGHT+IH6VStbYMME9i+lTuj6kH2ADIr0Y1tOOU6dod5lSJYRODU8UOipoqRRed20R2DSAoumAMOWgw== X-Received: by 2002:a05:6512:23aa:b0:539:8cd1:848 with SMTP id 2adb3069b0e04-53b1a3bae89mr1802699e87.61.1729686487518; Wed, 23 Oct 2024 05:28:07 -0700 (PDT) From: Andrew Cooper To: Xen-devel Cc: Andrew Cooper , Jan Beulich , =?utf-8?q?Roger_Pau_Monn=C3=A9?= Subject: [PATCH] x86/ucode: Explain what microcode_set_module() does Date: Wed, 23 Oct 2024 13:28:03 +0100 Message-Id: <20241023122803.670943-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Signed-off-by: Andrew Cooper --- CC: Jan Beulich CC: Roger Pau Monné I found this hiding in other microcode changes, and decided it was high time it got included. --- xen/arch/x86/cpu/microcode/core.c | 4 ++++ 1 file changed, 4 insertions(+) base-commit: be84e7fe58b51f6b6dd907a038f0ef998a1e281e prerequisite-patch-id: ef20898eb25a7ca1ea2d7b1d676f00b91b46d5f6 prerequisite-patch-id: e0d0c0acbe4864a00451187ef7232dcaf10b2477 prerequisite-patch-id: f6010b4a6e0b43ac837aea470b3b5e5f390ee3b2 diff --git a/xen/arch/x86/cpu/microcode/core.c b/xen/arch/x86/cpu/microcode/core.c index 8564e4d2c94c..dc2c064cf176 100644 --- a/xen/arch/x86/cpu/microcode/core.c +++ b/xen/arch/x86/cpu/microcode/core.c @@ -108,6 +108,10 @@ static bool ucode_in_nmi = true; /* Protected by microcode_mutex */ static const struct microcode_patch *microcode_cache; +/* + * Used by the EFI path only, when xen.cfg identifies an explicit microcode + * file. Overrides ucode=|scan on the regular command line. + */ void __init microcode_set_module(unsigned int idx) { ucode_mod_idx = idx;