Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp99442rbe; Wed, 28 Feb 2024 13:32:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVMIiW5fHOb4Lr55nB8qy+a/sqdgUD+Cq2if8r9H6OrwHDRuUQ2szu7m+f/H+a6YPrPrxCN0XGokFxCseolFQh69ESHl+h1jeOBTgtkiQ== X-Google-Smtp-Source: AGHT+IE30UiCMNNqhwUtphV8anbnCA7DPA8b8I+3GMzv34Q/lNHr3lLmDmSus1Rf0Pz3cswejVRK X-Received: by 2002:aa7:989c:0:b0:6e5:828a:9990 with SMTP id r28-20020aa7989c000000b006e5828a9990mr382122pfl.4.1709155962814; Wed, 28 Feb 2024 13:32:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709155962; cv=pass; d=google.com; s=arc-20160816; b=PDYJfSGTlm0XLevCGKTlqBIZE7X4vqJldjMNQzLWSAaEtV8qjaQTn8A3UURHSkiL+k bVR5myvT08U4nEy5QgZQncOHtVdLfbtskAf2MFzSCkJua4SjyhKEHNtlkS0pSkIpA2Zb gd4TrBkWn6TZbVhyQfF8UwZ3d7yCchUXv3kGQRfiaVNqiiZemSKh3OnEKvCqlI98z4Vv n/rDoeA6aCJ7O2gDstVCbIBgW90YFJfFHEm8aml8LPG9s9uduA0MaTyh4C2PGCY233dl WNRYfqK1RLyQcxxwiQ87HPuVdQCz0yn+gUsAKUIDB7ce6NIdUSHGHHk3FC8LP3x+3ysC 3g5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=yIIQ0MmR6ymPVVYqXu0m83pfog7nJNUxZwJFPucVFi0=; fh=oslWwuhaqKUwwA97c96OXB+MVoFeQerVM7BMGFrdn1Y=; b=z5fBsdSQQbQR7fC20hoYLcdqt7Ii4bUALA0zFnlAxuMNYU8O86UTLgulMB8RmaPprX 5nscSK5JptY6gZ7uK+2KDDggm+uAi1vMhDsz8bNm6A+xYvelGpYaqyKc7QBLyLbdAxD5 15C61krylRAVUknnM1Ev5XgGQM5Ihcaxdqb51sdRnIHJGo0xDtPolvTqqHyCk0RNqmIf 58iDlCNU3iX4PpW9Zl9W/V1K4kRjXqC75/ApGruAE8ebai4CMyp6jj5iM7qQ2YIEfPhj gZ2Ird40gqQCToTm6w+1wWlEMvBbYOd1eU33Ygyy5YBnuO/3WBhSjEmK0PSTMBReuNn7 ScEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=XZB1hZ3U; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-85724-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85724-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s133-20020a63778b000000b005d8c06e15e6si304410pgc.533.2024.02.28.13.32.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 13:32:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85724-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=XZB1hZ3U; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-85724-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85724-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 64335288F59 for ; Wed, 28 Feb 2024 21:32:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 30EC17002E; Wed, 28 Feb 2024 21:32:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="XZB1hZ3U" Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7AE386270 for ; Wed, 28 Feb 2024 21:32:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709155955; cv=none; b=RWJrV/w5hi4kfU5aCP0yhLxRxEAHfvSHdO9QkjKSzUYJTxOrf4/wKuQ1mDks00ZEXvt0yHw21+yQnJgCD99+jLdGEQoY3RiNpKdwZFDhZkc11CCPDpt1/UAMXuWb2L8aS+9T4eTbbPPA2A+RYb/grHfNbpML2szgurIYxEwFcgM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709155955; c=relaxed/simple; bh=vurzQAkj+Uzk8AykBkc/bg1M650EYGHX9phKK+ngi0w=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=D2oS7SaXaa3plLowmtUB3PiFDu0eBjbQ/DGoxC8S2y8GGxTeAlr+k0sb+ErgWQCm8dq5AwpHbEoDcP/+BJw9LHwH1mQjQ1/xfCIByxd0gjma/CMYK/hEBxLmDuhwp/NKjsk8TMEmD2NOPJttRoOI5U6U/kW2enoQIZYumT9znVg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=XZB1hZ3U; arc=none smtp.client-ip=209.85.216.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-299c5a61099so114558a91.0 for ; Wed, 28 Feb 2024 13:32:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709155953; x=1709760753; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=yIIQ0MmR6ymPVVYqXu0m83pfog7nJNUxZwJFPucVFi0=; b=XZB1hZ3UMvXWJLjaQaeYPxOHV2M5jI+gqknzS7dMrWdXBTHYMXtFzOkr8uQ+L7b44v uHTA5U4uB8lAXmIJPbtCKLUIJDkkiOJCj5suajWjuDxo7VfYl3Mb83eUn9c9jmt1m5Vd +Rk0ASaFGvBh1h6pUTiC+21sCznyK6gQsj2yTqftisDy2GSWFEMF1FyfCnDceDvXK4lQ yBxCuNCepiv0ChdrX4MzS+e9viPGa8do49szM5bDHIJqDVJbQMHwlSCcroTQ2hzfYkqB /+RW8ZmfMGmFtLkwYHBZBEO6Ytw7+D1oKVdjC9RiV1jGYzjbBDDCVKRZ13+CT7lbl2Xg bpHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709155953; x=1709760753; 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=yIIQ0MmR6ymPVVYqXu0m83pfog7nJNUxZwJFPucVFi0=; b=CPpvp8/FPxG4DdDPH0eds4HBbmVRO/e1jA7MQIExRMFNfMtKyLM43Tj2FalvFj270U oIM23gvYS+5EU1CcSSsbrfa/Ssq2HpiOp9wlt4PaggPZt+VASAFl4xfzLtfBRvJ+ddaV zCBbCp9ACgaeaFO/F8fVRnjVDUWsmXorRDYuvRauDHTHQevqBTeD1g0EeeHx6DBuXmzP 5+g0kURIEJamvzCTF0oPGU810jIgCy192XOz2wnYhAU+fRHdiaun/uAWeJX3KsZA+HLQ hrCaGmTgiwfNBUhAGV5yT7cW17Mb8rUpmQhkjIbILH9ajzHiQ0HC69lduFrX5bGHtMcF 3kOw== X-Forwarded-Encrypted: i=1; AJvYcCXtiWZJN8B8wRBQ662e7qsSS+hFbz9xci1JjT6LdSthO9Py+PqH2OKiMx/HO7gLRBPIR2+tQZC3SyLAXkAT7IiAgW2wUOFO7OSVqHb4 X-Gm-Message-State: AOJu0Yz8tZOH3EwqKp1KJFbsCuz3AobCncvODq7ROiUo137qO50cX5QH d40+9xK4oKxsayw0Ii/6qm2SbqUBIrIJl64rpM14d9VXuA+3XQJdRsqUWpVMga/nbY2HDCGKfv5 x4w== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:90b:23d4:b0:29a:a842:6eff with SMTP id md20-20020a17090b23d400b0029aa8426effmr1162pjb.1.1709155952903; Wed, 28 Feb 2024 13:32:32 -0800 (PST) Date: Wed, 28 Feb 2024 13:32:31 -0800 In-Reply-To: <170900036555.3692027.1057525433723685864.b4-ty@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240208204844.119326-1-thuth@redhat.com> <170900036555.3692027.1057525433723685864.b4-ty@google.com> Message-ID: Subject: Re: [PATCH v3 0/8] Use TAP in some more x86 KVM selftests From: Sean Christopherson To: kvm@vger.kernel.org, Thomas Huth Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Paolo Bonzini , Andrew Jones Content-Type: text/plain; charset="us-ascii" On Mon, Feb 26, 2024, Sean Christopherson wrote: > On Thu, 08 Feb 2024 21:48:36 +0100, Thomas Huth wrote: > > Basic idea of this series is now to use the kselftest_harness.h > > framework to get TAP output in the tests, so that it is easier > > for the user to see what is going on, and e.g. to be able to > > detect whether a certain test is part of the test binary or not > > (which is useful when tests get extended in the course of time). > > > > Since most tests also need a vcpu, we introduce our own macros > > to define such tests, so we don't have to repeat this code all > > over the place. > > > > [...] > > OMG, you didn't tell me this allows sub-tests to run after a failed test! > That alone is worth the conversion :-) > > There's definitely a few enhancements we'll want to make, but this is more than > good enough as a starting point. > > Applied to kvm-x86 selftests, thanks! > > [1/8] KVM: selftests: x86: sync_regs_test: Use vcpu_run() where appropriate > https://github.com/kvm-x86/linux/commit/e10086285659 > [2/8] KVM: selftests: x86: sync_regs_test: Get regs structure before modifying it > https://github.com/kvm-x86/linux/commit/221d65449453 > [3/8] KVM: selftests: Move setting a vCPU's entry point to a dedicated API > https://github.com/kvm-x86/linux/commit/8ef192609f14 > [4/8] KVM: selftests: Add a macro to define a test with one vcpu > https://github.com/kvm-x86/linux/commit/992178c7219c > [5/8] KVM: selftests: x86: Use TAP interface in the sync_regs test > https://github.com/kvm-x86/linux/commit/04941eb15439 > [6/8] KVM: selftests: x86: Use TAP interface in the fix_hypercall test > https://github.com/kvm-x86/linux/commit/69fb12492005 > [7/8] KVM: selftests: x86: Use TAP interface in the vmx_pmu_caps test > https://github.com/kvm-x86/linux/commit/200f604dfd07 > [8/8] KVM: selftests: x86: Use TAP interface in the userspace_msr_exit test > https://github.com/kvm-x86/linux/commit/8fd14fc541c7 FYI, the hashes have changed for patches 3-8, as I forced pushed to fix an ARM goof in patch 3. [1/8] KVM: selftests: x86: sync_regs_test: Use vcpu_run() where appropriate https://github.com/kvm-x86/linux/commit/e10086285659 [2/8] KVM: selftests: x86: sync_regs_test: Get regs structure before modifying it https://github.com/kvm-x86/linux/commit/221d65449453 [3/8] KVM: selftests: Move setting a vCPU's entry point to a dedicated API https://github.com/kvm-x86/linux/commit/53a43dd48f8e [4/8] KVM: selftests: Add a macro to define a test with one vcpu https://github.com/kvm-x86/linux/commit/55f2cf88486c [5/8] KVM: selftests: x86: Use TAP interface in the sync_regs test https://github.com/kvm-x86/linux/commit/ba97ed0af6fe [6/8] KVM: selftests: x86: Use TAP interface in the fix_hypercall test https://github.com/kvm-x86/linux/commit/a6983e8f5fab [7/8] KVM: selftests: x86: Use TAP interface in the vmx_pmu_caps test https://github.com/kvm-x86/linux/commit/de1b03f25f3b [8/8] KVM: selftests: x86: Use TAP interface in the userspace_msr_exit test https://github.com/kvm-x86/linux/commit/8d251856d425