From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f69nv-0008LC-A2 for qemu-devel@nongnu.org; Wed, 11 Apr 2018 03:04:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f69nu-0002xG-J9 for qemu-devel@nongnu.org; Wed, 11 Apr 2018 03:04:27 -0400 From: David Gibson Date: Wed, 11 Apr 2018 17:04:16 +1000 Message-Id: <20180411070418.6304-1-david@gibson.dropbear.id.au> Subject: [Qemu-devel] [PATCHv3 for-2.13 0/2] Helpers to obtain host page sizes for guest RAM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ehabkost@redhat.com, imammedo@redhat.com Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org, pbonzini@redhat.com, David Gibson This series makes some small changes to make it easier to obtain the host page size backing given portions of guest RAM. We use this in a couple of places currently, and I have one or two more to add in some upcoming code. Assuming there are no objections, what should be the procedure for staging this? Can I put it in my for-2.13 ppc tree, even though it's technically generic code, or should it go through someone else's tree? Changes since v2: * Corrected grammar error in commit message * Correct build error on non-linux hosts Changes since v1: * Reworked design based on Eduardo's feedback * Split into two patches David Gibson (2): Make qemu_mempath_getpagesize() accept NULL Add host_memory_backend_pagesize() helper backends/hostmem.c | 18 ++++++++++++++++++ exec.c | 20 +++++--------------- include/sysemu/hostmem.h | 2 ++ target/ppc/kvm.c | 10 +--------- util/mmap-alloc.c | 26 ++++++++++++++------------ 5 files changed, 40 insertions(+), 36 deletions(-) -- 2.14.3