Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1667951rbb; Mon, 26 Feb 2024 18:23:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVvu3j1kRi65IhgskiBRhb2z7NQkgk/pukJah7iS+7S5JlXsX+zqqwGjeayy6kYp7dwDYuHxF9zeGQ6fqgYpFYJ5v1E4ddxPFeuUVlHmw== X-Google-Smtp-Source: AGHT+IF5tZL2jzhw5qELHm/vbI9SmycPt0ypyE67sM51LjsS5NIQ0lJmsOBwnFr/cizEmEyBwuMi X-Received: by 2002:a05:6512:2826:b0:512:e091:c99c with SMTP id cf38-20020a056512282600b00512e091c99cmr6543957lfb.47.1709000608187; Mon, 26 Feb 2024 18:23:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709000608; cv=pass; d=google.com; s=arc-20160816; b=H/IAUgzmns6WiZ1JX0EcvrSndXKg2GH5gui/kxhAZfCDEYfAMl7OgQD453AAOs4PzY B+Acxw9yY97YRbCXdBhcySGHCnJt+veIj0799qAjxL1p23cea0lK5+4nygAhpaX38ksO /DVdHMXGOGgOGzpqobOPUuyUrDu10wIsnxOj4bp/oNEbl8Xpt+YHAZ0XTFhrqX6tmvEl lWxcq+rdwu9SSUbOcv7ql0XAWKMtg1c5ajILjxGjiJZdWvaWHV7c8T5IFLso2aW1c0S5 4P5CeCNi29xuYk2cpHuVMe8rnXhZrY8NGn/Lt3xDMZGFPaQhs40kf8cXpUdLIvYsfcr4 fFNg== 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=gD/GJ68X0cVQGr5FjGXj7WBsDK+In0culAJ288XBYzk=; fh=le5VFsG7GptdUoyAE4EqBX7mmcvBjSJsJzIzDNYBFjs=; b=VUJsvkKmrFxbnOiIziDFweiPWtH3g3fX8K3OD0h9rYDV1qAcq876ns1h8oj2jAbE2i +PxmMMAgCPdFoKuD7txwNVgK/YMTRG1+2PtWQT0YCUl1CpnbsMcrIjkujGmY6zzUso1S JHPruI25vlqfuRbstf/0PqvBDoLO/ZO5fzFr30ZJSvHlLi4qaGPiLYdYBA5M8Rpm+HPL vSvLWiZHK3Vc0LDvlGOiMZaW22UGCPSoiT5/K4ynuMVVDC2x5z3VXt+LgiMzUxVvrT0/ YArNxqnV28olsdzttVqfhSrbzuWk2DALPW2zZqhsXzUtdjjb57vmgpDD306TiEIc5YtO nB/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=IzwC5LgQ; 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-82600-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82600-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i18-20020a17090671d200b00a3e93bc8b4csi292197ejk.473.2024.02.26.18.23.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 18:23:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82600-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=IzwC5LgQ; 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-82600-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82600-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 am.mirrors.kernel.org (Postfix) with ESMTPS id DF7B91F23D6D for ; Tue, 27 Feb 2024 02:23:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B493754900; Tue, 27 Feb 2024 02:21:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="IzwC5LgQ" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (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 56AD554BC3 for ; Tue, 27 Feb 2024 02:21:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709000517; cv=none; b=mb/GQRPY4l65Tm3RsZcb2L7YLxHA8BycI9xwccVp99InkCPY4xEnrw9MQNQLkA6q2JrN14qP0Jq/BPOALRa2BGutS+wQbdS9XagMLmaemAafzB692lG8ntccn7Ub9tlenUSirSnl3ZJaMPEwvJleCweC45K81r03wX2h/qrAvuE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709000517; c=relaxed/simple; bh=SP3wECQuNsGizvBDLcQeElF0hhZLPHhC3anTjy4uCjs=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=DfX+iYofFqO+u1+anBqirtYUUEEIOnBaT56lDaeigaGCreZGXRNkxWw1e1vZjMlaIRwc9oRTcPJ2ugA4H2+FeTCBlwsQj81iYusIoK0/suUtvdsl3ekvBRC4VJzCz1L884afwMWCYXK9J4h9i66Wip+YdmaXXm4/qcECW0IcIuQ= 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=IzwC5LgQ; arc=none smtp.client-ip=209.85.128.202 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-yw1-f202.google.com with SMTP id 00721157ae682-60925cacbb7so4050887b3.2 for ; Mon, 26 Feb 2024 18:21:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709000515; x=1709605315; 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=gD/GJ68X0cVQGr5FjGXj7WBsDK+In0culAJ288XBYzk=; b=IzwC5LgQTEaLnY8mA9DN+WrSuS9nT+RJnDbNcQ7JeVTwIKnzzQG3xthKYAWQv85AZr wsvElYD70g09r9mszAQ3aD7QlggVoBvwZEUcDInU2HFPjFneCBZqwdNCyPgWM0v3/3Vl ESs484eOh4pfSBsvpN90oE0eth8LHDVs//fp9LFXsrI+EVqFhN8ptaJfGYYgZlwdBk4M 8FMoYF8gmprX93JkSgCufwHKxI252tfqZinv7TDE4IRs3hgldEnzYV78Ikeiwy4sRXXQ zkMbZbCc/Tzm85/uwSdPlTqv9QQLqCyptaf9Q6ZaiiXtSbe18q3DmV/d6qUCelx89/iK Uo6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709000515; x=1709605315; 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=gD/GJ68X0cVQGr5FjGXj7WBsDK+In0culAJ288XBYzk=; b=naVHOl5qxCFvuuAUtBg1bdBujkwi3F4ikWOAbOgXQNv1jxa+x7QEpYirxzxXpCDmyn YwigaMhw+cL1wgCmcS3UHTKfFLfMYMe+5xU2dzl4bSXN8PzEv3d4JV2neLfqDc3/NjU2 ljPYrTvG+zQfnZH25H/jAC5FWN5yO195IJlnk1hRdCssqFPk4gXAhqnH48RsBZ0/2l7d GbKriFC1P9HM9nTSzy/SCmdPPKnwA05OSeZZsjXiptdIRdLTAVdXw+OrMGQ4RnkIwKrY j8afrxoV4OC1z0+kB7A0i98P2OCZwE8b4ST1CwsrIeB3jk53If3neZwuPSODx6aZrhP7 jq8Q== X-Forwarded-Encrypted: i=1; AJvYcCXihNJwRJ6ZUsKKXmkvKKCVF3rF0nRDQVEd7+zvGlTsx9Qam1QJv/0/12cy4zdQj8yHTc9/hzcyct+1/gxX51zqTwrqBftwhlBHnUdx X-Gm-Message-State: AOJu0Yw+is/GLS2+s7iSQSlA2QrtO50kE/yEubgWb008H7+IC4qWL/NE aP9Hx6lAVntb/VP11RrYabwbfMd5SwdwZq+D4rm/SPNcg3H5xw7HbV3SnmrSWbb1CXT1S2+U2h4 QKQ== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:690c:84:b0:609:1fd9:f76 with SMTP id be4-20020a05690c008400b006091fd90f76mr201794ywb.0.1709000515502; Mon, 26 Feb 2024 18:21:55 -0800 (PST) Date: Mon, 26 Feb 2024 18:21:12 -0800 In-Reply-To: <20240208204844.119326-1-thuth@redhat.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> X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Message-ID: <170900036555.3692027.1057525433723685864.b4-ty@google.com> Subject: Re: [PATCH v3 0/8] Use TAP in some more x86 KVM selftests From: Sean Christopherson To: Sean Christopherson , 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="utf-8" 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 -- https://github.com/kvm-x86/linux/tree/next