Message ID | 20240227212452.3228893-3-kirill.shutemov@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-84031-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3050496dyb; Tue, 27 Feb 2024 16:30:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXiAdnaT9apy4C0v1YJuV3RC4i6KK6laFu1ndCBhInjNRa5L0IBJrtfLFUZ2MXCB8k8ufPmc1m56JC9ltl9IusDIzlEOA== X-Google-Smtp-Source: AGHT+IEvGoznigeqXJ5xSUjvecwNHmR96whstPFyxPflNvQBx4Lf/cE4EAu4FmqF8okPNgBA0MZl X-Received: by 2002:a17:902:ed0d:b0:1db:bec6:9147 with SMTP id b13-20020a170902ed0d00b001dbbec69147mr11091649pld.44.1709080226540; Tue, 27 Feb 2024 16:30:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709080226; cv=pass; d=google.com; s=arc-20160816; b=O2wM4cbI0Np2vNB1ZY6B9Lhzu9rzp00wJtlSHwbVmXnumPtKxGysFNDLt8KJx+QAOf 7kpAIGFCP4EXI2vjXJiq/V4vkcPgDSZPO/i4izPBW1IyAJTa5qDfk5mUT1hEQLkGOzmR WQ0Drcgk1gsjKjhRP5DsI5wQQC+sawHuQ46Lo4eyHQAU6cK1nb5R7S36xklVUdU/cSUO dLSaDJ9N7pTra5eKKBMTlyH+f8KzoEsJU4q3f2zmcokjjoYXIQ9MWJ2wMAn/R8a6quIu CYDuC6CVpDS7SgqQKc5B6WhPirR9gXsXIZizz3YKLJWCdnuYJQwufU5fXVl6S0iUsFy1 s8xA== ARC-Message-Signature: i=2; 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=Usz6NqPuoR+4t6o4/+BGrule5lXSNDgUkzsE+6hTGrM=; fh=OvJRnOqsMTm9XoNmEwebcqh9Ud7yh1CTeKAP84ols98=; b=UEcuUCunW7UgzVVmkRjI4OOO9zkJMWvBa4Ezv/MjeoiDSG2/bEfJ2v84xGehTtI4+4 V8wTECXP8QoMIdpDQnswfCTGMs+gsOQllnLIAHlm6VSIG0yu2+iA7PoFlAYBr/QsHa6J jF1M97BEgdzfhMjnvo+os9lFMe/GKw6/RLqoIfuAJmLfcdB5fkwUJv09584KqI0ATVMX K1/5KnTZWXuvRijYyDHBJZtT3mZMyfR9oK1pcmPLKLYJ6Th9bcQTCFLLLOIwWu6500Uu KndPet1b7/c6Bs3Eu9lybEwPcG7NURO6yj+coVlO9M8CxeSbEVhhA0uzYXn6qTfMRqjC S+eg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MeqskkXT; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-84031-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84031-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d11-20020a170902654b00b001dc819f1591si2136433pln.463.2024.02.27.16.30.26 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 16:30:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84031-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MeqskkXT; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-84031-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84031-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id F32DF2893D5 for <ouuuleilei@gmail.com>; Tue, 27 Feb 2024 21:25:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F1FE14F9EA; Tue, 27 Feb 2024 21:25:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="MeqskkXT" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (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 1A37314EFF3 for <linux-kernel@vger.kernel.org>; Tue, 27 Feb 2024 21:25:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709069104; cv=none; b=VzUGD4NcFDkj5tOqIPZ20naHRMGddL2nTj4tOY9s8N30XgL8oEjC44HzfBIx+Tl4K/Q34H2EWiDhZRtVYVhLkKgDfxMWUMGg17NlHl8I9QXtOYPv84F98yCeOXvg1SxwXpVbkmAs/3OCvkr/uHLjRYeOjpafyBHfzQveqHRFeqs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709069104; c=relaxed/simple; bh=xIprGuZ+wzLEKGSqnVchQykT8aBwBOBoQqpTJEhq/2g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=P4hv1MjJ/4+yBaZayLac9pjICBv1bOAZhvT3FDfcQaVBltWmm/WyXbkQgFWToEQfvfzKSIL0DI1fm6nY6CYDtWDsIoB2DWXyzlM8AZOlGl4R3iVz95tIgUHVIyfONg01z2JG79e5sY5oOIA2Je9wHvJJXv32hzstbjV+/iglyBA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.helo=mgamail.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=MeqskkXT; arc=none smtp.client-ip=198.175.65.16 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.helo=mgamail.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709069103; x=1740605103; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xIprGuZ+wzLEKGSqnVchQykT8aBwBOBoQqpTJEhq/2g=; b=MeqskkXTRNlbjkpntg1p94Y+DoBTAyh1DWj/WzGj9LpJOApmIglEUEOh byP4AXDGVP3/JZaYrcRRfGHWzAl1cvFUyib/ittv+GSFHwxaRsBJA4fkJ beI4+/K8D0AUVvG0+SHiZTF11mG8K9GkLCgjI0AJbAvkoR6VVwSfNXXs7 g9XgtE0L3BBrE9clD1lLlh8wHG+lwja2KNHIRPXQtks8GXFOj89FNv1ID n5hB4CkL/jK7KIKthj+sSUm87/EpJeKzaHYUkAKzRHuSf8/KJHH+kzK9F bfhsprqIlmPu7USWbEZ65GrOVnF6sEhoO1G+ulGsE1AeLTlM0IgL3JARu A==; X-IronPort-AV: E=McAfee;i="6600,9927,10996"; a="3566906" X-IronPort-AV: E=Sophos;i="6.06,188,1705392000"; d="scan'208";a="3566906" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Feb 2024 13:25:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10996"; a="937032886" X-IronPort-AV: E=Sophos;i="6.06,188,1705392000"; d="scan'208";a="937032886" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 27 Feb 2024 13:24:56 -0800 Received: by black.fi.intel.com (Postfix, from userid 1000) id E4DB44C5; Tue, 27 Feb 2024 23:24:55 +0200 (EET) 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: [PATCHv8 02/17] x86/apic: Mark acpi_mp_wake_* variables as __ro_after_init Date: Tue, 27 Feb 2024 23:24:37 +0200 Message-ID: <20240227212452.3228893-3-kirill.shutemov@linux.intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240227212452.3228893-1-kirill.shutemov@linux.intel.com> References: <20240227212452.3228893-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: 1792100507489181690 X-GMAIL-MSGID: 1792100507489181690 |
Series |
x86/tdx: Add kexec support
|
|
Commit Message
Kirill A. Shutemov
Feb. 27, 2024, 9:24 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> Reviewed-by: Baoquan He <bhe@redhat.com> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> --- 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) {