Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp2074010ybm; Thu, 23 May 2019 10:58:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwR1OXNL2+ljBdThD3svsFMsTN/lxGtnLxFqLohH82Vt2YgDhkSo45KWOWSIshH5lqdGmeH X-Received: by 2002:aa7:842f:: with SMTP id q15mr106904498pfn.161.1558634339564; Thu, 23 May 2019 10:58:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558634339; cv=none; d=google.com; s=arc-20160816; b=grp5ZH8hZSoiiPHWvVHhrIN2H90OevQlcyeSh+Xl98waK7kNmvk85nZQm9f6k86M42 dzyOY3rwrkabI5zYy4Wvwfkz6bi4s0QiELR7IdbMVhAH1mPFHfwySfA+cpJrYhqIiIBS 5xHjNccfLCmI49aoH51TyIXIRWncHGv1JslWhyhA1YXFPNq5IpBvGmQyygVwgsw0y2Gz FE/IFA5UwIj1XYf+EyGOkl1E5sN1uBBtKDLCjBWdBMKAMJMpoiCYAljnEqOloYa3voHn WkHhO1CEemlUliDlGlQY+zfZELaWpiwOuTFgK/pP8n9URo3ucSpLP1g+4oddjwn2et5C of9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=EZiCCr3MxzzgspNz3aGJDDKi55e6Ijl7REFQddC2gpI=; b=HIvZJD/lDaiyDJQsq5SgXCd7yjQ5udBmNfHj+HPM/o26xWxv3KxIqno6nbJQ6uqwrg MttU04nDwUlBuhoB0K7+AUovB6ir3xUlKl07ELuONEVtq4cReaFX4zmCpC/OnsR8tGx3 Oawd2Uzw2+f9iMKGaDZVH7mANz5eR7iXesSTH9Q1cgRuVNP3soyGqOtxMGNsuS5Z3CO7 bO/sfBu0kD9ddp0WjmpiAbtoJr/rgRQnI2NZnpXECx4nlqyUp74j5929zwPnhRyWjoEO 3JgmRdOC//tTPlFw2flBTruExX4KhPhWPu0brpsMoypp1A04aYXmPruIVEB50uI8XLJH VuLg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 g11si222333plt.35.2019.05.23.10.58.44; Thu, 23 May 2019 10:58:59 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387395AbfEWR4q (ORCPT + 99 others); Thu, 23 May 2019 13:56:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36352 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731116AbfEWR4p (ORCPT ); Thu, 23 May 2019 13:56:45 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9C9F3307CDF2; Thu, 23 May 2019 17:56:45 +0000 (UTC) Received: from kamzik.brq.redhat.com (unknown [10.43.2.160]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0ED9968386; Thu, 23 May 2019 17:56:40 +0000 (UTC) Date: Thu, 23 May 2019 19:56:38 +0200 From: Andrew Jones To: Thomas Huth Cc: Christian Borntraeger , Janosch Frank , kvm@vger.kernel.org, Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , Shuah Khan , David Hildenbrand , Cornelia Huck , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-s390@vger.kernel.org Subject: Re: [PATCH 9/9] KVM: selftests: Move kvm_create_max_vcpus test to generic code Message-ID: <20190523175638.5sc5zjbgsqe4bkes@kamzik.brq.redhat.com> References: <20190523164309.13345-1-thuth@redhat.com> <20190523164309.13345-10-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190523164309.13345-10-thuth@redhat.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Thu, 23 May 2019 17:56:45 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 23, 2019 at 06:43:09PM +0200, Thomas Huth wrote: > There is nothing x86-specific in the test apart from the VM_MODE_P52V48_4K > which we can now replace with VM_MODE_DEFAULT. Thus let's move the file to > the main folder and enable it for aarch64 and s390x, too. > > Signed-off-by: Thomas Huth > --- > tools/testing/selftests/kvm/Makefile | 4 +++- > .../testing/selftests/kvm/{x86_64 => }/kvm_create_max_vcpus.c | 3 ++- > 2 files changed, 5 insertions(+), 2 deletions(-) > rename tools/testing/selftests/kvm/{x86_64 => }/kvm_create_max_vcpus.c (93%) > > diff --git a/tools/testing/selftests/kvm/Makefile b/tools/testing/selftests/kvm/Makefile > index d8beb990c8f4..aef5bd1166cf 100644 > --- a/tools/testing/selftests/kvm/Makefile > +++ b/tools/testing/selftests/kvm/Makefile > @@ -21,15 +21,17 @@ TEST_GEN_PROGS_x86_64 += x86_64/evmcs_test > TEST_GEN_PROGS_x86_64 += x86_64/hyperv_cpuid > TEST_GEN_PROGS_x86_64 += x86_64/vmx_close_while_nested_test > TEST_GEN_PROGS_x86_64 += x86_64/smm_test > -TEST_GEN_PROGS_x86_64 += x86_64/kvm_create_max_vcpus > TEST_GEN_PROGS_x86_64 += x86_64/vmx_set_nested_state_test > +TEST_GEN_PROGS_x86_64 += kvm_create_max_vcpus > TEST_GEN_PROGS_x86_64 += dirty_log_test > TEST_GEN_PROGS_x86_64 += clear_dirty_log_test > > TEST_GEN_PROGS_aarch64 += dirty_log_test > TEST_GEN_PROGS_aarch64 += clear_dirty_log_test > +TEST_GEN_PROGS_aarch64 += kvm_create_max_vcpus > > TEST_GEN_PROGS_s390x += s390x/sync_regs_test > +TEST_GEN_PROGS_s390x += kvm_create_max_vcpus > > TEST_GEN_PROGS += $(TEST_GEN_PROGS_$(UNAME_M)) > LIBKVM += $(LIBKVM_$(UNAME_M)) > diff --git a/tools/testing/selftests/kvm/x86_64/kvm_create_max_vcpus.c b/tools/testing/selftests/kvm/kvm_create_max_vcpus.c > similarity index 93% > rename from tools/testing/selftests/kvm/x86_64/kvm_create_max_vcpus.c > rename to tools/testing/selftests/kvm/kvm_create_max_vcpus.c > index 50e92996f918..db78ce07c416 100644 > --- a/tools/testing/selftests/kvm/x86_64/kvm_create_max_vcpus.c > +++ b/tools/testing/selftests/kvm/kvm_create_max_vcpus.c > @@ -1,3 +1,4 @@ > +// SPDX-License-Identifier: GPL-2.0-only > /* > * kvm_create_max_vcpus > * > @@ -28,7 +29,7 @@ void test_vcpu_creation(int first_vcpu_id, int num_vcpus) > printf("Testing creating %d vCPUs, with IDs %d...%d.\n", > num_vcpus, first_vcpu_id, first_vcpu_id + num_vcpus - 1); > > - vm = vm_create(VM_MODE_P52V48_4K, DEFAULT_GUEST_PHY_PAGES, O_RDWR); > + vm = vm_create(VM_MODE_DEFAULT, DEFAULT_GUEST_PHY_PAGES, O_RDWR); > > for (i = 0; i < num_vcpus; i++) { > int vcpu_id = first_vcpu_id + i; > -- > 2.21.0 > Reviewed-by: Andrew Jones