Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp755265pxp; Wed, 16 Mar 2022 16:20:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTGSPPPabOJzSemZRget4dnTawHGWK7Ckdlf/4hc6ItWdA3NIDwhusIAw8OeXXmsMch48U X-Received: by 2002:a05:6a00:b86:b0:4f7:8a93:e84a with SMTP id g6-20020a056a000b8600b004f78a93e84amr2177362pfj.74.1647472836076; Wed, 16 Mar 2022 16:20:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647472836; cv=none; d=google.com; s=arc-20160816; b=Iupetu6Oq1GH6e/mV5Buo0TL02fNDyenwK3UVAUk8E4tOhLf/b5jm9MCAFDRUglZA7 44nnVbnQteTU52EzgVJ+CYlAokQuKj33KUly7SVSVpXD46RhT23CWzlSWpHlWlKTyi6s I8LjXNSD52M2s1qLjnC9hbdUgpYe9y2w1NwRxIokyVF+s7iC2h0Dgnns8pX4Pfpb277r F5b8IXcvpEif/2EiEeH37ptQtfzb5xD5g6dgfR5KruuHXmMFKuRrZ1f4IdO0NeWValcq KpLBNrrJ360I8KAV/m1n455RAVXxZR7fb1eGOTG3oJx7zu4pkMfMmn3oBZTO9x/K9cpY 0+Ow== 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=vBxdygrDGnIdQovqZjnOBUiE0fFV5TKmJtEmU95vBEM=; b=BhOytCX1FcGtwygNG69J7jKscu2LbTVd/l88Q9XCZrKPt83VvHdy5k3a5T8Jlt/JCx 5hpwYIxxod1gtL4BQU+Fuaqyr5n1CrIJuaFA9nLhXdKaw9WLObGAUFShoXxcD2knWqiQ UCHnpm54EQs3xF/ttWrNbAoCZPs3oHlZDhE8RATIEBYlLxUXLsm1Tpdsc02gfIO7xlq6 aKeKg+E0iXvOr0vh6wQRknQHxZpgPbfL32rYEnVDf7FaUIrB960PRFvCeytZ2dfDu0Dx Msvl7PeSFcdIFhh7pNzG2YacoFk3MmB+gbHIzdtYpUTwjmv4A3bpwFOPmjZAyW72JDNl BH/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UaDEf5iX; 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 u4-20020a170902e80400b00153cc6efaf4si2001905plg.514.2022.03.16.16.20.21; Wed, 16 Mar 2022 16:20:36 -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=UaDEf5iX; 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 S1345756AbiCOIJg (ORCPT + 99 others); Tue, 15 Mar 2022 04:09:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238106AbiCOIJe (ORCPT ); Tue, 15 Mar 2022 04:09:34 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A64971261D for ; Tue, 15 Mar 2022 01:08:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1647331699; 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: in-reply-to:in-reply-to:references:references; bh=vBxdygrDGnIdQovqZjnOBUiE0fFV5TKmJtEmU95vBEM=; b=UaDEf5iXYXl2xgIyf2JFZVzihSrcOyXxLViKJctWbox8rw/kB2cjRDq6qpK+msVOeodC10 c1afdy+JDq7uv2BBMleLzKvu2Ay1pc3B/TAuFjh7KXJitnWcAGmLGX/nLMIIsaTuEIENUD SAX1GDe0Cf3zw0HaK+QOmiwpi/Qqvfw= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-630-6b817DeGPQyyAwWY5mDNkg-1; Tue, 15 Mar 2022 04:08:18 -0400 X-MC-Unique: 6b817DeGPQyyAwWY5mDNkg-1 Received: by mail-wr1-f69.google.com with SMTP id p9-20020adf9589000000b001e333885ac1so5014461wrp.10 for ; Tue, 15 Mar 2022 01:08:18 -0700 (PDT) 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=vBxdygrDGnIdQovqZjnOBUiE0fFV5TKmJtEmU95vBEM=; b=7gR5RGYF0AGfFXvNOMxik3iMFYUCObR/MivrwFdK1FAc+5aLSA/jCjzQqYLS7mGnBo z8Qp2iEe9nsmnzpJFvaK38VYZbfo3sYZsOSOtEyxwEhU3/gW8NBRwXpLLO+OZBsStKTc QD1W4A2VKT5NO4NkX4QnY7Txx+RSoQOqyaUNh8tu7A/gp0ioXjd8f+mLMM0AuIeerhQb lR+VUPQwQvxbgcb2J54lysabz0t+VAm/2zeVzH7V5HsiE8jnrQF+06xYPQKVPKOzdusi tCMgg6yNAizCLx5YHJei7XXwgbhEX9cPFVQdz2kheZhINZI01SvNpMY7Sb7rJiVQzFjg x50Q== X-Gm-Message-State: AOAM531kG/Ze2HtV+oU5FhMa7LLMpRHbIGGN8WruCGwvQ/nyvaiem24c Ru663mlnbOYvyqW6UvUOH3pd9PgnpS8YN+6fLasafdgbkYgMJM5CvdhTl3IITfb0emgI0iUBhgT j9Hf2zV78I+ToZ40D17x75FXY X-Received: by 2002:adf:dc86:0:b0:1f0:250a:265 with SMTP id r6-20020adfdc86000000b001f0250a0265mr19331376wrj.85.1647331697396; Tue, 15 Mar 2022 01:08:17 -0700 (PDT) X-Received: by 2002:adf:dc86:0:b0:1f0:250a:265 with SMTP id r6-20020adfdc86000000b001f0250a0265mr19331361wrj.85.1647331697232; Tue, 15 Mar 2022 01:08:17 -0700 (PDT) Received: from gator (cst2-173-70.cust.vodafone.cz. [31.30.173.70]) by smtp.gmail.com with ESMTPSA id f7-20020a0560001a8700b00203c23e55e0sm3467969wry.78.2022.03.15.01.08.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Mar 2022 01:08:16 -0700 (PDT) Date: Tue, 15 Mar 2022 09:08:14 +0100 From: Andrew Jones To: Oliver Upton Cc: Sean Christopherson , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Thomas Huth , Janosch Frank , Claudio Imbrenda , David Hildenbrand , David Matlack , Ben Gardon Subject: Re: [RFC PATCH 000/105] KVM: selftests: Overhaul APIs, purge VCPU_ID Message-ID: <20220315080814.sqfhamts5tekhxlj@gator> References: <20220311055056.57265-1-seanjc@google.com> <20220314110653.a46vy5hqegt75wpb@gator> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,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 Mon, Mar 14, 2022 at 05:56:53PM +0000, Oliver Upton wrote: > > I think it may make more sense to only define optional functions as > weak and let the compiler do the screaming for the required ones. Only > discovering that functions are missing at runtime could be annoying if > you're cross-compiling and running on a separate host with a different > architecture. > Ah, indeed, no reason to push the lack of required arch functions to runtime detection, compile time is much better. And, in those cases, the _arch_ naming will also provide a nice hint that one must implement it in arch specific code. Thanks, drew