From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933265AbdKFUpu (ORCPT ); Mon, 6 Nov 2017 15:45:50 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:26868 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932352AbdKFUpt (ORCPT ); Mon, 6 Nov 2017 15:45:49 -0500 Subject: Re: [PATCH v2 0/5] xen: grant table interface v2 support To: Juergen Gross , linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org References: <20171102091921.32344-1-jgross@suse.com> From: Boris Ostrovsky Message-ID: Date: Mon, 6 Nov 2017 15:46:14 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20171102091921.32344-1-jgross@suse.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Source-IP: userv0022.oracle.com [156.151.31.74] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/02/2017 05:19 AM, Juergen Gross wrote: > In order to support Linux to run as a pv guest on machines with huge > memory (>16TB) or as a hvm guest with more than 16TB of memory the > kernel has to support grant table interface v2, as v1 is limited to > 32 bit frame numbers. > > This series re-adds that support (it has been removed in 2015) and > restricts usage of v2 to the features of v1 in order to support > migration to hosts which only support v1. > > V2 is selected only in the following cases: > - the user has specified v2 via module parameter > - in a pv guest if the maximum possible memory address of the host is > above 16TB (memory hotplug taken into account) > - in a hvm guest if the maximum guest memory address is above 16TB > (again with memory hotplug taken into account) > > Changes in V2: > - patch 2: remove update_trans_entry() from gnttab_ops (Boris Ostrovsky) > - added new patch 4 > - patch 5: use cpuid on pv and max_possible_pfn on hvm for version select > > Juergen Gross (5): > xen: re-introduce support for grant v2 interface > xen: limit grant v2 interface to the v1 functionality > xen: add grant interface version dependent constants to gnttab_ops > xen: update arch/x86/include/asm/xen/cpuid.h > xen: select grant interface version > > arch/arm/xen/grant-table.c | 9 +- > arch/x86/include/asm/xen/cpuid.h | 42 +++++-- > arch/x86/xen/grant-table.c | 60 +++++++++- > drivers/xen/grant-table.c | 244 +++++++++++++++++++++++++++++++++++---- > include/xen/grant_table.h | 5 +- > 5 files changed, 318 insertions(+), 42 deletions(-) > Reviewed-by: Boris Ostrovsky