Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1761453ybb; Thu, 2 Apr 2020 06:57:16 -0700 (PDT) X-Google-Smtp-Source: APiQypKXON1hk5L/M81AgznrSDmZpRcHdtOE3+XONDSV2kS2uzqeqayC4nlQOUtzv4GXv+NsgJAr X-Received: by 2002:aca:a895:: with SMTP id r143mr2244132oie.150.1585835835919; Thu, 02 Apr 2020 06:57:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585835835; cv=none; d=google.com; s=arc-20160816; b=PYtwbX5p5567f/6JQ45thlWJM8CLpmmr7jN/Ja2ZvwLT6fBW1bSz+2Q9a8o2jSld9q 02EqpwRk4QtUc4YVjA8VtyIi+mY4/6dfs24re0EsY3qkyC1/kg1tDZKEq5fWplcdVE+G PDMDgPGCRRmnHiSxe4lT2N7LBBlQEcTEWKw/H4FZhI1TV7suY3gwi46TL5cqNvJmj4hi PmjSwDtLC2qMZdkOyKeCjydtTi01B3MC+UcAwpdpt9n0X3kNkb0UxhhT5tYyP1ib4u0q vl1liNIi2A7eoxbHP4FuTBIMkf8its5OePDeiu2k15bmPZDPDDbM/QL413/r4pwbDDW5 B44Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=LynRBm0QdjHVu82HMM2DCC2CaC+mcsg4vB8dlsKoP9A=; b=uuwaKpJi0B9eLDooGzFOcKbulxBTQX1bonWO91UE1tIqMY0NQfVDdnTDpYzpZDOpO9 7Rju4kM1jLbp4NaNzyEx12U9mDAn3WQjUw84liEUIES2ZI2L4rPOiv9NgTHWJ9SwijVG VHL2Ct4Xt99NrDZYgGvhRv3dq6fP6P2uuZ8ihj+8D3EIMONVbfjcgxcaslMt8Ci24UPX hf7L23tZYsdsbVFmpWJj88fHgJsi/Fwe2jX4dk2+hiqb+HkuqbflDOST4kEqKcF8toxQ DjVAnOrGabsRojIvV7cKA6Qe/DXqgDniG+3MRoBzoekexLrU/aCF1hffgkpfEeoVWlWm 2M8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EYmJPkWR; 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 j6si2348217otq.296.2020.04.02.06.57.03; Thu, 02 Apr 2020 06:57:15 -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=EYmJPkWR; 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 S1732625AbgDBN4a (ORCPT + 99 others); Thu, 2 Apr 2020 09:56:30 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:57833 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727412AbgDBN4a (ORCPT ); Thu, 2 Apr 2020 09:56:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585835789; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LynRBm0QdjHVu82HMM2DCC2CaC+mcsg4vB8dlsKoP9A=; b=EYmJPkWRoCqVN3SdAcVr5xawEpQyvYCxy+w9U4NjpWK6jTE+sf6TlzX0mXCH4HloIOjnXe 3ahyB2wovLj7YwtA1SKGIRThmBA0uxO8pAm5hhaCQHjOeJgiCOSDelILuxDvoVM+3apNCu JcKXGioxIhD+WuQ+qCnOn4w3Swhr4wU= 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-461-RDG4fjfhMsyhNBw_9UBvww-1; Thu, 02 Apr 2020 09:56:27 -0400 X-MC-Unique: RDG4fjfhMsyhNBw_9UBvww-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8DA9E18A6EC1; Thu, 2 Apr 2020 13:56:26 +0000 (UTC) Received: from localhost.localdomain (ovpn-116-15.gru2.redhat.com [10.97.116.15]) by smtp.corp.redhat.com (Postfix) with ESMTP id D5A151001938; Thu, 2 Apr 2020 13:56:20 +0000 (UTC) Subject: Re: [PATCH 2/2] selftests: kvm: Add mem_slot_test test To: Andrew Jones Cc: kvm@vger.kernel.org, pbonzini@redhat.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, david@redhat.com References: <20200330204310.21736-1-wainersm@redhat.com> <20200330204310.21736-3-wainersm@redhat.com> <20200402090029.pc6w6iqikgthflhq@kamzik.brq.redhat.com> From: Wainer dos Santos Moschetta Message-ID: Date: Thu, 2 Apr 2020 10:56:18 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20200402090029.pc6w6iqikgthflhq@kamzik.brq.redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/2/20 6:00 AM, Andrew Jones wrote: > On Mon, Mar 30, 2020 at 05:43:10PM -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 | 92 +++++++++++++++++++++ >> 3 files changed, 96 insertions(+) >> create mode 100644 tools/testing/selftests/kvm/mem_slot_test.c >> > BTW, in kvm/queue we also now have > > x86_64/set_memory_region_test.c > > I wonder if we shouldn't try to make x86_64/set_memory_region_test.c > arch-neutral and then integrate this new test with it. When I started work on this test I called it "add_max_mem_slots" but then I realized it could be rather a suite for other tests, so it was renamed. So yes, I think we can try to merge those memory region tests altogether. I'm about to send a v2 where I address all your comments and hopefully we can use as the base for such as integration. Makes sense? Thanks! - Wainer > > Thanks, > drew