Message ID | 20240212104448.2589568-3-kirill.shutemov@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-61351-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp2435773dyd; Mon, 12 Feb 2024 05:46:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWnvxAlTzf/kd0MaMXYuAvwQSA7CRFL7VEKWirnqHLfOab5JQuFQ14W4T5P18Dmm7eoXm2ZNUxtxWlGZMUVJ4OGWv28fw== X-Google-Smtp-Source: AGHT+IH6CqsI0NbIlpN/RRDb3o9fW6gVxws6uzaUJZeoOm4DnJserWHKeq0EUvmdtySb3AS90vIW X-Received: by 2002:a05:651c:1414:b0:2d0:a801:b4cd with SMTP id u20-20020a05651c141400b002d0a801b4cdmr3661399lje.38.1707745608576; Mon, 12 Feb 2024 05:46:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707745608; cv=pass; d=google.com; s=arc-20160816; b=r5bn/x1Z03seTaXgROo9oJ9tHsrhgXUvb0/+zzykPitaMgv8n9z3b5Pyh4nOzE5gpD QPqLh2trT1d14pRYyzN3AL6wjdxKVqL3lV4RoD5h/4WWEaJ0aI6SMtWXzH2nrwHCp+F7 AoVFtx8yLbeJJVjyBmq2d4X/kbIOnGfgq06PZo7PrbU2KelaAV4znGopJLfYvWub1nDe YVYq3+iQapkAfsIdLkO4LWIqwFP4GM7UaqGGHuRwz4Ga0+9oQQBduUaKdiBPcXgq+o8r pmEn9Bnxdx6gseEv288jVw97+T+IHI5/keZRDfO9yzXWZ+raDLiRL6FJ3CYFX2jXx2tY nBVw== 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=OmyTK/ZD8egS/hdHc+6kQr84NCywF9FNJ49v4TdySnU=; fh=T4IDp7lsJEzuFSuB6oQma5ktnkQsMmqBCYF3pjruarE=; b=ph9NELeezEFbEv4B4fSdspvjQ9tNbKVt36N5Xk3v5Or0biTNRCDf0kabT3kq1v/zDm 0lWzXgUTe5GuaYcZkjF24KFBPmJhrETyFiDSfYglQ6Nt2D+pMbeZBIYsd8VUkr+Ou7T8 wqIXs9OUKXf3+yVm/u3uxHrHXUelAToei5MaqJtjSOP3w3STWYJ2Qj57NyDVD7TYlQur 3RqM6Zb13WYXC5j5MmJ/Z1FtD4tP39bpt/ihZIurkWuUM3++kEdELPk3Bw1DrcEkchq1 S5onUVdNAH3yHRbqGGFY/wtLRsETL3tV7mHVa1lgY8GYiJ4NYNBqoGVAk+x/v/GU0GWE niFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JOB5sudH; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-61351-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61351-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCUXF+F6n+qw0g1bleNbna7S8DFMHgDVp8T/g3OH2RK2MR3GFfQg2SWiH0FrrtFeRUQZrqsPU1Y6ffR4bvzWRTm0THNWHw== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id w22-20020a50d796000000b0055f0b19fa4dsi2870122edi.636.2024.02.12.05.46.48 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 05:46:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61351-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=JOB5sudH; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-61351-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61351-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 23A871F244AC for <ouuuleilei@gmail.com>; Mon, 12 Feb 2024 10:47:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED6863A8E7; Mon, 12 Feb 2024 10:45:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="JOB5sudH" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (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 68130383BF for <linux-kernel@vger.kernel.org>; Mon, 12 Feb 2024 10:45:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707734704; cv=none; b=GzhmSWWsDmIwmcsJ47BB1Cs3kxo9Z0mHbeWb4+SgeIghHTRkgAfuGQe8gfqNUqqivEFUwrJ5lyJwhVoS8E/cFca4NhtSHjpTIiYdP18ETHaGqJD8lOBO9/ngjKIsbqMi4wKMYhiXw69B2GagPZiPgQ6xVgDr4eu9mE1leKYyAfo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707734704; c=relaxed/simple; bh=S6F/Ky7eP00etA13aVi6LSez70wEvbCqE2JWP4lJSJ4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hkfAiG8nmr7FFof0mD3bG/78KPX3+l5GQQHvrRsj3fcP3OPt9rqDuOlTa17Gh6bLHN2XFLu0auAdf1OMaoqGyvQmMgoHRHGko7euGMDZ1bUrO23PANd95pEp5Bcb1onkfji9e/oe96SJdFFAlgzjwANEEd9QBPxKRAjexy7BS68= 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=JOB5sudH; arc=none smtp.client-ip=192.198.163.17 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=1707734701; x=1739270701; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=S6F/Ky7eP00etA13aVi6LSez70wEvbCqE2JWP4lJSJ4=; b=JOB5sudHXiyC01T9axP4090aW2XHYFQEduAGzITFWVuWMxinFF/9W6F6 x7dvMZ6JEaalni1iYWo1CuAsIQ2ktWinWsOO8e8Ea0kqm9DBA9wic0Byp Yji9Yjv5Wo0XwslYpXjYWvMqw4yBrhYsDq0HMs8Dd8x6KzV4/wzJep8bM L+6RaVfOrZCIW01C5a7Y8Zd4agqcWqcwSTckOV4FngfoaC8dVDlR+Uumj VsyK4L9bswKsApPH/ouZ6M9Syu/ctYcbK/9IFdd00ULHAOo79uOlKca21 7c11QSoP0bnNG+Ceu01F+o1mIMqRj+kQlS4jABFBbU25fE6VtOqzasIOT A==; X-IronPort-AV: E=McAfee;i="6600,9927,10981"; a="1584996" X-IronPort-AV: E=Sophos;i="6.05,263,1701158400"; d="scan'208";a="1584996" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2024 02:44:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10981"; a="935035575" X-IronPort-AV: E=Sophos;i="6.05,262,1701158400"; d="scan'208";a="935035575" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 12 Feb 2024 02:44:54 -0800 Received: by black.fi.intel.com (Postfix, from userid 1000) id 013BE468; Mon, 12 Feb 2024 12:44:52 +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: [PATCHv7 02/16] x86/apic: Mark acpi_mp_wake_* variables as __ro_after_init Date: Mon, 12 Feb 2024 12:44:34 +0200 Message-ID: <20240212104448.2589568-3-kirill.shutemov@linux.intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240212104448.2589568-1-kirill.shutemov@linux.intel.com> References: <20240212104448.2589568-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: 1790701059214913582 X-GMAIL-MSGID: 1790701059214913582 |
Series |
x86/tdx: Add kexec support
|
|
Commit Message
Kirill A. Shutemov
Feb. 12, 2024, 10:44 a.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(-)
Comments
On 02/12/24 at 12:44pm, Kirill A. Shutemov wrote: > 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> > --- > 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) > { > -- > 2.43.0 >
On Mon, Feb 12 2024 at 12:44, Kirill A. Shutemov wrote: > 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: Thomas Gleixner <tglx@linutronix.de>
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) {