Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5879638ioo; Wed, 1 Jun 2022 14:50:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhjHGqvIIfXPVTXxOnm2sIWWEittr26mxgFM4/zce2vyuE5gWYpXSrggeJNWQT4whkhnYr X-Received: by 2002:a65:6e42:0:b0:3f2:78fd:da9b with SMTP id be2-20020a656e42000000b003f278fdda9bmr1224374pgb.297.1654120209344; Wed, 01 Jun 2022 14:50:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654120209; cv=none; d=google.com; s=arc-20160816; b=GqObNkhsZoZjf5UVxT3IPNYO4rQOT+i351QGgLWrT3Le0i1OM/zzLKuL+OtqDSOvc3 vniYChsVFLeskI4kPL3UAm6PRq4WHJ3bP22v5kh06SUiVbiJw8TcP5mAKrAuF0wG5G+v CyFw14zIM8k+ZMEasz1NdfLUoV6CAXDeOxePQZyZd+AROtK3I+HHRsjbxA0PKGJMycLW +Rgb/WgCxn+POY9+e6sCzhLUNdLQhK3Rq75LZuMyst5TKVsViQ980933daGP7txmeCmy 6pKPSi7PZOSQuTqFKi+c7smfDX7RE8XmqfkqhOzGDmRVPH6v5ko2R/TW3belqYmpn6Dy Yspg== 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:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=kk1kl2p/g3Lg3sGUGGyiVv3dYTdsKPpPMBPxg1a8NQs=; b=x5BLhsMlpYhUTBZsZc/d+8R5pUtX/udxctvaJ0wj2nlwbCmCZ1BvDETj4UbxOm6eJg fUyYpauauJGhjMeYYGc15PChYSkmlYUAEOzltKFbtsQm4PgJfGN9/OiGE5kCluURqly/ 5sXpN77AGXUk89SdDAaUGf4y3LHnUZxFnb2U1VKmvOWizYx+gBa7/rXg4k8y5vDxr8qk tKOLXZgtTh0xJ9YVD9oJTFLfTRCNPK5uspMd5/vgwiLihcNCZTv2T4E4jxGfIP1NPv9J bDJ9H8VsZcM2+xQFuOBL0fPcG4A6zJGrqd+GLSjSaETZJQSrX7cWyWh08q6lVzCPeNFs TWHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=fCqYWeX5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q28-20020a656a9c000000b003fcdc3249b8si55649pgu.494.2022.06.01.14.50.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 14:50:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=fCqYWeX5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2C16560DA3; Wed, 1 Jun 2022 14:11:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231387AbiFAVKh (ORCPT + 99 others); Wed, 1 Jun 2022 17:10:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231223AbiFAVJ7 (ORCPT ); Wed, 1 Jun 2022 17:09:59 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 082C925C47 for ; Wed, 1 Jun 2022 14:09:58 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id v127-20020a256185000000b0065cbe0f6999so2405403ybb.22 for ; Wed, 01 Jun 2022 14:09:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=kk1kl2p/g3Lg3sGUGGyiVv3dYTdsKPpPMBPxg1a8NQs=; b=fCqYWeX5V2UAR6CwDd1WwVkx3nRbWoxq+i5xyuQYRpLuf0Idp6IKcChFZX/d1mGPZa wZJhNzo1ICxiw03yrG17zNvxeU/gt4XldskATEVn3qYus+EBAdrY62rsfcD40sYP7ZrX igXgB45R6xlblsq1J3+7HLWq0D7FHjeEccdGgPATYEG27fmiy5xS6olETvuNNrcqmkET CeeuEs1LWViL+Kl2RWA6FUcmNKliAcGPMy3chE3EZPK2ANXrTqk3lk3J9/9XTb5021lB diS31DsFxp7coKuQWeAxr68utYOwsJ9ksZ4/IluHlLeghUUS59fRs6MgqNyQ+1D8i2L/ j7tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=kk1kl2p/g3Lg3sGUGGyiVv3dYTdsKPpPMBPxg1a8NQs=; b=FrPauVmMFvLOC2CNY8btqhBX8jcptIpx6/gkDFLydtzPnn5p15H7zwHHa3sl37A1M3 pX5phfCEiF0F4NaiBZ2dwGAxjYrMqze/7iRaHefybxWSLd4VW8svHqKA0CbMpJERuJzI JGrU7lSFO4IXbUdcEuOtJ9f8CA8M7V5UqtFGR0SGh8Zq/h21CZDiZEhOagrpAI3OsO0s pQNZyLfvJyfMSr6/FSWXeFSiWcxGuuwCx4/uhpsN4VU94RotLpNsreK7EaikU0QLkolj VAs5ccUBkHxo9Z0aCljrexWeyanWttkC8AGHLQngN7VwwYGrLoBVQh2rhoKxxU+VZimO HepA== X-Gm-Message-State: AOAM532wOICo10ZVD4Oig8bXMwns/12YQO6PGokOx+7hPcBSTOFEPT1U 7JCU5nqaCifmztdyRtp1rtGrwyn2mUKyfLF4KJAY X-Received: from ajr0.svl.corp.google.com ([2620:15c:2cd:203:aaec:e358:9f0e:2b26]) (user=axelrasmussen job=sendgmr) by 2002:a81:47d4:0:b0:2ff:c3d1:c158 with SMTP id u203-20020a8147d4000000b002ffc3d1c158mr1702500ywa.388.1654117797191; Wed, 01 Jun 2022 14:09:57 -0700 (PDT) Date: Wed, 1 Jun 2022 14:09:46 -0700 In-Reply-To: <20220601210951.3916598-1-axelrasmussen@google.com> Message-Id: <20220601210951.3916598-2-axelrasmussen@google.com> Mime-Version: 1.0 References: <20220601210951.3916598-1-axelrasmussen@google.com> X-Mailer: git-send-email 2.36.1.255.ge46751e96f-goog Subject: [PATCH v3 1/6] selftests: vm: add hugetlb_shared userfaultfd test to run_vmtests.sh From: Axel Rasmussen To: Alexander Viro , Andrew Morton , Charan Teja Reddy , Dave Hansen , "Dmitry V . Levin" , Gleb Fotengauer-Malinovskiy , Hugh Dickins , Jan Kara , Jonathan Corbet , Mel Gorman , Mike Kravetz , Mike Rapoport , Nadav Amit , Peter Xu , Shuah Khan , Suren Baghdasaryan , Vlastimil Babka , zhangyi Cc: Axel Rasmussen , linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, Shuah Khan Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no 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 This not being included was just a simple oversight. There are certain features (like minor fault support) which are only enabled on shared mappings, so without including hugetlb_shared we actually lose a significant amount of test coverage. Reviewed-by: Shuah Khan Reviewed-by: Peter Xu Signed-off-by: Axel Rasmussen --- tools/testing/selftests/vm/run_vmtests.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/vm/run_vmtests.sh b/tools/testing/selftests/vm/run_vmtests.sh index 54a0c28f810c..7e102246dd9f 100755 --- a/tools/testing/selftests/vm/run_vmtests.sh +++ b/tools/testing/selftests/vm/run_vmtests.sh @@ -121,9 +121,11 @@ run_test ./gup_test -a run_test ./gup_test -ct -F 0x1 0 19 0x1000 run_test ./userfaultfd anon 20 16 -# Test requires source and destination huge pages. Size of source -# (half_ufd_size_MB) is passed as argument to test. +# Hugetlb tests require source and destination huge pages. Pass in half the +# size ($half_ufd_size_MB), which is used for *each*. run_test ./userfaultfd hugetlb "$half_ufd_size_MB" 32 +run_test ./userfaultfd hugetlb_shared "$half_ufd_size_MB" 32 "$mnt"/uffd-test +rm -f "$mnt"/uffd-test run_test ./userfaultfd shmem 20 16 #cleanup -- 2.36.1.255.ge46751e96f-goog