Message ID | 20231222235209.32143-3-kirill.shutemov@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-10129-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp1394183dyi; Fri, 22 Dec 2023 15:53:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IGhCPFuTnzgyZVWjNrzm3MwAbGYX7FvHXecRv5QRDfQMFKG1iz1vkpMSWRjrXFoBR8eTTSa X-Received: by 2002:a05:6512:3592:b0:50e:30bc:ce3d with SMTP id m18-20020a056512359200b0050e30bcce3dmr1076638lfr.39.1703289198749; Fri, 22 Dec 2023 15:53:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703289198; cv=none; d=google.com; s=arc-20160816; b=yQlerjCB9h6h1CsOQkb8x70SbRNPfpA3J0vCC8KhX9iDgUgQsDiR2sp99SC663UzCp 10grnuTaUtQNxSbHFjUwl7INcH9d9nvXut+PDeuvO8zF3XlWpdqcR1VEm7L91U9SM8oc KO9oo0pbBq27mpv8BPU9OR/EABbcr73f3jlafDV8ve6lDRjW6pdfxi4soo0IWWQESvgS mpcTdYlzKicKoG4CUfEMP73s7kGL26LdNjkjxRMXW+uWNETYYTm/0+L8mJUAcyp4ZdYS WLWciJRWlQvbYmd0S0oDJQq/LxQ8rKEtr7DbI4Oh0ZAJ8ybi2iLE6HKjc1TAq9jjFQtg 5HhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=2ATzjkVv+Cc5k9Q6ZscWxzyVUJGVuVQhT/gutI+l0/w=; fh=OvJRnOqsMTm9XoNmEwebcqh9Ud7yh1CTeKAP84ols98=; b=uipAUnFm3Z3iJba1DSMcEyoTGhachME9xbZ/S+WFee4vaWSAB6XOqB/6XfzgXc4D7j VndEdNeSFlVsiWz8zsZPyZ4erqP0o6B98aNxK4EljpBbtyg4QrGk43aYLEUWBVCev6ZI 8wi0+wciXfcKJpiDze8HCB8ZNdux/nE7WbPSn3PcsL8vpGYOIMo/fZktTzKcV7W4QhQo uh3P4uk08yRf7YVXr/4qyUsuNW+5bqAeT9Uwq7QIyRQcmc+OCBN/4jmL8gje1nd6UVBT mG3Lmji308peoKTbCnRz6e1vI8Itei4d8MZ1p4eux3jr2A/Ne9g1m7NkcpcgTi9z+Pvv VhwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=P+QPByX3; spf=pass (google.com: domain of linux-kernel+bounces-10129-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10129-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j9-20020a1709064b4900b00a2687ee0b2asi2162446ejv.295.2023.12.22.15.53.18 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 15:53:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10129-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=P+QPByX3; spf=pass (google.com: domain of linux-kernel+bounces-10129-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10129-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4DD7B1F23927 for <ouuuleilei@gmail.com>; Fri, 22 Dec 2023 23:53:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2CE7539FE3; Fri, 22 Dec 2023 23:52:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="P+QPByX3" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2E6D335EF5 for <linux-kernel@vger.kernel.org>; Fri, 22 Dec 2023 23:52:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703289142; x=1734825142; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ZmHTzPhpj3spFr7sD+uYe+dYLZez9U51K7ihV5uRElk=; b=P+QPByX37oS1hVqjFrhhCMqMj1AcOO27obyldbmlD4/vDwyaqwvmH1CY ahn4W2WTLBF96CRYYZ78lxS0Urwnd41/4xE7W2cSNRu6tp0jbVWy7dIKJ 40ERqLGxOF3TZwayvVCIgOzRpVXzXtq+w86lUw2exArtDydYdhgcaburZ VHv8Q2m5tWPxfTSth33rPMCTtEXdDnT5rcyVHnEG/ntiUghK4n32cNeMQ mtv+kyFVJMfJNfAXo3sYB3LFppdwHfZBhWUhHoid5ZPMWqW/Bfqmw9PgH 4VRATHQoypjpmisddzehqQuX3pHOWjRIbqetEWq0ib09vtWac3bzn169I A==; X-IronPort-AV: E=McAfee;i="6600,9927,10932"; a="395063279" X-IronPort-AV: E=Sophos;i="6.04,297,1695711600"; d="scan'208";a="395063279" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Dec 2023 15:52:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10932"; a="900622983" X-IronPort-AV: E=Sophos;i="6.04,297,1695711600"; d="scan'208";a="900622983" Received: from jeroenke-mobl.ger.corp.intel.com (HELO box.shutemov.name) ([10.249.35.180]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Dec 2023 15:52:14 -0800 Received: by box.shutemov.name (Postfix, from userid 1000) id E1CBA10A465; Sat, 23 Dec 2023 02:52:11 +0300 (+03) From: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> To: Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, x86@kernel.org Cc: "Rafael J. Wysocki" <rafael@kernel.org>, Peter Zijlstra <peterz@infradead.org>, Adrian Hunter <adrian.hunter@intel.com>, Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>, Elena Reshetova <elena.reshetova@intel.com>, Jun Nakajima <jun.nakajima@intel.com>, Rick Edgecombe <rick.p.edgecombe@intel.com>, Tom Lendacky <thomas.lendacky@amd.com>, "Kalra, Ashish" <ashish.kalra@amd.com>, Sean Christopherson <seanjc@google.com>, "Huang, Kai" <kai.huang@intel.com>, Baoquan He <bhe@redhat.com>, kexec@lists.infradead.org, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> Subject: [PATCHv5 02/16] x86/apic: Mark acpi_mp_wake_* variables as __ro_after_init Date: Sat, 23 Dec 2023 02:51:54 +0300 Message-ID: <20231222235209.32143-3-kirill.shutemov@linux.intel.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231222235209.32143-1-kirill.shutemov@linux.intel.com> References: <20231222235209.32143-1-kirill.shutemov@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786028175142475497 X-GMAIL-MSGID: 1786028175142475497 |
Series |
x86/tdx: Add kexec support
|
|
Commit Message
Kirill A. Shutemov
Dec. 22, 2023, 11:51 p.m. UTC
acpi_mp_wake_mailbox_paddr and acpi_mp_wake_mailbox initialized once during ACPI MADT init and never changed. Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Acked-by: Kai Huang <kai.huang@intel.com> --- arch/x86/kernel/acpi/madt_wakeup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kernel/acpi/madt_wakeup.c b/arch/x86/kernel/acpi/madt_wakeup.c index 7f164d38bd0b..cf79ea6f3007 100644 --- a/arch/x86/kernel/acpi/madt_wakeup.c +++ b/arch/x86/kernel/acpi/madt_wakeup.c @@ -6,10 +6,10 @@ #include <asm/processor.h> /* Physical address of the Multiprocessor Wakeup Structure mailbox */ -static u64 acpi_mp_wake_mailbox_paddr; +static u64 acpi_mp_wake_mailbox_paddr __ro_after_init; /* Virtual address of the Multiprocessor Wakeup Structure mailbox */ -static struct acpi_madt_multiproc_wakeup_mailbox *acpi_mp_wake_mailbox; +static struct acpi_madt_multiproc_wakeup_mailbox *acpi_mp_wake_mailbox __ro_after_init; static int acpi_wakeup_cpu(u32 apicid, unsigned long start_ip) {