Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp747891iog; Mon, 13 Jun 2022 12:03:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwW9RTG7N5SMjQcFaaOY9NqbHpmH/nXcvG/Hh3KqaeuPI2unxFn9sq9cdRzSiSD3KNyrRZQ X-Received: by 2002:a17:906:f84:b0:711:eda5:db31 with SMTP id q4-20020a1709060f8400b00711eda5db31mr1023590ejj.397.1655146995623; Mon, 13 Jun 2022 12:03:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655146995; cv=none; d=google.com; s=arc-20160816; b=fnQYdC6Mdj2vdE8ZnysirWp/RvfDUcRt27HvczIULXxYszNyAdACcAFEJKkuuTd8xl IT6rj+s4LO8sTEbvvcrkW0J4oJhDsCVbivjHi32oFu591vt3S3qQooaVjjxvm54BtU9y RgWuTJiEAl3IqGOpSPzkyGvZ59ECV+IoJvRe8aZm66p/Bn7h/Kx9SFRFboEbruRkXuhL /SNbyaJUeDssGAv5VIrUGtNoAcGQcItXNHSiDhEFYYCiY9LU8RJZD/bCZZc8F3J6y1jt ABIvlcVNx+7zzSBkG5il1aY3LdLs5GxDSD7iH8npFqoNhZqBbVE8EV0WU7UNlQKXj8pw ZWiQ== 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:mime-version:message-id:date :reply-to:dkim-signature; bh=tBGKoaqTyFq4mhd8hJg4IAsXKcwBUi8nZnrjhPy9tbs=; b=048cdCVCDWkO9jxG7jyEsvE2sCuHF4A87nZ2xQc6vOfMscq4Jn6fmDkQhju29ctdiB VQ6h7vCC5HWzR8rIoWq7ZSLcJIFOQ9FMR7D7l0cGNMZizeuJIZWp/lzY+V08cawOsoT8 PjlOmiBtLTP/KXBdJwMNKc1wo9rw0+5+p6auLUa2+6nonEcK4QdL17RkeIscZ4X0EJuS p/nfm+Dmj8lS2OxxpBSfenW3y3uen5Qn5ufXC2Ay/hwcwiJ1xMML7P2BwILy/uLwoC8y k12Xv4vD8ugHuYktCLpp3MUSiFU7EcOKKYqs5vCxgKPGXcdxVplbhzOr3I46M3Pb4zFx Bgxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=cqWhUzx1; 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 hd7-20020a170907968700b00704dc5420adsi9918653ejc.38.2022.06.13.12.02.50; Mon, 13 Jun 2022 12:03:15 -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=20210112 header.b=cqWhUzx1; 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 S1345945AbiFMTBN (ORCPT + 99 others); Mon, 13 Jun 2022 15:01:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346238AbiFMTAT (ORCPT ); Mon, 13 Jun 2022 15:00:19 -0400 Received: from mail-pg1-x549.google.com (mail-pg1-x549.google.com [IPv6:2607:f8b0:4864:20::549]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C314599696 for ; Mon, 13 Jun 2022 09:19:45 -0700 (PDT) Received: by mail-pg1-x549.google.com with SMTP id d125-20020a636883000000b003db5e24db27so3606866pgc.13 for ; Mon, 13 Jun 2022 09:19:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=reply-to:date:message-id:mime-version:subject:from:to:cc; bh=tBGKoaqTyFq4mhd8hJg4IAsXKcwBUi8nZnrjhPy9tbs=; b=cqWhUzx1G8LbAkjjC0yKje1DM9bRasRid++QwMSv6QwcL347OdAirlHlpvcTPbuAci St2hTRZRcFNbx1Bihwo/+78YRZ2bOwQLilIyqDYwGqVD5jdhoV/mRy6vy7C63iUcJO+v Q85S53kbXkqE0mD2EssqrT1WhUU5FyL6cSrlz0nZQ80UJfWYJkX1AwtR+QS5CADhMbBD XLa6rKWcy2GWtNHBdyS8BdOiu4fdN+ivSUEOCqezWmZ7lsfjhZOQtntfV+lo/rbM4UOG qKrq4L0TN76vpgH1YChETmeWeCABLlmJ6035mIYwp70tmKWd0gxtmZPVQTouC48a0lAq WpzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:reply-to:date:message-id:mime-version:subject :from:to:cc; bh=tBGKoaqTyFq4mhd8hJg4IAsXKcwBUi8nZnrjhPy9tbs=; b=Bn7B6TGDY86SEV+yjWZWjBvv6ErVyyWIudCdpfJWdOvNmMUBVMNDs1+mKpzmTbORRC R7uWyIIV/cdOKUrxr7k9ysnIMhcd0Zk+jUe5AeyL8QkHaV6whGwIBwWRb09kuVVTOXgM n31VhXVegDc8B+CwgMk40dC/1mjEegg4PvEbbEqIKlQ5CMPTxZ+HL4DXf9nOYKo0heUs 166SnFeFU9JC4orzyofq8xF2HhTBWrA+ZUZOkCRwSiGZzLQz+2aRld1u8yDzvSFwjTJd qdjmwvwBPadtV7p6sRop/XuRAHKSWEzX+Cqozm6iiDfe6qS9UFS9xkBPkiWbEJfi61xh BjBQ== X-Gm-Message-State: AOAM533+/DFzZkXe4mDR/LOZTwM5Il9CzaUaumy5++Zh5+I2rv5MojoM bsWE6sHgL0WH6pdD6eQ7QsKz6p12bZw= X-Received: from seanjc.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:3e5]) (user=seanjc job=sendgmr) by 2002:a05:6a00:2353:b0:520:6d4f:4594 with SMTP id j19-20020a056a00235300b005206d4f4594mr130246pfj.34.1655137185274; Mon, 13 Jun 2022 09:19:45 -0700 (PDT) Reply-To: Sean Christopherson Date: Mon, 13 Jun 2022 16:19:38 +0000 Message-Id: <20220613161942.1586791-1-seanjc@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.36.1.476.g0c4daa206d-goog Subject: [PATCH 0/4] KVM: selftests: Fixups for overhaul From: Sean Christopherson To: Paolo Bonzini Cc: Andrew Jones , kvm@vger.kernel.org, linux-kernel@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,T_SCC_BODY_TEXT_LINE,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 Fixups for the overhaul, all of which come from Drew's code review. The first three should all squash cleanly, but the kvm_check_cap() patch will not due to crossing the TEST_REQUIRE() boundary. Sean Christopherson (4): KVM: selftests: Add a missing apostrophe in comment to show ownership KVM: selftests: Call a dummy helper in VM/vCPU ioctls() to enforce type KVM: selftests: Drop a duplicate TEST_ASSERT() in vm_nr_pages_required() KVM: selftests: Use kvm_has_cap(), not kvm_check_cap(), where possible .../testing/selftests/kvm/aarch64/psci_test.c | 2 +- .../selftests/kvm/include/kvm_util_base.h | 57 ++++++++++--------- tools/testing/selftests/kvm/lib/kvm_util.c | 6 +- .../selftests/kvm/lib/x86_64/processor.c | 4 +- .../selftests/kvm/s390x/sync_regs_test.c | 2 +- .../kvm/x86_64/pmu_event_filter_test.c | 2 +- .../selftests/kvm/x86_64/sev_migrate_tests.c | 6 +- tools/testing/selftests/kvm/x86_64/smm_test.c | 2 +- .../testing/selftests/kvm/x86_64/state_test.c | 2 +- 9 files changed, 42 insertions(+), 41 deletions(-) base-commit: 8baacf67c76c560fed954ac972b63e6e59a6fba0 -- 2.36.1.476.g0c4daa206d-goog