[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210312115228.p5l26ukkn2xfwevz@kamzik.brq.redhat.com>
Date: Fri, 12 Mar 2021 12:52:28 +0100
From: Andrew Jones <drjones@...hat.com>
To: Yanan Wang <wangyanan55@...wei.com>
Cc: kvm@...r.kernel.org, linux-kselftest@...r.kernel.org,
linux-kernel@...r.kernel.org, Paolo Bonzini <pbonzini@...hat.com>,
Ben Gardon <bgardon@...gle.com>,
Sean Christopherson <seanjc@...gle.com>,
Vitaly Kuznetsov <vkuznets@...hat.com>,
Peter Xu <peterx@...hat.com>, Marc Zyngier <maz@...nel.org>,
Ingo Molnar <mingo@...nel.org>,
Adrian Hunter <adrian.hunter@...el.com>,
Jiri Olsa <jolsa@...hat.com>,
Arnaldo Carvalho de Melo <acme@...hat.com>,
Arnd Bergmann <arnd@...db.de>,
Michael Kerrisk <mtk.manpages@...il.com>,
Thomas Gleixner <tglx@...utronix.de>,
wanghaibin.wang@...wei.com, yezengruan@...wei.com,
yuzenghui@...wei.com
Subject: Re: [RFC PATCH v4 8/9] KVM: selftests: Adapt
vm_userspace_mem_region_add to new helpers
On Tue, Mar 02, 2021 at 08:57:50PM +0800, Yanan Wang wrote:
> With VM_MEM_SRC_ANONYMOUS_THP specified in vm_userspace_mem_region_add(),
> we have to get the transparent hugepage size for HVA alignment. With the
> new helpers, we can use get_backing_src_pagesz() to check whether THP is
> configured and then get the exact configured hugepage size.
>
> As different architectures may have different THP page sizes configured,
> this can get the accurate THP page sizes on any platform.
>
> Signed-off-by: Yanan Wang <wangyanan55@...wei.com>
> Reviewed-by: Ben Gardon <bgardon@...gle.com>
> ---
> tools/testing/selftests/kvm/lib/kvm_util.c | 28 +++++++---------------
> 1 file changed, 9 insertions(+), 19 deletions(-)
>
Reviewed-by: Andrew Jones <drjones@...hat.com>
Powered by blists - more mailing lists