Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp542300iol; Thu, 9 Jun 2022 08:44:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyO/y+a8JMsURA2KLPh432Ffn0rhzyGQUyH9KY5hH9M2iC22QLEqq824r3T5vcLyGva93wW X-Received: by 2002:a17:902:db0f:b0:166:42b5:c819 with SMTP id m15-20020a170902db0f00b0016642b5c819mr38428084plx.96.1654789489048; Thu, 09 Jun 2022 08:44:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654789489; cv=none; d=google.com; s=arc-20160816; b=SnDmM3aBruQAhDwiGHNz+GkzcVFglsJPeb9qJ5rCfaZ+GZoQAibdAN6CiQbCVQxSzO LmUV8agVruVyLVLHMgltBs20+2mBzkyxIYagr47HFwq2uARpJfhDfybKIO0xsHy8lv5a pzZa0Xp3FgwpNajAF+/wGU8OKdAa+7HmbR38p6XHUHxb39b7eie4xmsZkZn/vrVvWRoH R1zibUG7peAx5d0nAtGLQwpqOMQrdAQL4yONlQsH6kHgUTh1NO8f+R3nRBnKoR9N1QJI vNfOUb7ZvY2sLHOT8jcJ0SdCbHU+OCokuK9f0FyDS7NzAXLJB2INdfzGFyl8e/Ki95x+ Km7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4yC6pfF/WN7V+oY8+r8MwzNzFD7ztYSYIkkb+eP7wsI=; b=E6Yo9nIVLeE9WLoz5lpZyGXoKkklHGD3ojciZmJu8v0kf8zz2mMb0wzYUxN9pTcAjd xJivD9QJRhpgm2hq/xD+a5nPKeqM9Uug6kYXDNj7yBd8TwqggRsRXszmP3BupsSc1+uD f3Ar/IyvszTs7yaypjVh7Gl0Bz84n8U+3kHWEEy//RT3G8dGS+VPBcnvVXZTcriru0vt /THyO+jqbGtilWCMrHg7YnfAv39W5SWa+6/fC1mdt8SodqNbj+jqAZSok1Iyh5BG0YG3 7X+amma/6+mT1q3t1Gpz+dh6ldGvxQ2MzGY4z07UlGR0p6zoFE0sHJdDn2DeRcEFyRkH GXVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="p/TJGuNx"; 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 i190-20020a6387c7000000b003fe15ef9871si8850501pge.123.2022.06.09.08.44.35; Thu, 09 Jun 2022 08:44:49 -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="p/TJGuNx"; 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 S1344484AbiFIP06 (ORCPT + 99 others); Thu, 9 Jun 2022 11:26:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344481AbiFIP0s (ORCPT ); Thu, 9 Jun 2022 11:26:48 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E1054B86A for ; Thu, 9 Jun 2022 08:26:47 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id d13so4847197plh.13 for ; Thu, 09 Jun 2022 08:26:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=4yC6pfF/WN7V+oY8+r8MwzNzFD7ztYSYIkkb+eP7wsI=; b=p/TJGuNx5EF2KlHZGPa9pbacESJ0kmlCq42SQ6bV4PcONBrjWJQzF0r2aos67l8HEI 3xtdBxEMpMSH5Fr14Z3vkTTDZZ1AZy9oyAaCYAzV7jjLlhYUkmbT7Dlw5B5Q6SGhWcP/ I+AzRIQB3M5eTvTh1rUumYCdWyZJ/CwcJ2aNuOJTTpyKgsyxTvi2TbMurjH34DaTV+Hk 5t4HX+cojWI2nzpvyXFjr03wuZb7T5wcAITM7XN+VcTsn5Gl69bHIPee6drCSNxT7sjc PLCdh9rX3kHUXuZziuieWznZYgC+OIWfGCnIshZjQSNZGhGWzRJnyTH+BXV5ATYNqISW M2ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=4yC6pfF/WN7V+oY8+r8MwzNzFD7ztYSYIkkb+eP7wsI=; b=tiITqWYvnuIzPcDAC0lHbHleQ8sMJS3JlWvaEOBryFQpafF86bfXV8ZA5u27S8rj4T JxK1yGqGmlLLelgHbshyY1lQsUD2mJbGNhnXQqo6NYh4zg15fhY5vRH61dZ1nOsKJwGo HE55/VQBu++V6jXCGp6GgbBS1Y7/mrCwdz+TSyzybZKZv1C5P7GM5bzoNluGxpm4/SRJ gL0gEsDCiZ4mdi+VNo1yumjpbEUwUzHxiqbMJsCOU9Pz4xDtD4aFSR4MzqtE6OtgjezF jmacX12baL3LUDrPg4kp+WtfNSgkHfcrYwrXf1qX7+UgTihkGidj+8JSzmS5rUT4nyUb 3F6w== X-Gm-Message-State: AOAM532pepM34eSZaWE0Sw9MVWF9fgB1JokussAphJp3PmE6zAt/p6nU U3g6gQ/p5OWPtUprIKIX5D3TaQ== X-Received: by 2002:a17:90b:3148:b0:1e8:90ae:d1f6 with SMTP id ip8-20020a17090b314800b001e890aed1f6mr3955907pjb.84.1654788406344; Thu, 09 Jun 2022 08:26:46 -0700 (PDT) Received: from google.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id i9-20020a632209000000b003fdcf361df6sm8402348pgi.87.2022.06.09.08.26.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jun 2022 08:26:45 -0700 (PDT) Date: Thu, 9 Jun 2022 15:26:42 +0000 From: Sean Christopherson To: Andrew Jones Cc: Paolo Bonzini , kvm@vger.kernel.org, Vitaly Kuznetsov , David Matlack , Ben Gardon , Oliver Upton , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 048/144] KVM: selftests: Rename 'struct vcpu' to 'struct kvm_vcpu' Message-ID: References: <20220603004331.1523888-1-seanjc@google.com> <20220603004331.1523888-49-seanjc@google.com> <20220608151815.7mwlj3eppwmujaow@gator> <20220609072746.op7ez4rmdn2wmynj@gator> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220609072746.op7ez4rmdn2wmynj@gator> X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_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 On Thu, Jun 09, 2022, Andrew Jones wrote: > On Wed, Jun 08, 2022 at 04:01:38PM +0000, Sean Christopherson wrote: > > On Wed, Jun 08, 2022, Andrew Jones wrote: > > > If we do need prefixes for the kvm selftest framework code to avoid > > > collisions with test code, then maybe we should invent something else, rather > > > than use the somewhat ambiguous 'kvm', which could also collide with stuff in > > > the kvm uapi. > > > > Potential collisions with the KVM uAPI is a feature of sorts, e.g. tests shouldn't > > be redefining kvm_* structures (I'd prefer _tests_ not use kvm_* at all, and only > > use kvm_* in the library), and I gotta imagine KVM would break at least one real > > world userspace if it defined "kvm_vcpu". > > > > That said, I don't have a super strong preference for kvm_ versus something else, > > though I think it will be difficult to come up with something that's unique, > > intuitive, and doesn't look like a typo. > > > > Maybe just abbreviated "Kvm Selftests", i.e. 'ks_'? I won't harp on this > any longer though, so if that doesn't look good, then we can proceed with > 'kvm_'. ks_ was the best I could come up with too. But looking at it in code, I find it more distracting than helpful. It's kind of like the uncanny valley effect, where ks_ *just* close enough to kvm_ that it makes me think something is wrong. struct kvm_sregs sregs; struct kvm_regs regs; struct ks_vcpu *vcpu; struct kvm_run *run;