Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4150050ybb; Tue, 7 Apr 2020 01:35:10 -0700 (PDT) X-Google-Smtp-Source: APiQypL9O/DDz+rrH83/FNvbeEXKMRmfp26xakpPM8pa66MYzPxIF9ZoF43Y9pQnVsiPyawOOeM9 X-Received: by 2002:aca:5a56:: with SMTP id o83mr799997oib.134.1586248510137; Tue, 07 Apr 2020 01:35:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586248510; cv=none; d=google.com; s=arc-20160816; b=K2sdXtGB6WRIAssJWq5DLPcpKLgHzMqR0Fsbi9Cy5BRfoycq1539zDrGB0miip5bGj qy3iWCQfwUdGBU946Ztz+ovWiqWBCZ2qA6Pba4cUvtnLjNuotm/dtph0iwaZZWi2ROrY 7LDBxFw12ggyztK5XOLwhw4MMfmJiEyIU9/kbbj9dGrTYmPS5EakO6fIkTNXW/C5fBvO KmSQwxj7T6D1vsg44Igs7SYflKdpGorputs7wuotz0ZcVrAd616fxUK/dBudLoz0EZIu V15RPyqzX+h2kAbTaGaA3Lc+JXpjp1264dvMunU65SSrtT+ar4fP8+r/RYJOOzeMvxPD iMww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=tq+OpIRxnn+Zk8S9fkUt7kbbJEzkzq8nr2igicyRqKM=; b=Gemn5iWbKFzdFVYDwAfO6NB//m8M9PKFbR5zGNrmA6MbhVJsWURxfPe9b/kJp9Rd1I AIpOPhcdLUZDgZw+6BuoZeMMA0ZBigtjQIbogjbz9Uvdhjx6Artpxdz2tlEUXzmSnRcP JwtP8KIe8LrGP1J9Vd+Pui3+mqpnKzNtSND5ki1Eda0Ch7K2vic4nF7/KHA6EYEwGIZ3 SUz3P4vH777mplSIl/t3a5omFNs84qEKqf5cQvgRTx7q3g1/mlu0Dm9CHQiL2omJvP8o 9Q1noSVf2HuVTpjhCoGui6e8SCzEsD3G3FBaUgG6PMXEW1qbKxWJdd433r6YuZWR/Pb3 nzrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=i4ZrWVhx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t21si1018312oth.44.2020.04.07.01.34.57; Tue, 07 Apr 2020 01:35:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=i4ZrWVhx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727933AbgDGIdI (ORCPT + 99 others); Tue, 7 Apr 2020 04:33:08 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:27829 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725883AbgDGIdI (ORCPT ); Tue, 7 Apr 2020 04:33:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586248386; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tq+OpIRxnn+Zk8S9fkUt7kbbJEzkzq8nr2igicyRqKM=; b=i4ZrWVhxy7nsHVQUf/hVfUjMn+5ueqkvQKDOEHfriUpnHNjuYZC/EKjWnOGpEUiN/pGewF ScYgaSxqU47hcJlutboFB+C453yr4slu5dwdDN+JxHQM6Yd3PNyZGg4RVEwQp9avn3AKhd ocInM8yeGTuz9jDeNiylY4Ml7zmxFlE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-347-9m_XtjzwNRWLGIgdO_C1CA-1; Tue, 07 Apr 2020 04:33:02 -0400 X-MC-Unique: 9m_XtjzwNRWLGIgdO_C1CA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9638818FF663; Tue, 7 Apr 2020 08:33:01 +0000 (UTC) Received: from kamzik.brq.redhat.com (unknown [10.40.194.126]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C54BD60BE1; Tue, 7 Apr 2020 08:32:54 +0000 (UTC) Date: Tue, 7 Apr 2020 10:32:51 +0200 From: Andrew Jones To: Wainer dos Santos Moschetta Cc: pbonzini@redhat.com, kvm@vger.kernel.org, david@redhat.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v2 2/2] selftests: kvm: Add mem_slot_test test Message-ID: <20200407083251.3zgjscwhldcm5hce@kamzik.brq.redhat.com> References: <20200403172428.15574-1-wainersm@redhat.com> <20200403172428.15574-3-wainersm@redhat.com> <20200404073240.grcsylznemd3pmxz@kamzik.brq.redhat.com> <64a47faa-74f5-60ad-9b74-8c295072c719@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <64a47faa-74f5-60ad-9b74-8c295072c719@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 06, 2020 at 02:10:53PM -0300, Wainer dos Santos Moschetta wrote: > > On 4/4/20 4:32 AM, Andrew Jones wrote: > > On Fri, Apr 03, 2020 at 02:24:28PM -0300, Wainer dos Santos Moschetta wrote: > > > This patch introduces the mem_slot_test test which checks > > > an VM can have added memory slots up to the limit defined in > > > KVM_CAP_NR_MEMSLOTS. Then attempt to add one more slot to > > > verify it fails as expected. > > > > > > Signed-off-by: Wainer dos Santos Moschetta > > > --- > > > tools/testing/selftests/kvm/.gitignore | 1 + > > > tools/testing/selftests/kvm/Makefile | 3 + > > > tools/testing/selftests/kvm/mem_slot_test.c | 85 +++++++++++++++++++++ > > > 3 files changed, 89 insertions(+) > > > create mode 100644 tools/testing/selftests/kvm/mem_slot_test.c > > > > > > diff --git a/tools/testing/selftests/kvm/.gitignore b/tools/testing/selftests/kvm/.gitignore > > > index 16877c3daabf..232f24d6931a 100644 > > > --- a/tools/testing/selftests/kvm/.gitignore > > > +++ b/tools/testing/selftests/kvm/.gitignore > > > @@ -22,3 +22,4 @@ > > > /dirty_log_test > > > /kvm_create_max_vcpus > > > /steal_time > > > +/mem_slot_test > > > diff --git a/tools/testing/selftests/kvm/Makefile b/tools/testing/selftests/kvm/Makefile > > > index 712a2ddd2a27..69b44178f48b 100644 > > > --- a/tools/testing/selftests/kvm/Makefile > > > +++ b/tools/testing/selftests/kvm/Makefile > > > @@ -33,12 +33,14 @@ TEST_GEN_PROGS_x86_64 += demand_paging_test > > > TEST_GEN_PROGS_x86_64 += dirty_log_test > > > TEST_GEN_PROGS_x86_64 += kvm_create_max_vcpus > > > TEST_GEN_PROGS_x86_64 += steal_time > > > +TEST_GEN_PROGS_x86_64 += mem_slot_test > > > TEST_GEN_PROGS_aarch64 += clear_dirty_log_test > > > TEST_GEN_PROGS_aarch64 += demand_paging_test > > > TEST_GEN_PROGS_aarch64 += dirty_log_test > > > TEST_GEN_PROGS_aarch64 += kvm_create_max_vcpus > > > TEST_GEN_PROGS_aarch64 += steal_time > > > +TEST_GEN_PROGS_aarch64 += mem_slot_test > > kvm selftests has a bad case of OCD when it comes to lists of tests. In > > the .gitignore and the Makefile we keep our tests in alphabetical order. > > Maybe we should stop, because it's a bit annoying to maintain, but my > > personal OCD won't allow it to be on my watch. Please fix the above > > three lists. > > I will fix it on v3. > > Kind of related... has ever been discussed a naming convention for kvm > selftests? It would allow the use of regex on both .gitignore and > Makefile...and bye-bye those sorted lists. It's never been discussed that I know of. Feel free to send an RFC if you'd like to kick off the discussion :-) Thanks, drew