Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2089270pxb; Thu, 11 Feb 2021 04:12:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzH96n3D0RWTpzHSy8sl/ddxu/1YzvMRnBmsQ8H5QWLRCiJ20l8LRPikXIQw9uNU6hCfy4F X-Received: by 2002:a17:907:75c6:: with SMTP id jl6mr7940672ejc.243.1613045530326; Thu, 11 Feb 2021 04:12:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613045530; cv=none; d=google.com; s=arc-20160816; b=0k4rjLZpNNjSqRkcl0ktW+Fq+CFyemtXVMaHtNW2W/3e9G/37rUvrPT7oS0Q/ezDQU iSEVZvpwwHYTAvimBAVVGgFXO4ApMsoPO6Vei74+hlAmyH9JWTN5/qe2z9WKkgyOTKPo WG8cBt/R/X1o2FLATFyX2nEORZsUazQE+nKZptu79Blo2lwJFkX/3AJNbGZJilb+Sp0C 9gEz38AGXnmHCFTEUs5x82RKXdgfP+VywUjkhkksT3SriZhDthWJkI+2mV0kh2fYscAs O2RVb9Qs0BN8j+lobQOOQW3zUjgPciQMWBrGQOcbGvTccGmK9dke9Uuz3hLvInIeH9Z2 I9rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PBbv8Ik3MJk5Ifs8Y2ot0HB2Ai76el9x4Ro3xXxLdLQ=; b=Y51oHIIU2r4ZqhxLW03ItJEmh+9Huq/UUSnfaDI5AEbOvd4bwJhsd3ZSrpWZvqd66F LUn5UEhlqkJ5tE8qCC4YtynRYjOjR2GURYWRE4BoU32uDecqBw2L927BMa3eNX8UYYHK xoZR7pDYqxEzeF11NBEfy58D2iPrkEP5Jb61xmp2inGtDbHTd4uJxcvsfi65HzwAx7Td +MEDInqRRXEHrwycH76sdZN0BjklvnUJudVYqCyRPNJ2JqoVQw6UxY/bAJ0cSVgvdU9G wJtOAs9sfZCydMIehnaaQV5PbULyfOSvzYEkOybRcIUy0cWbIjh11cgaHVMhZeaHpE5O nIXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BWrhp+s5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id ly19si3651139ejb.16.2021.02.11.04.11.46; Thu, 11 Feb 2021 04:12:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BWrhp+s5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229890AbhBKMJQ (ORCPT + 99 others); Thu, 11 Feb 2021 07:09:16 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:32122 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230299AbhBKMA3 (ORCPT ); Thu, 11 Feb 2021 07:00:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1613044735; 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=PBbv8Ik3MJk5Ifs8Y2ot0HB2Ai76el9x4Ro3xXxLdLQ=; b=BWrhp+s57HWmRJYlMh2yTfEGTIUGnnSrFjhqm9JHYM/7if/tYoMN/QISpH2i2HF89aFGnQ X8L8wUVQRbWNZll94OFNavetvYLddRdf+p2BJ5Id39ZKbzCzTfpJJ1YBEwgC5KkwulKZJZ evrsTft10dnELtphgsU64KVrpAnyoaU= 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-341-gBhHTZsqOq6Dw3-MLmTWMA-1; Thu, 11 Feb 2021 06:58:52 -0500 X-MC-Unique: gBhHTZsqOq6Dw3-MLmTWMA-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 3CAB080196C; Thu, 11 Feb 2021 11:58:50 +0000 (UTC) Received: from kamzik.brq.redhat.com (unknown [10.40.192.126]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C9DEA5D74A; Thu, 11 Feb 2021 11:58:43 +0000 (UTC) Date: Thu, 11 Feb 2021 12:58:41 +0100 From: Andrew Jones To: Sean Christopherson Cc: Paolo Bonzini , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Ben Gardon , Yanan Wang , Peter Xu , Aaron Lewis Subject: Re: [PATCH 00/15] VM: selftests: Hugepage fixes and cleanups Message-ID: <20210211115841.sbs2a3p7xx4womrc@kamzik.brq.redhat.com> References: <20210210230625.550939-1-seanjc@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210210230625.550939-1-seanjc@google.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 10, 2021 at 03:06:10PM -0800, Sean Christopherson wrote: > Fix hugepage bugs in the KVM selftests that specifically affect dirty > logging and demand paging tests. Found while attempting to verify KVM > changes/fixes related to hugepages and dirty logging (patches incoming in > a separate series). > > Clean up the perf_test_args util on top of the hugepage fixes to clarify > what "page size" means, and to improve confidence in the code doing what > it thinks it's doing. In a few cases, users of perf_test_args were > duplicating (approximating?) calculations made by perf_test_args, and it > wasn't obvious that both pieces of code were guaranteed to end up with the > same result. > > Sean Christopherson (15): > KVM: selftests: Explicitly state indicies for vm_guest_mode_params > array > KVM: selftests: Expose align() helpers to tests > KVM: selftests: Align HVA for HugeTLB-backed memslots > KVM: selftests: Force stronger HVA alignment (1gb) for hugepages > KVM: selftests: Require GPA to be aligned when backed by hugepages > KVM: selftests: Use shorthand local var to access struct > perf_tests_args > KVM: selftests: Capture per-vCPU GPA in perf_test_vcpu_args > KVM: selftests: Use perf util's per-vCPU GPA/pages in demand paging > test > KVM: selftests: Move per-VM GPA into perf_test_args > KVM: selftests: Remove perf_test_args.host_page_size > KVM: selftests: Create VM with adjusted number of guest pages for perf > tests > KVM: selftests: Fill per-vCPU struct during "perf_test" VM creation > KVM: selftests: Sync perf_test_args to guest during VM creation > KVM: selftests: Track size of per-VM memslot in perf_test_args > KVM: selftests: Get rid of gorilla math in memslots modification test > > .../selftests/kvm/demand_paging_test.c | 39 ++--- > .../selftests/kvm/dirty_log_perf_test.c | 10 +- > .../testing/selftests/kvm/include/kvm_util.h | 28 ++++ > .../selftests/kvm/include/perf_test_util.h | 18 +-- > tools/testing/selftests/kvm/lib/kvm_util.c | 36 ++--- > .../selftests/kvm/lib/perf_test_util.c | 139 ++++++++++-------- > .../kvm/memslot_modification_stress_test.c | 16 +- > 7 files changed, 145 insertions(+), 141 deletions(-) > > -- > 2.30.0.478.g8a0d178c01-goog > For the series Reviewed-by: Andrew Jones Thanks, drew