Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1794781rwo; Wed, 2 Aug 2023 22:48:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlEm6ep45zL5UtqVtrWyyL5ERyQXun/P+fEUtAO63qndqkXpJwqo7Kmu1uuiIU1788fAXdd4 X-Received: by 2002:a17:902:6b82:b0:1b8:53b5:8518 with SMTP id p2-20020a1709026b8200b001b853b58518mr16411660plk.63.1691041736808; Wed, 02 Aug 2023 22:48:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691041736; cv=none; d=google.com; s=arc-20160816; b=yW4fd4iyIW0tz3ot2BLJN+p6KPwwHbtFAE1qCT/bL2aSqKJc+ai2ZhYdMteFckWhZs p3BRjHG42VThxMQxPLoCkABSde16+5EfrNxzpUrTSWKQ2Obajq22S5+GO30jF5gyAPGl qEEXlXc4HI6zd2p5zvx0OJVFNaWIRUDn0UDeAEfPH8OUIiE77mHAQyL6hLLdINIDQIW5 kPHKkltydg+CKeJTt06dchdfQPfvGsf10Cn/BoQbpwFzv41OiSy01psoKJVzIpEq6eI8 hs/G9N0zdHYn6+ACGJ0q7AGtE55x7pltxPrurKBkXRthA+4n3wqv1mbFRDJCM7dOPsB4 0o1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=CwpRObE3Mu0PTmBnHo+CXP3E6KvsETU6GJ0mZhuN6xE=; fh=5AF/IXNyFDl2uZmNf2ji5Qt2t2yC4gU6TYSol+HOy6A=; b=QTYe4GuBuEgRAkP89wo7zFb44EeO7XkEwPif9Z+A3QpEnuNVveFbsECiCGatfiAIQ+ f0ZNq4mkxN4R191+4NAj8Dy+X+1pdOKGNDJtT0FY26ohb821PdeCGmTs1qGU1oqWixTA RyEJb9Me9W+WevEbPOdDcd7Pu2TOlVwYPUCLZv7vO0U8ru/NH7x34rCii3BypCmj3neS NZFtoTQY5vlpsKTp3FrR5vQtFxXQPcvXnnacqHd86gI7uAeCZqzFD+Eixu9STH0YrSJW mb2auI+J5rHVG3KpmaHw2wkfHxla8RD7TTaFzCRKGsBMqOK+vBo+as7wgLgi2yucVueU bPJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QCpP1tYS; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a170903120f00b001b9eb5d1e39si11442005plh.114.2023.08.02.22.48.44; Wed, 02 Aug 2023 22:48:56 -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=@redhat.com header.s=mimecast20190719 header.b=QCpP1tYS; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231493AbjHCFYz (ORCPT + 99 others); Thu, 3 Aug 2023 01:24:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229883AbjHCFYx (ORCPT ); Thu, 3 Aug 2023 01:24:53 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBF191B4 for ; Wed, 2 Aug 2023 22:24:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1691040245; 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; bh=CwpRObE3Mu0PTmBnHo+CXP3E6KvsETU6GJ0mZhuN6xE=; b=QCpP1tYSB5sJ50A8oprNOUlUcibrC8QdQFvP4R036krYWRtiwFRPpf7Rg35DTlxdgCBK1R KLZI4hP8kqmpG7UQZxlZkGvxV3ACrrSXKZxx28gyoAUoys6MgO24RoOfflyQopJWm/pYtS l+iqQlKGcunE69HAJqh0dpMmQgdlrrk= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-31-umI-7hBNNpiP9CjiXRqS1g-1; Thu, 03 Aug 2023 01:24:04 -0400 X-MC-Unique: umI-7hBNNpiP9CjiXRqS1g-1 Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-76ce59841d5so5658485a.3 for ; Wed, 02 Aug 2023 22:24:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691040243; x=1691645043; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CwpRObE3Mu0PTmBnHo+CXP3E6KvsETU6GJ0mZhuN6xE=; b=jzf2gSzP9W3oEolcKyZcyVsDSwG/8Ye7k47hvrSp/fl4CV652OMHL57M3qxN2zQxUM jQ17b5+U59NxtBJOyK6iE3kB5Harvf7/U1FMzr35xR/TOV9NUu0QRlRbMPK3DtaKOCj7 CAU0RSu5ioOybpzurqF+MrkleMouTjqEq4Am462Y92r6kGbNVKZG7M+xTBm40W+Wpzuz G3DHjIBCn/UQ86c65FAYzpiLS+ObRgsgGZvD91YxnbePM9rmFtUTxTjqJ88z9X+aC8d3 S2o/ai2v+SsNRRf+y7OxOaG+c/MHyuZ80F7mrVmf7cnGOcyx8Ih+lB7Fql24dqKuDtaz 3LfQ== X-Gm-Message-State: ABy/qLayJSyf4iaXez7NLMtlUybPdBs7eKzQE7gptVSBZifqA88z01wA Bpcmenmz+tG6FuuJoNhx7L8npdC4l6JQGqpVC0ximfMNJvNyNRyBlEtAj+L2jCkgbmMjf90EETJ auxqOVHgSP8wp4s9Pkfyon6kh X-Received: by 2002:a05:620a:143:b0:76c:c0bc:bfe0 with SMTP id e3-20020a05620a014300b0076cc0bcbfe0mr7406643qkn.39.1691040243446; Wed, 02 Aug 2023 22:24:03 -0700 (PDT) X-Received: by 2002:a05:620a:143:b0:76c:c0bc:bfe0 with SMTP id e3-20020a05620a014300b0076cc0bcbfe0mr7406633qkn.39.1691040243220; Wed, 02 Aug 2023 22:24:03 -0700 (PDT) Received: from [192.168.8.105] (tmo-081-137.customers.d1-online.com. [80.187.81.137]) by smtp.gmail.com with ESMTPSA id d13-20020a05620a158d00b0076cce1e9a1csm1219870qkk.31.2023.08.02.22.24.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Aug 2023 22:24:02 -0700 (PDT) Message-ID: <54de068f-94ff-ce75-333d-7f1f79e2743f@redhat.com> Date: Thu, 3 Aug 2023 07:23:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-US To: Sean Christopherson Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Paolo Bonzini , linux-kselftest@vger.kernel.org, David Matlack References: <20230712075910.22480-1-thuth@redhat.com> <20230712075910.22480-3-thuth@redhat.com> From: Thomas Huth Subject: Re: [PATCH 2/4] KVM: selftests: x86: Use TAP interface in the sync_regs test In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 On 02/08/2023 23.31, Sean Christopherson wrote: > On Wed, Aug 02, 2023, Sean Christopherson wrote: >> Oh, and no need to post "KVM: selftests: Rename the ASSERT_EQ macro" in the next >> version, I'm planning on grabbing that one straightaway. > > After paging this all back in... > > I would much prefer that we implement the KVM specific macros[*], e.g. KVM_ONE_VCPU_TEST(), > and build on top of those. I'm definitely ok doing a "slow" conversion, i.e. starting > with a few easy tests. IIRC at some point I said I strongly preferred an all-or-nothing > approach, but realistically I don't think we'll make progress anytime soon if we try to > boil the ocean. At least I don't have enough spare time to do such a big conversion all at once - I'm only occasionally looking at the KVM selftests, mostly for s390x, and I also lack the knowledge how to test all those x86 tests. So don't expect such a big conversion from me, all I can provide is a small patch here or there. > But I do think we should spend the time to implement the infrastructure right away. We > may end up having to tweak the infrastructure down the road, e.g. to convert other tests, > but I would rather do that then convert some tests twice. > > [*] https://lore.kernel.org/all/Y2v+B3xxYKJSM%2FfH@google.com Sorry, I somehow completely missed that KVM_ONE_VCPU_TEST suggestion when picking up the series up again after working on other stuff for more than half a year. I'll try to incorporate this into the next version. (the other patches don't need a fixture, so I think they shouldn't be affected by this?) Thomas