Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1164706rwn; Thu, 8 Sep 2022 14:41:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Or5wPXvi+KDHLghy4g+KdWip7IyTKtS+Z86YEGGnTddh08wQXq7+ln7Qg7obd2p8x77X4 X-Received: by 2002:a05:6512:2399:b0:494:7422:4904 with SMTP id c25-20020a056512239900b0049474224904mr3693057lfv.191.1662673309332; Thu, 08 Sep 2022 14:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662673309; cv=none; d=google.com; s=arc-20160816; b=gOOTeuoZx/UyyuwrwA4ps3eX/b7U/ycKN8HPfrbbGopvt0qg6qcclKkmagziRGV37R sTqPG+7+n59XpgqDYaKKgr79tEFcw596rck/cSkY3h5bG0x5wGaKKcrSs+B5CQjM8JwZ Dl7PRAwZN4HPygLXwp2v8dDil7HaPY2OVk7trui6Ho/2qXLSZCPY3MVgeHvHUtF6iYRW lHCgPLwQ7hXsXi+J5+77tDvf8U893mimQNSbRVE2sSnSjaHIpolgh4Od6z4m9/IbceSS LQZGAeCm9aFDnMOpgiOSfC+sQPn8FEy+g7drcAFPs/CIzwG3YOEuNG+0c+Vo7pLlFlkh L5vQ== 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=z9Li9pBnsY2aSk5qTBSDkIw7EfiA5n4FZeT5aJ2NLZQ=; b=Q0HZ4/+2eGMR/1PU9UdQYO9GtMmqjE8/br+oUuX2abFRE0jHwuGIoYwbJ5B7RV34B9 aPP5Usk6WnyVYmNsLO9XyqyId9U2+sDRpor4rnCMENOHcip5hLtZGnSMx/c0HTsek3RD FUJ1rPZzZ16z5xDJ2XCiUPZJVncgMIXAZa5jZH4LKg4OIex8glvLUypYC+AA+c+MMrQq iAd++dRcUsPaaAeVBkstHr1Mj6AkFBkUrpQ5S4BF4ZD1GBxerkIdnHD9KhxTM0UpH0ry eIJGRlGw+rkNaBaMjEXI5+g2rDEnG+qIM7PiBrRubVzEWLRWuUKUt4QIGioRgpuhsfCd hHIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Yf5FKr34; 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 f20-20020a2e9194000000b0026be2bca23asi192128ljg.379.2022.09.08.14.41.19; Thu, 08 Sep 2022 14:41: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=Yf5FKr34; 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 S229925AbiIHVJy (ORCPT + 99 others); Thu, 8 Sep 2022 17:09:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229929AbiIHVJt (ORCPT ); Thu, 8 Sep 2022 17:09:49 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 890AA2EF37 for ; Thu, 8 Sep 2022 14:09:47 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id b23so2607968pfp.9 for ; Thu, 08 Sep 2022 14:09:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=z9Li9pBnsY2aSk5qTBSDkIw7EfiA5n4FZeT5aJ2NLZQ=; b=Yf5FKr34c9ANVml5Kp0eU6Or+5frA2zi0P/zwS/LxG8XtXWhUC3H2f8LKX2mVjV0sw sYwk+JeS9w1FF/Xu0+k6pDz8Von1XWRpnkNnY0yryJsrVzZVZ0kJiwM/g227q8NjpPXg RjEFSkdNLq726ducobxVkgKvi3zcsAkjhmNO5WoZzGxsk0f7YXYeKnwlm1OuZ7rsWLbw E1BoGb8nng0n1brdOIT26K7+YERd8LCP1qv/HX2HOlc0ob1/Cq8nAzmQmOgiK5x4jLqL AhhWDsUiYAf/C9U2qAuHMsbUj5wHtOO2c3CVouW+Xbp2gzL/d41EXRwVhDfJcrV0uAaO oLPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=z9Li9pBnsY2aSk5qTBSDkIw7EfiA5n4FZeT5aJ2NLZQ=; b=hwCQVOvTYsYe+i4JCg0MEnKrcoVl446duwVbHaj/k1ws6BvyfTAyBapJcmNVy4C1Cb 6s1rOFJdYYz67XlLJh7pXvospNdHmMk4pbLfx1o7NyVW+d8/+DEkTGt4Cik+aGcUYLvp ZawiosJ5fHw3YJsoo74eN9T2CPSUponDgvv+OMiu5hKqUIjmh0VHSJQHNi/Pz9cXCmqe vSVxgrIyCmvRW34enFQAUCNszAwb3x5yTxWcY9CArVrbVlwiAf2Fc22yj7s2i+Lup+gt yP9VvIW2Og/B54dvwmWx5gLcSBJBeYk4oXDnvinDBfrWZOHCnhkrGBEadOZavoERlFip O4Gw== X-Gm-Message-State: ACgBeo1vJsVhW4diB9RIaXnKhalymysqbZiRpupK2EGJL3FS7JUghnLR 8HQJGVu62jXWvi4FYUnT/xxD3w== X-Received: by 2002:a63:f918:0:b0:438:766e:e57a with SMTP id h24-20020a63f918000000b00438766ee57amr1785235pgi.584.1662671386712; Thu, 08 Sep 2022 14:09:46 -0700 (PDT) Received: from google.com (223.103.125.34.bc.googleusercontent.com. [34.125.103.223]) by smtp.gmail.com with ESMTPSA id iw1-20020a170903044100b00172973d3cd9sm11365074plb.55.2022.09.08.14.09.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Sep 2022 14:09:45 -0700 (PDT) Date: Thu, 8 Sep 2022 14:09:41 -0700 From: David Matlack 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, drjones@redhat.com Subject: Re: [V1 PATCH 1/5] selftests: kvm: move common startup logic to kvm_util.c Message-ID: References: <20220903012849.938069-1-vannapurve@google.com> <20220903012849.938069-2-vannapurve@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220903012849.938069-2-vannapurve@google.com> 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=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 Sat, Sep 03, 2022 at 01:28:45AM +0000, Vishal Annapurve wrote: [...] > --- a/tools/testing/selftests/kvm/demand_paging_test.c > +++ b/tools/testing/selftests/kvm/demand_paging_test.c > @@ -393,7 +393,7 @@ static void help(char *name) > exit(0); > } > > -int main(int argc, char *argv[]) > +void __main(int argc, char *argv[]) > { > int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); > struct test_params p = { > @@ -447,18 +447,15 @@ int main(int argc, char *argv[]) > } > > for_each_guest_mode(run_test, &p); > - > - return 0; > } > > #else /* __NR_userfaultfd */ > > #warning "missing __NR_userfaultfd definition" > > -int main(void) > +void __main(int argc, char *argv[]) > { > print_skip("__NR_userfaultfd must be present for userfaultfd test"); > - return KSFT_SKIP; exit(KSFT_SKIP) to preserve the test behavior.