Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp8363895rwn; Wed, 14 Sep 2022 13:11:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM47wBWZFSQX/5OFHO425x0CV+PyQAzShyQgd9uJM+Uz9gePuyvvGYpmnYM8/MkGwQuU8p4U X-Received: by 2002:a17:902:8307:b0:172:e611:491f with SMTP id bd7-20020a170902830700b00172e611491fmr647380plb.111.1663186311737; Wed, 14 Sep 2022 13:11:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663186311; cv=none; d=google.com; s=arc-20160816; b=MIxfL+z/uPFKeQBJUxnadKdNs1tTC4BBUZeRtbZD9APaUJPA5gVInneOX3Re1xXaWk s2EJYewhrVQV/WcGxWvkQDAm6PNDEG7bBuqJbqcD5Vaa9axTh9xGRN9COOnh1PjUPO5j hrbd/bbVlRNHUTfnqs2vPcjtEfXjRwTJst1LLn8C7J9Lfej4SuYGxs5Oga6mo7J/OgnI J2ydKtT4t582tZ1dhhNsM0DlG/X4K+8SRR/AzQdcgrHoySVKaRW6G4aNhnlBtcp1e+Z3 zhjPrY3R07g6wDSOU+1eAK2zu+B6/dIbKrPtJi+uJvIPuBSQ+NNrpEAqNqeM/NE45QB/ a6zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=S9L54d9ejf1NmwAUJDCigQttDKda2K6sfA3rObHzMpg=; b=Ppus9fjygqZrckjWu00Zz0CJGa3yO0kEoMvEgwp6k43AcnDrOgoSorKLRB3nIaw9MG g/LzpZ+OPTB0BHwNFWfoYgImY5gdlTGaUl6Np8arVKIdGzPMBccr05ZLqN7DRRR1jjTF NVPz2TAZ19N053umP4MKdY0y+sY5hXors7JCcf8+nqw5wxtTdyR7rEE8XrRbcP0yfwx9 D90yJ6wIrSDVd5ZkK+z+HF+AahNnss3GH7Vs1yplyM63rgUGANdIy5ErD/P7G2slfsnd S24PZ0E2AH2TzyXL0BRepbCOc6B7XFFb335CiIAYm4Xzl+vHxIgnCKxc83C8ZpefywOY txBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=c4hDS2zV; 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 bj17-20020a056a02019100b0042bb607f75esi18014586pgb.284.2022.09.14.13.11.18; Wed, 14 Sep 2022 13:11:51 -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=c4hDS2zV; 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 S229657AbiINTNo (ORCPT + 99 others); Wed, 14 Sep 2022 15:13:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbiINTNm (ORCPT ); Wed, 14 Sep 2022 15:13:42 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1E3F82754 for ; Wed, 14 Sep 2022 12:13:40 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id v1so16090010plo.9 for ; Wed, 14 Sep 2022 12:13:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=S9L54d9ejf1NmwAUJDCigQttDKda2K6sfA3rObHzMpg=; b=c4hDS2zVBu9ei6ererX584QnTMU4ialGRb8hnZiD1e3jQuwv1JWFp9QHAvikvqEl39 ZAnOR07KIs+mSq/734pcyXR9Vl2gV7hqDv5drUjZdLJD890ni9m2kiL2bKZoNS56KEe8 QHmOU9EHw0fw0g7awK975CXDVvaP7ooYE5Gn1Hgb77HMtYvfZsEGUuYtnj1Wa1jZBNUt i4XHe6ReITMhxzY4tJnVT4WmbXiwVeoo9G655/n5tMa/1QuLotr0n9ZOcFL/9ed4k+8x Dc0kPWNsG/Xjozt/+GjLJnL1aeX+1PZTXrxD6MsQRu3s1Fyst7x5BqjiiD5EbcdtuGTy Q8aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=S9L54d9ejf1NmwAUJDCigQttDKda2K6sfA3rObHzMpg=; b=63kUhKsuc0mnRm7EggasVxJFl8jlmdZOLKpLBpi8mUJ37eKNiOfLlctWx1YTa7ov5E LFhp6h/yl0DwJFf1RBvPnPBvPRIS/yW81F3yFuE7Wl0ARLLbD26zf9i+29hnkG+Wg5BZ oYODuuaT6xKoQ8K/u5wPDe0WRWUFQjSzAkVkd7QMhOeENMWfhVWVm2vVmy3S0w16a2Qx DZtKag1qt6MFvuSgvyfrnrfNpdDU9bhocKkf/8EAuL1HHb/HQGNpz4oDMBV7ZT/mPxH6 M4HERQcffYCIw1ZjqvbU3jtdQwg+DOrse2kbW6n7bvGB2/B8MlNg27/i02BYgYcgF4Z8 37Kw== X-Gm-Message-State: ACrzQf3B9AbA9k6iAa/5IfjRjaGw+RPM+nVlLV1x/UN0UW3H6osxiOD2 gIKG2k2tAGqt241Tsi8qmQoWhs5yTkaukRodj5ET8w== X-Received: by 2002:a17:90b:38cc:b0:202:e0e8:e802 with SMTP id nn12-20020a17090b38cc00b00202e0e8e802mr6469336pjb.121.1663182820042; Wed, 14 Sep 2022 12:13:40 -0700 (PDT) MIME-Version: 1.0 References: <20220903012849.938069-1-vannapurve@google.com> <20220903012849.938069-3-vannapurve@google.com> <20220905074609.ga4tnpuxpcgppx4r@kamzik> <20220909070125.dtqfa6neq46fvns2@kamzik> In-Reply-To: <20220909070125.dtqfa6neq46fvns2@kamzik> From: Vishal Annapurve Date: Wed, 14 Sep 2022 12:13:29 -0700 Message-ID: Subject: Re: [V1 PATCH 2/5] selftests: kvm: Introduce kvm_arch_main and helpers To: Andrew Jones Cc: David Matlack , x86 , kvm list , LKML , linux-kselftest@vger.kernel.org, Paolo Bonzini , shuah , Ben Gardon , Sean Christopherson , Oliver Upton , peterx@redhat.com, Vitaly Kuznetsov Content-Type: text/plain; charset="UTF-8" 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 Fri, Sep 9, 2022 at 12:01 AM Andrew Jones wrote: ... > > > > void __attribute__ ((constructor)) kvm_selftest_init(void) > > { > > /* Tell stdout not to buffer its content. */ > > setbuf(stdout, NULL); > > > > kvm_selftest_arch_init(); > > } > > > > Per-arch: > > > > void kvm_selftest_arch_init(void) > > { > > /* arch-specific pre-main stuff */ > > } > > WFM and I think that's what Vishal was suggesting as well. > Yes, this matches with what I was suggesting. Planning to post this update in the next series. - Vishal > Thanks, > drew