Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp579207rwn; Thu, 15 Sep 2022 03:27:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR7N2x9Q/M0y7gzoujpkrtFxxvH7I2kLcO/2NlneCpLiUHJqBB1W3HtA8ko0p/aQVbEyY0bB X-Received: by 2002:a05:6402:3489:b0:451:a859:8a4f with SMTP id v9-20020a056402348900b00451a8598a4fmr17026133edc.279.1663237663448; Thu, 15 Sep 2022 03:27:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663237663; cv=none; d=google.com; s=arc-20160816; b=f4m52Mq8N102kKWCW3+yekuqAY5Qog5tjmjeZcnxij84qR9iM1zq0YnFxEaOEbd5F7 ScOS25C16yKvF/UovW4HNG+ndOmZKZotU2yYvTGr4IQhA94DN93LrM2OHuz15+L1BZy3 jmoSkPYvlsUMqDtueoTbef89xhm5/Nwo15JuIGQ/GpbuM37XLYHRyZxUWx6P8Rjpan1K dHkLsVVUHWc26Ut08rmr6uzDXPQC91/TDhrUgM8qiJn5/ztqxvQV/kw2oSjVGbV+1rbG zKqL/ySwhf0sGWFVLUd410qjvpibeAPhmYISiBKe8kqqAzlEXQKgfOyQGzzv4jri9R71 u4tw== 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:dkim-signature:date; bh=XlqEnKpZ9ugZmlMX1I7D2QnaJ+3qHNvf2M9fSgqrqNQ=; b=IZDKF2RtXWYojI4HJd/yBVDUDGBIhfokcfEi21qNhE51UEeK9U1GzjGnhJHmOnHMK5 d622KdiRnCicJnHltGopYOKerX0WFwC9fye/IG073xLoS1ZvSilmcSKciwNzxYtFTjmI QFkXY/1n6MTUV6g54rWrJ0iXCGujPGW5HdiOLXYgBrMsmxb6JbyYVCqij81QDanhsku8 H/hahHkLTmAqKA3Mt9j9XzGelnCREDZhoVZKUQn0WeLeImRsjkRwyWa1L9U3uz1/ziFb lI1jH13j3n6X7OLXUwZAuoIN2V/HI47De/vxMNNcDVQ5CMvCmuZkG/RcyvOoYSHpjAY4 xkUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=KJbrkTQx; 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=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa33-20020a17090786a100b0073d76d8af85si11484636ejc.231.2022.09.15.03.27.18; Thu, 15 Sep 2022 03:27:43 -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=@linux.dev header.s=key1 header.b=KJbrkTQx; 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=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229959AbiIOJpr (ORCPT + 99 others); Thu, 15 Sep 2022 05:45:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229999AbiIOJpZ (ORCPT ); Thu, 15 Sep 2022 05:45:25 -0400 Received: from out0.migadu.com (out0.migadu.com [IPv6:2001:41d0:2:267::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC25F98D34; Thu, 15 Sep 2022 02:45:18 -0700 (PDT) Date: Thu, 15 Sep 2022 11:45:16 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1663235117; 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=XlqEnKpZ9ugZmlMX1I7D2QnaJ+3qHNvf2M9fSgqrqNQ=; b=KJbrkTQxEYc31EkZdgKAe9XBfiJzrf7+Q2Y/GvUZhwOw//VMY4cqLoiLXIDlAITwdv2S2W 4LkpqeYfs6X6ccFY1dRFzDq6Ew3SbzdlZlxaKxBE6+loWDMEdTD6m8OtMyeKzhjsXVLXPB TrKxzmOasxTAkx5b/bAPqazWdtWHJzE= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Andrew Jones To: Vishal Annapurve Cc: x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, pbonzini@redhat.com, shuah@kernel.org, bgardon@google.com, seanjc@google.com, oupton@google.com, peterx@redhat.com, vkuznets@redhat.com, dmatlack@google.com Subject: Re: [V2 PATCH 1/8] KVM: selftests: move common startup logic to kvm_util.c Message-ID: <20220915094516.cvyslkqz644hpg7a@kamzik> References: <20220915000448.1674802-1-vannapurve@google.com> <20220915000448.1674802-2-vannapurve@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220915000448.1674802-2-vannapurve@google.com> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS 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 Thu, Sep 15, 2022 at 12:04:41AM +0000, Vishal Annapurve wrote: > Consolidate common startup logic in one place by implementing a single > setup function with __attribute((constructor)) for all selftests within > kvm_util.c. > > This allows moving logic like: > /* Tell stdout not to buffer its content */ > setbuf(stdout, NULL); > to a single file for all selftests. > > This will also allow any required setup at entry in future to be done in > common main function. > > More context is discussed at: > https://lore.kernel.org/lkml/Ywa9T+jKUpaHLu%2Fl@google.com/ > > Suggested-by: Sean Christopherson > Signed-off-by: Vishal Annapurve > --- Reviewed-by: Andrew Jones