Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15370C4332F for ; Mon, 10 Jan 2022 23:07:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345632AbiAJXH0 (ORCPT ); Mon, 10 Jan 2022 18:07:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242456AbiAJXHZ (ORCPT ); Mon, 10 Jan 2022 18:07:25 -0500 Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B66BC06173F for ; Mon, 10 Jan 2022 15:07:25 -0800 (PST) Received: by mail-yb1-xb2f.google.com with SMTP id m6so32032266ybc.9 for ; Mon, 10 Jan 2022 15:07:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WXezCkJjRPkDROjmNSEXw8KrMNSVatQHflVa4NcIBZ4=; b=lT7ThlTt++QvhmmkculwEqKL3uXY7KHRlY1gZM6+NQiGlRD9ipXMMx4+mWy7E0i6H2 YFeTMNWGyf/XiOMdm8cZbbHWziX6fKd2IX5qBjQCbpvC07ja4ugEzBJKzn05hpgC1SRR AekdfWmGnZEjHKsImuXfvSQZ+rOmhk9vwUrAEUMpqVXfV6b9OOJ/ps8P9VpNpvoHUrbT BzHh3EIH2sdChxnhiwiBSPlCNDGMnSqOv2qNVaeHVb7nIwPjGi/tvwQnkAh8FxtL726/ Y35AUh+AK0fQZVMkhY7LAhlUFPIqR4ls8dFOHnDz2cos6MHdV42xAgbIurK7je8UGI33 1ONA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WXezCkJjRPkDROjmNSEXw8KrMNSVatQHflVa4NcIBZ4=; b=1F6eaCTe4/aBi2lIlildp1YqxipivpWSZdEyeMaAElMriXKOnTS0RTwYBZaOildkv/ rSpAeJDsA/Nd7BXNCtVdrcVCDxOucMtksAoUP6OEQ3xZ9edBAAIVQPJ33COh/S7E8Tkh 8Bu8roUHXGa6U/eALqRh/RB89BPN2rLudHAzdT+qA3SPtrU91GQNbr3FIO1jBgVk+rdc w4Q8fSal5w4MNS7FIluNDG56giKqz3g82qo/uLsxW6xI6yFfXEO+uRnhEV0NU+t8YmT7 I0T8N2Vs8mmXrvibYLQXoLBtVPSa1/lie5Tf7LW6cH+uLWy79lbh+Appw3vkhMF8L7I5 RWXQ== X-Gm-Message-State: AOAM531x3rA1bjI4p0ppmWh6U0GBCZ56/NPComZTLFQ7eaoyC+08uiXP sjwGzp55VjLXOMY+gcjOBNU2DrhMjF0sff67yXyZBMvvYiA= X-Google-Smtp-Source: ABdhPJzBJzORsUZLGXrxCBMovCLT/oathXNs3w20UB7mc6qHjBQPdClWy2y/DJ7ReGsZVPvGVSjnvALfMbExKTvbbuk= X-Received: by 2002:a25:b9d2:: with SMTP id y18mr1128156ybj.615.1641856044191; Mon, 10 Jan 2022 15:07:24 -0800 (PST) MIME-Version: 1.0 References: <20220104194918.373612-1-rananta@google.com> <20220104194918.373612-2-rananta@google.com> In-Reply-To: From: Raghavendra Rao Ananta Date: Mon, 10 Jan 2022 15:07:13 -0800 Message-ID: Subject: Re: [RFC PATCH v3 01/11] KVM: Capture VM start To: Jim Mattson Cc: Reiji Watanabe , Marc Zyngier , Andrew Jones , James Morse , Alexandru Elisei , Suzuki K Poulose , Paolo Bonzini , Catalin Marinas , Will Deacon , Peter Shier , Ricardo Koller , Oliver Upton , Jing Zhang , Linux ARM , kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 7, 2022 at 4:05 PM Jim Mattson wrote: > > On Fri, Jan 7, 2022 at 3:43 PM Raghavendra Rao Ananta > wrote: > > > > Hi Reiji, > > > > On Thu, Jan 6, 2022 at 10:07 PM Reiji Watanabe wrote: > > > > > > Hi Raghu, > > > > > > On Tue, Jan 4, 2022 at 11:49 AM Raghavendra Rao Ananta > > > wrote: > > > > > > > > Capture the start of the KVM VM, which is basically the > > > > start of any vCPU run. This state of the VM is helpful > > > > in the upcoming patches to prevent user-space from > > > > configuring certain VM features after the VM has started > > > > running. > > What about live migration, where the VM has already technically been > started before the first call to KVM_RUN? My understanding is that a new 'struct kvm' is created on the target machine and this flag should be reset, which would allow the VMM to restore the firmware registers. However, we would be running KVM_RUN for the first time on the target machine, thus setting the flag. So, you are right; It's more of a resume operation from the guest's point of view. I guess the name of the variable is what's confusing here. Thanks, Raghavendra