lkml.org 
[lkml]   [2021]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v4 12/18] KVM: selftests: Keep track of the number of vCPUs for a VM
    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 <rananta@google.com>
    > ---
    > 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

    \
     
     \ /
      Last update: 2021-09-09 07:22    [W:5.713 / U:0.064 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site