Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1616997lqm; Fri, 3 May 2024 00:31:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVUrb77AKLrBNCQ1EgoE5nzslFZf7FeyQ27Z6otBsJhgCAGKnEWSSmt8t72pesAom1P/EyVD+FZkk77xpuC7QTfo5opEiOpZoCcDsPS5w== X-Google-Smtp-Source: AGHT+IFObvGjD9Xgl041u6wDccVKe4t65F/cRCac9dg44iiCH6sPhe2b/+5oaKphAtePRLIfA0O3 X-Received: by 2002:a05:6359:4c1a:b0:186:1908:4c4f with SMTP id kj26-20020a0563594c1a00b0018619084c4fmr1848637rwc.13.1714721497959; Fri, 03 May 2024 00:31:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714721497; cv=pass; d=google.com; s=arc-20160816; b=nrkCjtCK+s7JA5CRSZ1YFDlZ1KNgwtQFhYGimRyLxZI5ilmSVyOztN+usTLpvOaAWB DbDd7Y2/eynLy1uG3ZnPScx1puoFalG36puWDOQuFsnTpK1y8uqavR6OfHCXS8Ld4e+I e5RyBtH1Ayot4pPSZOe2fhoC83Cl70XayxzTT8kck7C92K7qQasuB2xUKAqgXIEq9jGd 052drgtDM2/O9jvN9ZD7vOHzSd6zz66SljIypdDSy2zjvEqg9x5vhUyiqtbO0etaMyaR yhC18W7UFRZUGFELuqIJYgevki4PPQOXjVc2BDekdLPGuXlFVBpMwTLsF2XLHQnsrAoT O1Pg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=kay3G1XsLA4JleZx3Fv2uRt6GLaRElqrFFYQVMsBqFo=; fh=tluBBqWoddC3uKfA/EoKDWvg2uc3GDHp36+1eY6lagU=; b=HrkZTHrYLvErlg69jY5sfxqIWF37n50q+BzrFZcNnWTYbvitqqgWrbaryK1f4nyK8R HfYBmQzsLSO+QPKl0IF6vJxl7VS4SsNfQORQ7IG7RZ0lqiL0jvBkzjyTMZh4AYu6CTn/ Ulx3huwGo2AwZGGgGADoL59zTExFPmPYogBsO5PgkjiCwOmsfhaNa574kbUyJsp+Ndz/ Qh8sf0hmO+WaGs5NewiRzaEb3N4XG/kfbL3Gu65u+AACj+mv9imE3wKK7sXRSvXClgNS w0JvPgeL3qmt9xKA2+MMBzBudBgaihHSC4Xyt+PUpk1HnZy2InBJlZPr220cI1sSLs7a epuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IlqJNhKQ; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-167319-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167319-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id w7-20020a655347000000b005e438e96c48si2478528pgr.164.2024.05.03.00.31.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 00:31:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167319-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IlqJNhKQ; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-167319-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167319-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E9BDAB21D6E for ; Fri, 3 May 2024 07:31:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C61061474C4; Fri, 3 May 2024 07:31:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="IlqJNhKQ" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 DC3FE1465BC for ; Fri, 3 May 2024 07:31:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714721467; cv=none; b=F+OYbyQSKQhYB/7Euc4IAUoQCpEvOPDW4aaZ+jGE6phCRksuwB8nla4SFFG7OMo/+VqRe3uvBr0kpB9stK3dCplEO8Ad0xbmRQ+518flNDrBcgC8IE/7EDSWlgzviBtNIFXuNRSJ/+DTV4zJEXDqIK6EgNv5wlmb0C+/38sdM9s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714721467; c=relaxed/simple; bh=LHo8e5MgzEpABxZMmyiDu+cre42cy1wLl6f0BueObXA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=daluXd+L/pWz9NMiIWo8DPeEVcgN+79BbrGLJ+Xtz/0SqC37uu55b5l6fNqY221zWEuUhD07R1KZGgtALN6wEpzbMhPlHTlgcVSrbazKyzHWDgA3FcRZqgyvAnOjLF1JB/zLP8v1CDCccDJ24drtFWcb/yTCeNoRnzjHWHT8ZdA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=IlqJNhKQ; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1714721464; h=from:from: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:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=kay3G1XsLA4JleZx3Fv2uRt6GLaRElqrFFYQVMsBqFo=; b=IlqJNhKQnCNUy25FTyNh6xcep3n/i8dsTab/3RAX+GYM8Vw+QHmkImzzlnp8ZkVEXc/4le RnDRDV2Nmr/fnkWXdBfxqgk9pTA7Re017ntVNkR2/kHsqTcqJNw/NUwssR6A/UUSr+yqRS wFRWGltItMS8+k/gqEdEQ8+wl/kaDgw= Received: from mail-ot1-f71.google.com (mail-ot1-f71.google.com [209.85.210.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-589-hyyHWYFfPJWIv2U21Cf7eg-1; Fri, 03 May 2024 03:31:03 -0400 X-MC-Unique: hyyHWYFfPJWIv2U21Cf7eg-1 Received: by mail-ot1-f71.google.com with SMTP id 46e09a7af769-6ee64e5576eso4780640a34.1 for ; Fri, 03 May 2024 00:31:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714721462; x=1715326262; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kay3G1XsLA4JleZx3Fv2uRt6GLaRElqrFFYQVMsBqFo=; b=s4C7EaHqn5aH4sDoZ3QkRhucbhkUNor3W+omYfa5+pXXXiSFixjvN3/3Sw7JGwVPf9 izJX+Jb/0Ea8RmfYLe3yv/cWqfKxtmDS/TQJn4YuPzmq276aavAcIIIJBjWnojlodGAk /Phb9lJrPm8XNNyjbtOUSI0hvKGc0+AVOYJXfgWq7M6vx2D3XvcCb+O91oA4rL5GhUQg EqGJuJ96Xy490I7iM7f0jLNUZQUIDYbbf503LPq2g2OB3lQJqa5Oi3YYzSrt6en1fvs7 fIuYa98h0u4frGyDM2yYDz7Y5E9F7u3Ds63/+8uVEwtJdwkS2GT2rru8H27+DFFUz3E0 RkLA== X-Forwarded-Encrypted: i=1; AJvYcCWt973CcGr/9iJ/ZUwDKPEn0jcIVYX7clJ4hn8iN+QmsrqctzN21b7nBCz/XUh5oyA6/6mF9eE9glm7KS+OmzqkvKz9GD3OBJmaTwKf X-Gm-Message-State: AOJu0YzIk3vBuWqte1WsKbEKVABkcgLLIALAf3vbwRhOmWn8V6yyB0is 69CFJeGX7dQLfRLQkUhrpxm0P0ocipi5zYwUtB77TugvwrIaPTLsXqRk3qIyO5UyoifyAv5bq+t LVlg9wJF/iJqPr4uOzA3MhVLBVydUOTtwyfNuItwbIll8e6cbfkqPYrY0gmvDAQ== X-Received: by 2002:a05:6830:3149:b0:6ee:5560:4031 with SMTP id c9-20020a056830314900b006ee55604031mr2614739ots.38.1714721462107; Fri, 03 May 2024 00:31:02 -0700 (PDT) X-Received: by 2002:a05:6830:3149:b0:6ee:5560:4031 with SMTP id c9-20020a056830314900b006ee55604031mr2614728ots.38.1714721461701; Fri, 03 May 2024 00:31:01 -0700 (PDT) Received: from [192.168.0.9] (ip-109-43-179-34.web.vodafone.de. [109.43.179.34]) by smtp.gmail.com with ESMTPSA id c23-20020ae9e217000000b0078d5fdc929fsm1013411qkc.104.2024.05.03.00.30.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 May 2024 00:31:01 -0700 (PDT) Message-ID: <25cc89b7-822f-4735-bec5-59458ec18a49@redhat.com> Date: Fri, 3 May 2024 09:30:57 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] KVM: selftests: Use TAP interface in the set_memory_region test To: Sean Christopherson Cc: kvm@vger.kernel.org, Paolo Bonzini , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan , Muhammad Usama Anjum References: <20240426114552.667346-1-thuth@redhat.com> From: Thomas Huth Content-Language: en-US Autocrypt: addr=thuth@redhat.com; keydata= xsFNBFH7eUwBEACzyOXKU+5Pcs6wNpKzrlJwzRl3VGZt95VCdb+FgoU9g11m7FWcOafrVRwU yYkTm9+7zBUc0sW5AuPGR/dp3pSLX/yFWsA/UB4nJsHqgDvDU7BImSeiTrnpMOTXb7Arw2a2 4CflIyFqjCpfDM4MuTmzTjXq4Uov1giGE9X6viNo1pxyEpd7PanlKNnf4PqEQp06X4IgUacW tSGj6Gcns1bCuHV8OPWLkf4hkRnu8hdL6i60Yxz4E6TqlrpxsfYwLXgEeswPHOA6Mn4Cso9O 0lewVYfFfsmokfAVMKWzOl1Sr0KGI5T9CpmRfAiSHpthhHWnECcJFwl72NTi6kUcUzG4se81 O6n9d/kTj7pzTmBdfwuOZ0YUSqcqs0W+l1NcASSYZQaDoD3/SLk+nqVeCBB4OnYOGhgmIHNW 0CwMRO/GK+20alxzk//V9Gm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CZpwnsliGV ODqwX8Y1zic9viSTbKS01ZNp175POyWViUk9qisPZB7ypfSIVSEULrL347qY/hm9ahhqmn17 Ng255syASv3ehvX7iwWDfzXbA0/TVaqwa1YIkec+/8miicV0zMP9siRcYQkyTqSzaTFBBmqD oiT+z+/E59qj/EKfyce3sbC9XLjXv3mHMrq1tKX4G7IJGnS989E/fg6crv6NHae9Ckm7+lSs IQu4bBP2GxiRQ+NV3iV/KU3ebMRzqIC//DCOxzQNFNJAKldPe/bKZMCxEqtVoRkuJtNdp/5a yXFZ6TfE1hGKrDBYAm4vrnZ4CXFSBDllL59cFFOJCkn4Xboj/aVxxJxF30bn In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 02/05/2024 21.37, Sean Christopherson wrote: > On Fri, Apr 26, 2024, Thomas Huth wrote: >> Use the kselftest_harness.h interface in this test to get TAP >> output, so that it is easier for the user to see what the test >> is doing. (Note: We are not using the KVM_ONE_VCPU_TEST_SUITE() >> macro here since these tests are creating their VMs with the >> vm_create_barebones() function, not with vm_create_with_one_vcpu()) >> >> Reviewed-by: Andrew Jones >> Signed-off-by: Thomas Huth >> --- >> v2: >> - Rebase to linux-next branch >> - Make "loops" variable static >> - Added Andrew's Reviewed-by >> >> .../selftests/kvm/set_memory_region_test.c | 86 +++++++++---------- >> 1 file changed, 42 insertions(+), 44 deletions(-) >> >> diff --git a/tools/testing/selftests/kvm/set_memory_region_test.c b/tools/testing/selftests/kvm/set_memory_region_test.c >> index 68c899d27561..a5c9bee5235a 100644 >> --- a/tools/testing/selftests/kvm/set_memory_region_test.c >> +++ b/tools/testing/selftests/kvm/set_memory_region_test.c >> @@ -16,6 +16,7 @@ >> #include >> #include >> #include >> +#include "kselftest_harness.h" >> >> /* >> * s390x needs at least 1MB alignment, and the x86_64 MOVE/DELETE tests need a >> @@ -38,6 +39,8 @@ extern const uint64_t final_rip_end; >> >> static sem_t vcpu_ready; >> >> +static int loops; > > ... > >> -static void test_add_overlapping_private_memory_regions(void) >> +TEST(add_overlapping_private_memory_regions) >> { >> struct kvm_vm *vm; >> int memfd; >> int r; >> >> - pr_info("Testing ADD of overlapping KVM_MEM_GUEST_MEMFD memory regions\n"); >> + if (!has_cap_guest_memfd()) >> + SKIP(return, "Missing KVM_MEM_GUEST_MEMFD / KVM_X86_SW_PROTECTED_VM"); > > I like that we can actually report sub-tests as being skipped, but I don't like > having multiple ways to express requirements. And IMO, this is much less readable > than TEST_REQUIRE(has_cap_guest_memfd()); > > AIUI, each test runs in a child process, so TEST_REQUIRE() can simply exit(), it > just needs to avoid ksft_exit_skip() so that a sub-test doesn't spit out the full > test summary. > > And if using exit() isn't an option, setjmp()+longjmp() will do the trick (I got > that working for KVM_ONE_VCPU_TEST() before I realized tests run as a child). > > The below is lightly tested, but I think it does what we want? Not quite ... for example, if I force vmx_pmu_caps_test to skip the last test, I get: TAP version 13 1..5 # Starting 5 tests from 1 test cases. # RUN vmx_pmu_caps.guest_wrmsr_perf_capabilities ... # OK vmx_pmu_caps.guest_wrmsr_perf_capabilities ok 1 vmx_pmu_caps.guest_wrmsr_perf_capabilities # RUN vmx_pmu_caps.basic_perf_capabilities ... # OK vmx_pmu_caps.basic_perf_capabilities ok 2 vmx_pmu_caps.basic_perf_capabilities # RUN vmx_pmu_caps.fungible_perf_capabilities ... # OK vmx_pmu_caps.fungible_perf_capabilities ok 3 vmx_pmu_caps.fungible_perf_capabilities # RUN vmx_pmu_caps.immutable_perf_capabilities ... # OK vmx_pmu_caps.immutable_perf_capabilities ok 4 vmx_pmu_caps.immutable_perf_capabilities # RUN vmx_pmu_caps.lbr_perf_capabilities ... ok 5 # SKIP - Requirement not met: host_cap.lbr_format && 0 # OK vmx_pmu_caps.lbr_perf_capabilities ok 5 vmx_pmu_caps.lbr_perf_capabilities # PASSED: 5 / 5 tests passed. # Totals: pass:5 fail:0 xfail:0 xpass:0 skip:0 error:0 As you can see, the "ok 5" line is duplicated now, once marked with "# SKIP" and once as successfull. I don't think that this is valid TAP anymore? > I also think we would effectively forbid direct use of TEST(). Partly because > it's effectively necessary to use TEST_REQUIRE(), but also so that all tests will > have an existing single point of contact if we need/want to make similar changes > in the future. Ok, but I wrote in the patch description, KVM_ONE_VCPU_TEST_SUITE() does not work for the set_memory_region test since it does not like to have a pre-defined vcpu ... so if we want to forbid TEST(), I assume we'd need another macro like KVM_BAREBONE_TEST_SUITE() ? Not sure whether I really like it, though, since I'd prefer if we could keep the possibility to use the original selftest macros (for people who are already used to those macros from other selftests). Thomas