Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp612438pxv; Thu, 8 Jul 2021 09:52:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgHF4tRX2QGsNdZmDRB+8g9FVubRZofSg0QVAuijEOzWPlGt8Ne+cLRcfzHTpE5Ne4xHLE X-Received: by 2002:a17:906:f285:: with SMTP id gu5mr32424596ejb.226.1625763128310; Thu, 08 Jul 2021 09:52:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625763128; cv=none; d=google.com; s=arc-20160816; b=TTmlsYuGsSHC+arT7SKqzpY5/kdllaDn2vJn8k8HCM8Y+njoaMwlEaVSXukp7aR8sX 2Ao4z9KUpIHKJjiMIHWDsRtUQitO8PtQ5xHnUv9YbyZVI4cAIh7uApXkK0d7AK5YI1Ir rUVLzd91YkON1IzD5KDkTvmEF5HKyqoZWGnog7mClEhh2t23xVJzIYHzwSyPHBN0znvR 2uhz8lbpWihJDGUHFc9eCEFdvJ1fBuyrei2zEkx1Tv/prQGMz81fYPdmKNOrsdpplbEt ygoGj9vJ0ghFbI4BtCsoR54YQx4WdnEU7ZmOrGhjTk9q5b1tfJCG8unbEoyqWMkUdZoe IwDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=2OB0zSrc/L137vieSn1bV5IcC6z0P+Q1vkoqM8xpfTo=; b=uV3OtQ8DF1mzLZy25+QXQVe3LkueZOFxEKrmVPwdh5x6e4J4OOfbn+w8weO9JqYZ+L m1StfGcIYwJT3R7mGLp1WONujGSUZKg9xYz2tltO8PwkC7qHmj1ZWyaA55uw7R1DIt7C d5MsGjLHvPZ8PH9FdlSRHEiKj/C8lqsmw2PvMetjUhEt9aSY4i2tDsJFlcK2bXO0yfZt KzDWZzF+ixjyqzVq5tOoqZr8+vlKUx/FF4CwJABMWtdCRSt6FrKbZRG5fAEBj3LvrVt5 lPjAaRt8IZMDPXINR4k6J2ZSGunVmA5QHmboeEAz+8oSsI750pxCQPfUDGxtPq1Uoeba Fyzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YEQI2B85; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k26si3675745edq.239.2021.07.08.09.51.45; Thu, 08 Jul 2021 09:52:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YEQI2B85; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229735AbhGHQxa (ORCPT + 99 others); Thu, 8 Jul 2021 12:53:30 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:50630 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbhGHQx3 (ORCPT ); Thu, 8 Jul 2021 12:53:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625763046; 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=2OB0zSrc/L137vieSn1bV5IcC6z0P+Q1vkoqM8xpfTo=; b=YEQI2B85NKHdFVQI9+sMoi9OQUYYjxYD9xmr1/qK7ZADcxSoiYTbcDrsRho6CcmU7gf8ij Skecd1g8ifNnPg4itELRXECm9Zzt6z2Wkg9rYG5rrVlBAxdSFUssSXIYoVSQBjdIUuu0xS RxLBq0Egot0aiHI+DjuU5/Dr6N7gRLA= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-409-Aqzgl9nqP6SbmHbz6Z2bMw-1; Thu, 08 Jul 2021 12:50:45 -0400 X-MC-Unique: Aqzgl9nqP6SbmHbz6Z2bMw-1 Received: by mail-ed1-f70.google.com with SMTP id y18-20020a0564022712b029038ffac1995eso3658955edd.12 for ; Thu, 08 Jul 2021 09:50:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2OB0zSrc/L137vieSn1bV5IcC6z0P+Q1vkoqM8xpfTo=; b=jdvaQ62Cl4D4m6BNVfWkxXYM7g5dTChOcj7+gKenelXRykNcubDrFjCCea0NofOp2y pRCt5G5ayNn2PfMp0P8YJsBI7OfJtFQSUNqQlM9RjCbjyLpuSlq2nrYdZjmiZjj0ssRY 47uzA6DNkFXDKY+ABfe8kKVk1Dcn8gM2AsSEpo2LK7rFR7GrglH9whMAn0UDPz9hjaKc vPXJM7sB44gmnR5CIJIQcGeqcNH5WtzuEVQPARTGGpvCMxRg1yuYJ/5puqJwjp4W+DtC xwdnC4xy8xp1Ja4PYpV+7wQjADszboPAf+1x8wDouVtdWyc3XX9Qk+34GTi9xF0uHL/8 ar4A== X-Gm-Message-State: AOAM530BUA7+oXNUtbFvV5HAG25y2nHmcVyudUhEM+50Xz/ZOkG8n26p lft3AkAc2zuyfP3hAPDVGQcO1YmJXv15QaysMe6hR9g/eyX9YN/e05BKofXBFAyQ14nGxCzkfGZ yE3hadg6nmO3bFac6gWWHPHkA X-Received: by 2002:a17:907:d8c:: with SMTP id go12mr19890645ejc.442.1625763044386; Thu, 08 Jul 2021 09:50:44 -0700 (PDT) X-Received: by 2002:a17:907:d8c:: with SMTP id go12mr19890610ejc.442.1625763044210; Thu, 08 Jul 2021 09:50:44 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id j6sm1618320eds.58.2021.07.08.09.50.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Jul 2021 09:50:43 -0700 (PDT) Subject: Re: [PATCH 0/5] KVM: x86: Use kernel x86 cpuid utilities in KVM selftests To: Jim Mattson , Ricardo Koller Cc: kvm@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , "H. Peter Anvin" , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Joerg Roedel , Nathan Chancellor , Nick Desaulniers , linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com References: <20210422005626.564163-1-ricarkol@google.com> From: Paolo Bonzini Message-ID: <16823e91-5caf-f52e-e0dc-28ebb9a87b47@redhat.com> Date: Thu, 8 Jul 2021 18:50:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29/06/21 19:28, Jim Mattson wrote: >> Thanks. I was thinking about kvm-unit-tests, but the issue is that it >> would also be a copy. And just like with kernel headers, it would be >> ideal to keep them in-sync. The advantage of the kernel headers is that >> it's much easier to check and fix diffs with them. On the other hand, as >> you say, there would not be any #ifdef stuff with kvm=unit-tests. Please >> let me know what you think. > > I think the kvm-unit-tests implementation is superior to the kernel > implementation, but that's probably because I suggested it. Still, I > think there's an argument to be made that selftests, unlike > kvm-unit-tests, are part of the kernel distribution and should be > consistent with the kernel where possible. > > Paolo? I also prefer the kvm-unit-tests implementation, for what it's worth... Let's see what the code looks like? Paolo