Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2834817rwb; Fri, 11 Nov 2022 16:00:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf6yXXg6OWTLryH9m2fIK1E7NLvZ8ghU5ky7DBFnihi3zQE9W0xnVubZSdXmHcx2dQovyz4d X-Received: by 2002:a17:90a:5306:b0:209:737b:23f3 with SMTP id x6-20020a17090a530600b00209737b23f3mr4313726pjh.127.1668211221282; Fri, 11 Nov 2022 16:00:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668211221; cv=none; d=google.com; s=arc-20160816; b=qZIyBBeya6Hi/wd9VLH46Y80s/pv9iDsdfzRlSmjgiotFzrH0Yos9xDrzsMLM7hezy bAMjwIb0BURcMk84CdWcy14pp85cwdij2V0Aq5ij5rH6wLEXGMauqdVOwUkqveGhHiR7 klB1n89VjtPgGtdreDOUd+/rVhXqh6M5Ds0jcdv16p22ezBQ6emr80vE/x7LQgptM5U2 10FZkzBl8IuxB+KqOGb6o4npBLniQTP5/QRnfIDAA+5gMpVfkVdURBGyUj94hiepLy10 WfctNyFvYmExMtr2OSqT27/LULCp/azFY0lYvKGVP7KV+gsmd9bDZgT2hxNw3+vZELra 3j7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=r3Mxkoz9yPxl2ebLuf8V6mN46tSyBQbdzK/qJ9VV9Pc=; b=dtABMS12MX8ldhp/4Nyfyq6tlXimqrOECbuBTLaNqlnmZMY2ljaez/0Zg/MJ/zx41d iQsIZ4OXZU58Wf7Mu5T+/C/cbM7ercszY7FVbE0TFaAJ2JBEgz+lFXWMsbPMHRTgoNWw Zu1JeeT8p7axbfch/s8hGUGxc8vKZ0fz2dpBmtqHaDw5TimFPM7LpakgkEvl7P8t2fSc al27MitTMp5APSwVQuAVv4VbxBMOUvSNTBxj42xGlza0IvdJiJkLy7cK6fecMp1S32Be plMJTUSKR+udwzdZwW8Txct895/MMVFFtUI+S+2CdC4VQgLAs6FDdus2GTnPDLErFGpd rzVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=QfGoQIh4; 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=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y186-20020a638ac3000000b0046fbaeb1247si3778301pgd.48.2022.11.11.16.00.08; Fri, 11 Nov 2022 16:00:21 -0800 (PST) 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=@linux.dev header.s=key1 header.b=QfGoQIh4; 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=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234758AbiKKXVH (ORCPT + 91 others); Fri, 11 Nov 2022 18:21:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234657AbiKKXU2 (ORCPT ); Fri, 11 Nov 2022 18:20:28 -0500 Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3158186D56; Fri, 11 Nov 2022 15:19:59 -0800 (PST) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1668208797; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=r3Mxkoz9yPxl2ebLuf8V6mN46tSyBQbdzK/qJ9VV9Pc=; b=QfGoQIh4mca3HDhHokOJyORl/l2YJZ4ZQgHTFgn3XROh2W7y85pZ/H3INIZgFDGVziDkjy 2HoloB9tqNz0+jh9eisokKhpuF0fvgoODgC78kE+xRo314fVIafoOsMfpTIoTCZUW7sumB 3/3YQ8glAWj0ck/SQlX/eOLmkRUW2EU= From: Oliver Upton To: Marc Zyngier , James Morse , Alexandru Elisei , Paolo Bonzini , Shuah Khan Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, Ricardo Koller , David Matlack , kvmarm@lists.linux.dev, Oliver Upton , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] KVM: selftests: Allow >1 guest mode in access_tracking_perf_test Date: Fri, 11 Nov 2022 23:19:45 +0000 Message-Id: <20221111231946.944807-2-oliver.upton@linux.dev> In-Reply-To: <20221111231946.944807-1-oliver.upton@linux.dev> References: <20221111231946.944807-1-oliver.upton@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS autolearn=ham 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 As the name implies, for_each_guest_mode() will run the test case for all supported guest addressing modes. On x86 that doesn't amount to anything, but arm64 can handle 4K, 16K, and 64K page sizes on supporting hardware. Blindly attempting to run access_tracking_perf_test on arm64 stalls on the second test case, as the 'done' global remains set between test iterations. Clear it after VM teardown in anticipation of a subsequent test case. Signed-off-by: Oliver Upton --- tools/testing/selftests/kvm/access_tracking_perf_test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/selftests/kvm/access_tracking_perf_test.c b/tools/testing/selftests/kvm/access_tracking_perf_test.c index 76c583a07ea2..4da066479e0a 100644 --- a/tools/testing/selftests/kvm/access_tracking_perf_test.c +++ b/tools/testing/selftests/kvm/access_tracking_perf_test.c @@ -326,6 +326,9 @@ static void run_test(enum vm_guest_mode mode, void *arg) perf_test_join_vcpu_threads(nr_vcpus); perf_test_destroy_vm(vm); + + /* Clear done in anticipation of testing another guest mode */ + done = false; } static void help(char *name) -- 2.38.1.431.g37b22c650d-goog