Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4933326rwb; Tue, 8 Aug 2023 17:01:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHc+hMvCDVl4/svXhDQySE/haIVS5aMj+WvCRrV8IPybCY90dX79odfMBaeq10PuOI9cGnB X-Received: by 2002:a17:90a:ca07:b0:268:d05c:2d7e with SMTP id x7-20020a17090aca0700b00268d05c2d7emr920320pjt.14.1691539300181; Tue, 08 Aug 2023 17:01:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691539300; cv=none; d=google.com; s=arc-20160816; b=JkTpAoM45DOirUUABoy6D6EPk0cT75H87TrzieHOdiMVwF40mSo9ZznsD+P4PlYZgI E3bDtKgJngGPMlSKyc1mDEzflIvX8dwSF+ZOzukJL+58+EEe1XvC0b6AJdZYIeP/6pcY T9Xnn5t05G2lEw7QwRrrV9qnZVcQ2pq0p++QoLn+5T0U4vAE0OBwah/MUAbhxZfX27f5 GZqLQ1WxpzXIsmunRnbG+BlDp8z5SgVVekn0lFTsDleZhajyXpgVP7dqof3tr5SMYqOb 1j7unhzYr6ABs8y+/np9h6Dv/2kcOjjbpuJq0DMdqg1C8TZ71a4x5Kjr+fvabwcHWoA9 UX7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=8aS9+bqGGIGJd4osXg0UNYpwpvIxhiWvvz+QMPQ0Ulo=; fh=JR+gzu7F1SrtWWbHsiT7UPttLnQsOlcDdqVQ8y19PD0=; b=a0pA5YhHx2lSBFhDhnT0q9TBesWa8NCmhAINIQPSFjmuxSg4n+ttYLCDgUi61f4ikn uI/GnEi35xCA+yq7fUuDT48hNUbDRS/fyvkMO9OO/FSGsR5KOuaFgrJkQdwd0na/kt6+ LjzYYfizu55w0IUa/bRaQDcMKBfpH9gFq2enEkK84DmYhEmGLhe6gSG6ILMHay8GSwz+ VeLcY2M31er2JkoDcvQvtgWpwDJ94o4r7d1eoKI10tfhh6i4lH61gyHD+92KScVOBv4z sLQJSK/JOe5uT+9RdXSPOaOXhSrPo8rTImSDNdlNRkg+MM2XVSgeZQk+4WhacwxndOkZ JqpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=r5BfuQMe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 72-20020a17090a09ce00b00263e9b06a99si226832pjo.77.2023.08.08.17.01.28; Tue, 08 Aug 2023 17:01:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=r5BfuQMe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232077AbjHHXOJ (ORCPT + 99 others); Tue, 8 Aug 2023 19:14:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231897AbjHHXNw (ORCPT ); Tue, 8 Aug 2023 19:13:52 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 788F81BCD for ; Tue, 8 Aug 2023 16:13:44 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-d47d125f5afso2916359276.0 for ; Tue, 08 Aug 2023 16:13:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1691536423; x=1692141223; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=8aS9+bqGGIGJd4osXg0UNYpwpvIxhiWvvz+QMPQ0Ulo=; b=r5BfuQMefAg0Tnr2FQaEIivjC4JzNAMuw4qxGVtci6+U9djSIpA11Hdl+rJc6en91J y/h+YDs0QAA5xFNhoGQE0fza9XyovVTAf2+ZIQj9pZdiciK8WN7z5vHDkRS5bze2JrvX 1Pi0zGoodsu607T4DyfgYeotzEFP9OFg33WWk/J6RT4OzDi2b1Fi3JqRQ6HpyZZ+gywn +UZCzVUhZNvWuqdnzNxXM4bRsJeE1eSS8tnxOTUMx2/t6MN7k2idS2QWNmkVWa/w66NG yQ/AVA1aDJm/DL0O+01cjluCupsA1erg2PPaJFd5MY5BuRKvpf3vdiz+yo1bLlWRTbiY xCRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691536423; x=1692141223; 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=8aS9+bqGGIGJd4osXg0UNYpwpvIxhiWvvz+QMPQ0Ulo=; b=KzQ4jzI8gKGq+k+B3d3+FWtVS++cwPzzOkTwj0POIrHLC/Uf3Q+HuQJcpOkoxx0mHo 4rSWlN5OJODbmrjvnghiuWYnJfkiXCmgNOp92AK2/x55Tj3QejDmGkHdFO3nWW+7NxKd Inb5ZeMzuxpe8ru6LWZO+vfSwREiruAIXHRUWSmD+XSa64P+mQTAp3jtefl7QEmP2ibl d2Ugh6uoQztlam0tMBvvsGY5cgd8lG6ub127IYVlN47s7oYRH8Eg0AbCphviST8SuDUT FR1zRLmJ39Y6xkiT5pK5rhGp2sww5xpCu6iBeQZo+bbfbrWpIzACpZiqdYeD7LSQc7h2 6y2Q== X-Gm-Message-State: AOJu0YwfAfYIIa6mj57aVSKdiz+MGpIuazDnCGbMZ0qB0qhByavsOkXD IcP9hRmhZ/NpgZJe/f81d5qxwRsA+aNy X-Received: from rananta-linux.c.googlers.com ([fda3:e722:ac3:cc00:2b:ff92:c0a8:22b5]) (user=rananta job=sendgmr) by 2002:a5b:890:0:b0:d10:dd00:385 with SMTP id e16-20020a5b0890000000b00d10dd000385mr25024ybq.0.1691536423557; Tue, 08 Aug 2023 16:13:43 -0700 (PDT) Date: Tue, 8 Aug 2023 23:13:24 +0000 In-Reply-To: <20230808231330.3855936-1-rananta@google.com> Mime-Version: 1.0 References: <20230808231330.3855936-1-rananta@google.com> X-Mailer: git-send-email 2.41.0.640.ga95def55d0-goog Message-ID: <20230808231330.3855936-9-rananta@google.com> Subject: [PATCH v8 08/14] arm64: tlb: Implement __flush_s2_tlb_range_op() From: Raghavendra Rao Ananta To: Oliver Upton , Marc Zyngier , James Morse , Suzuki K Poulose Cc: Paolo Bonzini , Sean Christopherson , Huacai Chen , Zenghui Yu , Anup Patel , Atish Patra , Jing Zhang , Reiji Watanabe , Colton Lewis , Raghavendra Rao Anata , David Matlack , Fuad Tabba , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-mips@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Define __flush_s2_tlb_range_op(), as a wrapper over __flush_tlb_range_op(), for stage-2 specific range-based TLBI operations that doesn't necessarily have to deal with 'asid' and 'tlbi_user' arguments. Signed-off-by: Raghavendra Rao Ananta --- arch/arm64/include/asm/tlbflush.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/include/asm/tlbflush.h b/arch/arm64/include/asm/tlbflush.h index b9475a852d5be..93f4b397f9a12 100644 --- a/arch/arm64/include/asm/tlbflush.h +++ b/arch/arm64/include/asm/tlbflush.h @@ -340,6 +340,9 @@ do { \ } \ } while (0) +#define __flush_s2_tlb_range_op(op, start, pages, stride, tlb_level) \ + __flush_tlb_range_op(op, start, pages, stride, 0, tlb_level, false) + static inline void __flush_tlb_range(struct vm_area_struct *vma, unsigned long start, unsigned long end, unsigned long stride, bool last_level, -- 2.41.0.640.ga95def55d0-goog