Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp263678pxb; Wed, 8 Sep 2021 23:52:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDpMzDINoVnxwgdUULHY6gPVM71I4rzH1dnE94Pw/rTVjPr5K7kfMzLgan2WUPrr+0vGet X-Received: by 2002:a5d:9409:: with SMTP id v9mr1380537ion.170.1631170347495; Wed, 08 Sep 2021 23:52:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631170347; cv=none; d=google.com; s=arc-20160816; b=p1xHqFbQ14NVlkf2RiEh9V9NO0dsWSu5r9nSuzvXTQuHkSibfMGaYdyU0kKgddUOL8 4G89yRGUATevoXyGg01Pmd8/FWklp+DbM1j0oO9jdeS80P3OONXwJXyVavswOC91M13l LqJH/hHDSdeOk142o09SbDrtkS9SaFO9jAqzoNuo3tCY03nKfsvV9I5RrNfUWHcRFEcE j8voPck0jA3wByhswB9K55M5lNgoKPb63ZqvE2rEREyhuErwm+9SC9rVx1AZh0p5WMAQ O2fkRCOR280Vx7+hCtbhAACu4UxFEHiRqfKj7/woBHYmlkhWUARswbgytaTB65adILLi 1PdA== 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=7Ja+MA4OCzFYM/Hx8ySIku22LElZavZCzLsENm+S9Mc=; b=G0bsmnMntrIqu9pCCXthqw9Tay15ntKt+s1uAF2u+cRQWKxChWREVkWMeXoyOufYha 43kP9BrNX06g+Aqob+orLrj0X7QY6cXgRW+IV/094QD9aupItCt2BbB9uBsDEXadVHOb Nx9HlmIYphlv52AfD/8WNI7ovjvITbpBt1zuw1V36b0ckNYY5g7G6i5L/S/Tsj0tBaVB 7HrpQRkOcvC9uRYMdiptj/YvENH7onjRlBnzlm2PwSYpeK7f/vtCeMO3oYyvCBeCeMyY TnwUK8a/1Z/CCLxmcCbnWlHqHxQxxobDBox3DDPcVo+p/D4he4ISg12h8VxzQz7CDoow rVUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=sSrKzdgb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o1si924413ill.7.2021.09.08.23.52.13; Wed, 08 Sep 2021 23:52:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=sSrKzdgb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1350672AbhIIFXc (ORCPT + 99 others); Thu, 9 Sep 2021 01:23:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350499AbhIIFXb (ORCPT ); Thu, 9 Sep 2021 01:23:31 -0400 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EA79C061757 for ; Wed, 8 Sep 2021 22:22:22 -0700 (PDT) Received: by mail-io1-xd2f.google.com with SMTP id m11so769129ioo.6 for ; Wed, 08 Sep 2021 22:22:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=7Ja+MA4OCzFYM/Hx8ySIku22LElZavZCzLsENm+S9Mc=; b=sSrKzdgbodHekgxN4FeKFtpd8Y4Csq7gzvDRQimT+tWyjS2LXY7/BuapliIukRhqkG Io+6kUubaiVrscaC82Af6p1nUdBkfSX4eUr2v4loWlgQDqFuH6d0WF3s+mSjHOFgKkll JnavnAYo7F0qxztVd/Pzz09WfH16Zrc+8IKrvs8libeSHlhU2XeB3Lje4p3qSeX2Rfce W1VW0vcIdi9Bw1ZuM4oJI+DPDjWoMOOG7xQ16u49oNtnrcc0HV2eINlwGZGBlLOohXK/ Qo9en2g0liePMOSs+oEZeOm1FMQayg0KLs4qpa7kwSuOIXjJuDBgMRl0W1CUQ+d7Psp6 A1Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=7Ja+MA4OCzFYM/Hx8ySIku22LElZavZCzLsENm+S9Mc=; b=FJqpAR7nKA8/kbfbGqI1tC9lXmSLA1dNvQq1/PSEYbekAFwh6viI8I7I7JMr+YNq4L Op74XGu/Q36OslpijVpxGzifGj4qMnPdK6+wWnEF+eiqD8uHEBRhedR+hRr+SoVA0On5 pSj/8f44+EYnKT0aRYYIKWiuJZOtmUs53Kj79gVQEbcAKk/OuVEXvMnQBkTRLRxbp7O7 QMvSDxtyKJIt3VAqWps56hauKFC2Q3wKCm4HkfjbCM0egY/1rJVxLH7e1FcxMayV6ZCx iMVALJQYreMCP58LmDciD+qK+IigSjzuupKdpFy5QYZkbG6V5gfOinitU0unr5wgVTQ1 g9nw== X-Gm-Message-State: AOAM533NdE0miUtAtCguW3jM/W1X5sd0O8pjI8FIDcf10IGShW12O4y7 /JHNs23Ld+1fxVjqT4t1C7lU5t2xatUjgQ== X-Received: by 2002:a02:cc30:: with SMTP id o16mr1211625jap.101.1631164941450; Wed, 08 Sep 2021 22:22:21 -0700 (PDT) Received: from google.com (194.225.68.34.bc.googleusercontent.com. [34.68.225.194]) by smtp.gmail.com with ESMTPSA id t10sm408390iol.34.2021.09.08.22.22.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Sep 2021 22:22:20 -0700 (PDT) Date: Thu, 9 Sep 2021 05:22:17 +0000 From: Oliver Upton To: Raghavendra Rao Ananta Cc: Paolo Bonzini , Marc Zyngier , Andrew Jones , James Morse , Alexandru Elisei , Suzuki K Poulose , Catalin Marinas , Will Deacon , Peter Shier , Ricardo Koller , Reiji Watanabe , Jing Zhang , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH v4 12/18] KVM: selftests: Keep track of the number of vCPUs for a VM Message-ID: References: <20210909013818.1191270-1-rananta@google.com> <20210909013818.1191270-13-rananta@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210909013818.1191270-13-rananta@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 09, 2021 at 01:38:12AM +0000, Raghavendra Rao Ananta wrote: > The host may want to know the number of vCPUs that were > created for a particular VM (used in upcoming patches). > Hence, include nr_vcpus as a part of 'struct kvm_vm' to > keep track of vCPUs as and when they are added or > deleted, and return to the caller via vm_get_nr_vcpus(). > > Signed-off-by: Raghavendra Rao Ananta > --- > tools/testing/selftests/kvm/include/kvm_util.h | 1 + > tools/testing/selftests/kvm/lib/kvm_util.c | 7 +++++++ > tools/testing/selftests/kvm/lib/kvm_util_internal.h | 1 + > 3 files changed, 9 insertions(+) Shouldn't a test keep track/know how many vCPUs it has created? -- Thanks, Oliver