Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1210409rwn; Thu, 8 Sep 2022 15:33:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR7LRx+8tcgc2v49bRCmmY0P/45VF8v1NFBFDrGXlIVnLQnG+4mIF0XVCA1L2Yi7tmeIawur X-Received: by 2002:a05:6512:3da5:b0:497:6082:98fd with SMTP id k37-20020a0565123da500b00497608298fdmr3171378lfv.109.1662676389474; Thu, 08 Sep 2022 15:33:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662676389; cv=none; d=google.com; s=arc-20160816; b=pc2tW4GRWDBYJzQxrwvwvJ0UZcRYtjzSikzto5X0cJW5hfKAeTJpFVVyTqrY0EzVeU ObJYN8k9D4yMct4+7si8M1xT3Spj9seBVMXyX6Nsrm74JZrBrM70WJoMmfdjhrXsMe33 YM/+B7VGrdWcf6k252W/CiBvhHdOuny0vMPfS2Vap3Few5V9+eCOQS/ptDRitYYCOXFt 8j/9b+gXurU2zxiH5Ne7oUXSemI6JmLasdPFN1ftGm6fxU+Xj8KVIxZLHrTLmto1+3gY sbuUDCdRuSoNI8U1021ku5QBoVcubQ3w/vDrCU3QnbhmApS25hb8JNtPZWLdDoAwQuYh 7wJQ== 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=tNz6sUDLYT3e7yFiPMDST01YGryWrmTyyL5wc2tCzUU=; b=lT636AsMztrirpFufuCvN3pO2C0bZcDxx4WKrRcekChpFvyvrFq6dmV4PCMPQjy5wn XpbDDJuJAIUy5jziqorS/Up5VLeBVHtBjkbylCA7S74ZR0fL4yS0P63dUXtqtCG/2naR hnbtCs9pCr35xalKk1ByN3GSEdKySxviA24m95HHn5gab/H50koiVoab8quIvUsumUMu Xnh+PMQVZq5/Ex5zWGaNg4nHUZ2T2R8wQ7mb0f3jpQ6zMD1JekUmO7nHdF1SRqDS1xXL TB/Zyjll1Emg9xCklxTXO1bThWT09cLxxfRTGq87bFiRyNrTa+/OW3KnYVLNeK/ATplx meOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=QB56rA49; 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 e24-20020a196758000000b0048ab5d593dasi50551lfj.22.2022.09.08.15.32.38; Thu, 08 Sep 2022 15:33:09 -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=QB56rA49; 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 S229806AbiIHV1s (ORCPT + 99 others); Thu, 8 Sep 2022 17:27:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229909AbiIHV1q (ORCPT ); Thu, 8 Sep 2022 17:27:46 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30EAAA5998 for ; Thu, 8 Sep 2022 14:27:45 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id 9so15948626plj.11 for ; Thu, 08 Sep 2022 14:27:45 -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=tNz6sUDLYT3e7yFiPMDST01YGryWrmTyyL5wc2tCzUU=; b=QB56rA49XIYYaL+5n416TMQR7QkRyq6IFKkYOBPOFtLfRjvNWbmBfbSlh78sxydW2L h6N3MEe7L4GOxCW/I1NzmGXcj/9r4QjZ7GFv0KGR91ZVWB709QdDcF+NmmIVOjSEffkH JqRI/x8AM2OCx7pFnJhYBNJJum32YhFHknGlJpYI9SNEcUbkP6375EmQEZZfZz3/RXce y7fA536hPxWYWnWxvwInF+h9sclTQ1UjCus6E8h+th1CbQkw/TnKEGpmdbb507jIO8Bm BZLhq6jOGhjwwfrQAczJg/xJ6M5sso2sj5hd+kNSarh/6aH6wJkgCu9PCkhz3O8Mh/Bl ItgQ== 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=tNz6sUDLYT3e7yFiPMDST01YGryWrmTyyL5wc2tCzUU=; b=iepFACkYWzsRh2XxuDe3Y52APH6KL9z4m8ThKl4qkfE3jzG5BicMqL9sp9eelpTEnV N1KYgraXRZU3aS8iIJFpBBUzTdbhi9Kt89R8uWk7LYFjhsT573TTqUn5wyOmjHJh9/b1 GzQUeUSl4/h6RkcWVtO0gEs67D6JwNGcBXlfAcUQ+nDG4/4PCYhR6D5TFx81c4Dk1hdp L0qC1txaf+diM8gyaSTvOPqp/Bribw0QV49Ab32iIc/TqG667J0z8S0P+uU4eadrb4Gb MwrGJnZGQZH+/aKhic53zMPttB4r9wiDqUtVZiu+qfKQHS2UgQ2AwyqsfdpmWmOZOlzA Gjiw== X-Gm-Message-State: ACgBeo1Q7KqLUYPGLT2kyT5iS3w9a/7JyKAywvWs1Go1xcvpexyt/d7a 5mHhR0kHq6wA/SgPmEpI3ylK2g== X-Received: by 2002:a17:902:ce8b:b0:177:f1f0:8914 with SMTP id f11-20020a170902ce8b00b00177f1f08914mr5516364plg.137.1662672464552; Thu, 08 Sep 2022 14:27:44 -0700 (PDT) Received: from google.com (223.103.125.34.bc.googleusercontent.com. [34.125.103.223]) by smtp.gmail.com with ESMTPSA id f195-20020a6238cc000000b0053b850b17c8sm62707pfa.152.2022.09.08.14.27.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Sep 2022 14:27:43 -0700 (PDT) Date: Thu, 8 Sep 2022 14:27:38 -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 2/5] selftests: kvm: Introduce kvm_arch_main and helpers Message-ID: References: <20220903012849.938069-1-vannapurve@google.com> <20220903012849.938069-3-vannapurve@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220903012849.938069-3-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=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 Sat, Sep 03, 2022 at 01:28:46AM +0000, Vishal Annapurve wrote: > Introduce following APIs: > 1) kvm_arch_main : to be called at the startup of each test. > 2) kvm_arch_post_vm_load: called after guest elf image is loaded into > memory to populate any global state in guest memory. nit: Can you throw the post_vm_load in a separate commit? It's a logically distinct change. Also suggest naming it kvm_arch_post_vm_elf_load() to make it obvious it runs after kvm_vm_elf_load().