Message ID | 20240712-asi-rfc-24-v1-25-144b319a40d8@google.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 910E9C3DA45 for <linux-mm@archiver.kernel.org>; Fri, 12 Jul 2024 17:02:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A4CA46B00BE; Fri, 12 Jul 2024 13:02:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9D5A06B00BF; Fri, 12 Jul 2024 13:02:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7D9026B00C0; Fri, 12 Jul 2024 13:02:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 5642F6B00BE for <linux-mm@kvack.org>; Fri, 12 Jul 2024 13:02:11 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 10A8E40C45 for <linux-mm@kvack.org>; Fri, 12 Jul 2024 17:02:09 +0000 (UTC) X-FDA: 82331718378.02.682C665 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) by imf09.hostedemail.com (Postfix) with ESMTP id C57D214000F for <linux-mm@kvack.org>; Fri, 12 Jul 2024 17:02:06 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=38btf74X; spf=pass (imf09.hostedemail.com: domain of 3jWGRZggKCNA5wy68w9x2AA270.yA8749GJ-886Hwy6.AD2@flex--jackmanb.bounces.google.com designates 209.85.128.74 as permitted sender) smtp.mailfrom=3jWGRZggKCNA5wy68w9x2AA270.yA8749GJ-886Hwy6.AD2@flex--jackmanb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1720803700; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=dYEbdVw49p7KL3LM6Ug+7tiHwUhfthVzlKoBikBuWUA=; b=4rqSRP7pUaNP0gZoNUhK3Sm+g7Qdyb8iGr4YYKxgy7cOiGQXRUFC+TuGzqtuw3GAPG2ZL/ xo2EMi6FCK3MKLsXVB0Uil9aMvZuaPYEJCA//BKUhZswfjVOPfoqqm4jK5N5MLYTQjaCDx IpFRi+l97MWi9lQ5ag+BVmK3tiNeIOI= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=38btf74X; spf=pass (imf09.hostedemail.com: domain of 3jWGRZggKCNA5wy68w9x2AA270.yA8749GJ-886Hwy6.AD2@flex--jackmanb.bounces.google.com designates 209.85.128.74 as permitted sender) smtp.mailfrom=3jWGRZggKCNA5wy68w9x2AA270.yA8749GJ-886Hwy6.AD2@flex--jackmanb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1720803700; a=rsa-sha256; cv=none; b=QjBjA8HH2VNpkN7FiMyZG1bGTYttWNXcvh/PyxJKLvVNJCTCuZxCEf4u8sEqH9wf3irek7 opFRQEoJHpXB2AuqpxtIKySjDouE8bwQa9uAxlAegtwAIPzP66RekgEKa38nSNq5RCOXWd Q+bpoZI15fWWABMIuzF1iBBpsvdzILA= Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-42725d3ae3eso15365045e9.3 for <linux-mm@kvack.org>; Fri, 12 Jul 2024 10:02:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1720803725; x=1721408525; darn=kvack.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=dYEbdVw49p7KL3LM6Ug+7tiHwUhfthVzlKoBikBuWUA=; b=38btf74XSJHx4uDhwERRzBlkf8cSTWzd/iR9OdpHqUnf2Q/co7+0lFkaIEaW5MKonx ARG/6Qayc7OX792lpP6tyN5pywDywjg7L11cjsBmHIFCcYLVv0i31hcIBAsHDY/Ci09L AWgMU+bHfXikEW+6OWFjtcJcecK+MWvP47x1lF9AwSETEg8jGYi4m6RSrExRo/AH0QLI CdDtst+zNfndLQJXU79IPRd77Hgdl1XQc7kenSiWgYe0jUhnFLLPc8v10WZBVdF/zjTa VnZ17sBi227r/4hPQw6Eh7lSbdyoum6C85jPH2Ok58j7oXL2LBsLhZ7SzMvyXUs8F4Qx mj3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720803725; x=1721408525; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dYEbdVw49p7KL3LM6Ug+7tiHwUhfthVzlKoBikBuWUA=; b=sOV+5pRDITiJt1kltPgkNk023+/nIOpWisyRjUMuQdqqKh+Ie9hWCnS+mTHZmDJoJh c1G517DsIhzQ/nfaqM7YuYeqCvBV0mJ+7mW/GKlEoeiV7l4VKPiDOsTPcEHiabtsQXR+ tH5jgqk6kxl/RVNjLYVfnYGKTrc/lDEQBMQB/e+xUuV05Ce+xgcrmPAK88V3AVFSt94U MW1LzMixrbQWDh7pu+AdpwRW+HaPuLmmH8rJH/1dtg7HS6oYm7w0RxZk0oNgjm5X/mZg HoCIk9WDaFFuWDUPsncv+Yu2yJ+gfIiBwGsNm9d4smfT+n6gFxGiSeBemwy72h3TRUfD 0Qdw== X-Forwarded-Encrypted: i=1; AJvYcCX5HRO19CMp7qpf8UP3ECFULa0PT33n0Qd0PaJPLfhL01VX8QeD4a101DgnGkXCTt/aYZ3aanr/1fNzD2FqeEi+7FM= X-Gm-Message-State: AOJu0YzI++5mfe9uMalDxIIJKC3NEjlunf+VwzfxL9RR8zFKmUl46frw uyco9feAzxEh/rh2szSxCHy2clOcCW70M0c4vnncIUI+FA84EUUsHV+Dd8/ZGkVpErwIoBl3XKg Mfm9C3yyWJQ== X-Google-Smtp-Source: AGHT+IEpFjrIcdozWeccrHJ18iMfCUI+HuVuPHUhyCg9CuNp5bbpeH6dXY+Lf29VqG6hp3YNWuNGMoEtsiBUuQ== X-Received: from beeg.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:11db]) (user=jackmanb job=sendgmr) by 2002:a05:600c:5129:b0:426:6a14:8e62 with SMTP id 5b1f17b1804b1-4266ff87a5fmr1913465e9.0.1720803725228; Fri, 12 Jul 2024 10:02:05 -0700 (PDT) Date: Fri, 12 Jul 2024 17:00:43 +0000 In-Reply-To: <20240712-asi-rfc-24-v1-0-144b319a40d8@google.com> Mime-Version: 1.0 References: <20240712-asi-rfc-24-v1-0-144b319a40d8@google.com> X-Mailer: b4 0.14-dev Message-ID: <20240712-asi-rfc-24-v1-25-144b319a40d8@google.com> Subject: [PATCH 25/26] mm: asi: Stop ignoring asi=on cmdline flag From: Brendan Jackman <jackmanb@google.com> To: Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, "H. Peter Anvin" <hpa@zytor.com>, Andy Lutomirski <luto@kernel.org>, Peter Zijlstra <peterz@infradead.org>, Sean Christopherson <seanjc@google.com>, Paolo Bonzini <pbonzini@redhat.com>, Alexandre Chartre <alexandre.chartre@oracle.com>, Liran Alon <liran.alon@oracle.com>, Jan Setje-Eilers <jan.setjeeilers@oracle.com>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Andrew Morton <akpm@linux-foundation.org>, Mel Gorman <mgorman@suse.de>, Lorenzo Stoakes <lstoakes@gmail.com>, David Hildenbrand <david@redhat.com>, Vlastimil Babka <vbabka@suse.cz>, Michal Hocko <mhocko@kernel.org>, Khalid Aziz <khalid.aziz@oracle.com>, Juri Lelli <juri.lelli@redhat.com>, Vincent Guittot <vincent.guittot@linaro.org>, Dietmar Eggemann <dietmar.eggemann@arm.com>, Steven Rostedt <rostedt@goodmis.org>, Valentin Schneider <vschneid@redhat.com>, Paul Turner <pjt@google.com>, Reiji Watanabe <reijiw@google.com>, Junaid Shahid <junaids@google.com>, Ofir Weisse <oweisse@google.com>, Yosry Ahmed <yosryahmed@google.com>, Patrick Bellasi <derkling@google.com>, KP Singh <kpsingh@google.com>, Alexandra Sandulescu <aesa@google.com>, Matteo Rizzo <matteorizzo@google.com>, Jann Horn <jannh@google.com> Cc: x86@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, kvm@vger.kernel.org, Brendan Jackman <jackmanb@google.com> Content-Type: text/plain; charset="utf-8" X-Stat-Signature: bd4wac9ys9j7cu43rsgzq5uahkh3a719 X-Rspam-User: X-Rspamd-Queue-Id: C57D214000F X-Rspamd-Server: rspam02 X-HE-Tag: 1720803726-289523 X-HE-Meta: U2FsdGVkX18fuqCRBdZL+FreciuD1MWKyfjCD0ajmEZ1a3kKT2BxU7eRg8u08xOFjteUdc0mzKsKoLGmuWxsA6k7TlXgsAVbfSteA2pWomWcVuFrVKPkqxKgFT1o37X1SAFlOa4jOZZmccuQJA1g1FgG8l4w1ufUzGdX5sglqMP19lbFzUpDcwYFVM4GJcSaTloRjlxLB27dWKJJWopotsy5Wp4ggKGk8wLWtTyMjIHVB9+DYurHIa99FNuYbepc5PvJKTFc/UbUmatMEFnE5hg+YooTgmTH2dte2mudTAOYIsgHbU/ww067c4Cwuip8l9y96UdIRc5OEX1XucDYhVv4LRJ2YiUtf7oZV9zEc3JsVmVRut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sESrHKrRE5L7mP2pSlwKs5WGW+/UOu+FQuNTDSO0KZaYP3lKHqPUGTFTVE7lDIhvmLetasPRg0Er3oJbn+byisGxzkdV X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Address Space Isolation (ASI) 2024
|
expand
|
diff --git a/arch/x86/mm/asi.c b/arch/x86/mm/asi.c index 891b8d351df8..6cf0af1bfa07 100644 --- a/arch/x86/mm/asi.c +++ b/arch/x86/mm/asi.c @@ -174,14 +174,14 @@ void __init asi_check_boottime_disable(void) pr_info("ASI disabled through kernel command line.\n"); } else if (ret == 2 && !strncmp(arg, "on", 2)) { enabled = true; - pr_info("Ignoring asi=on param while ASI implementation is incomplete.\n"); + pr_info("ASI enabled through kernel command line.\n"); } else { pr_info("ASI %s by default.\n", enabled ? "enabled" : "disabled"); } if (enabled) - pr_info("ASI enablement ignored due to incomplete implementation.\n"); + setup_force_cpu_cap(X86_FEATURE_ASI); } /*
At this point the minimum requirements are in place for the kernel to operate correctly with ASI enabled. Signed-off-by: Brendan Jackman <jackmanb@google.com> --- arch/x86/mm/asi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)