Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1505263ybb; Thu, 2 Apr 2020 02:02:29 -0700 (PDT) X-Google-Smtp-Source: APiQypIiytMAh27v6YhfL8pP3E3jOrfl6SHhBMD2NAGAbxtQTTxk6ip93PSBuwcsZif34oYPUkl4 X-Received: by 2002:a05:6808:103:: with SMTP id b3mr1519558oie.46.1585818149440; Thu, 02 Apr 2020 02:02:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585818149; cv=none; d=google.com; s=arc-20160816; b=LQ6ltFltgxhc6Z7ZDr7YfNmtObHk0nAlEF77k0PAWCilfmuDI6R+9BlbYFVHZ7eP57 vip2htONZ/vk/cOsLAOV6h1w8hH3bo4KtvX7To/RrxuOTtUmcOz1HqIPlN1fo4NKd9fX OU/dNkGaNPUGWXtDo3jsOLSq/+gVvHmvRivoqYvIAn6xroqdcFSdvTuRrWcUEQoeVDkZ UINmg4fiGSn0UBjlY16hjWYA15SIW00MYUIRoEV8TJt6KEyqtyzyPwp77I/Cp0jEbLdO Z3SDIBB1vRjllV2k47KJulRrAV0gYVF41b2IhpqcqTC/DMLtOyKzmK/CA4ENysq/niqG rI2w== 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=WLbI8tl/lGeAZC2ZqPQOvymWN2MF7fjTbT3WDjZTIW4=; b=Qd/59eiw/p5ThKsoCvBKcCZ+bNSjGuTaDoTWn0QT+Vd4xB3UNiM3s0K/IitivDyIZs Q0ZAA/Jk6vDOZrU1fKYlZaxz8BmCWTLWT5IWrqn7697vaX1yBDi5M9KkBfn2ab0cotLL 8GHhHhr5vtu5rY0kqjcwUB7KKLPiWNjCTgFEBOMSlQNspmY80wJCTVW+goSIgwT/L9Av 6THXPcYsAYBSCq51b0B/BttwR/L0A9pupxQAN1FFpoLyCapa/R0/5tf2lLelrZihExkB MqwwAMIVEaJ9c51BLBBKU2xao9x7/x1GzgaLcX5G5J+C9t9lQ0cMqvek2/F8q0oKTMxC pqxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EDAhEOXC; 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 k185si2032948oif.13.2020.04.02.02.02.15; Thu, 02 Apr 2020 02:02:29 -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=EDAhEOXC; 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 S2387857AbgDBJAq (ORCPT + 99 others); Thu, 2 Apr 2020 05:00:46 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:48910 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728612AbgDBJAp (ORCPT ); Thu, 2 Apr 2020 05:00:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585818044; 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=WLbI8tl/lGeAZC2ZqPQOvymWN2MF7fjTbT3WDjZTIW4=; b=EDAhEOXC31VIGGCEsGR8Rkv0qgGHpcQO9Y5KVC0WddQCZ/oO/gNB2Vct23a7xoy9J/BYke QdBpqPhachHvpnhqzB8aIIRgvaYjLi+g49Xn7QGfkasbOMPyklsrCcR7pE3jLWhobgZkkb CNoZ32lUxBQeV/tfb85CsJUYJYwYdbU= 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-22-ViIzXaFRMCuH1SC4nYcA3g-1; Thu, 02 Apr 2020 05:00:42 -0400 X-MC-Unique: ViIzXaFRMCuH1SC4nYcA3g-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0EA7518A551F; Thu, 2 Apr 2020 09:00:41 +0000 (UTC) Received: from kamzik.brq.redhat.com (unknown [10.40.192.77]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D79BE5E037; Thu, 2 Apr 2020 09:00:32 +0000 (UTC) Date: Thu, 2 Apr 2020 11:00:29 +0200 From: Andrew Jones To: Wainer dos Santos Moschetta Cc: kvm@vger.kernel.org, pbonzini@redhat.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, david@redhat.com Subject: Re: [PATCH 2/2] selftests: kvm: Add mem_slot_test test Message-ID: <20200402090029.pc6w6iqikgthflhq@kamzik.brq.redhat.com> References: <20200330204310.21736-1-wainersm@redhat.com> <20200330204310.21736-3-wainersm@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200330204310.21736-3-wainersm@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, drew