Received: by 10.223.164.202 with SMTP id h10csp692160wrb; Mon, 6 Nov 2017 13:49:29 -0800 (PST) X-Google-Smtp-Source: ABhQp+SUf1rm8BBPDCMb7bRkn1L4jfOpiNeKvDhTxWpg4+u7JBSCpeNt2vb/r+vjNikN40+Qol3Q X-Received: by 10.99.106.67 with SMTP id f64mr16243303pgc.162.1510004969710; Mon, 06 Nov 2017 13:49:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510004969; cv=none; d=google.com; s=arc-20160816; b=ESa3qZyp2L2PF763nEsRwNaVhType7LKDeVZPhO+6b0l1NWoyl9ABs9fRK/i73ccCl /7ybCEzKbBievvZuM/evTHDhczHZIihpibi9nVql5jLRiZc+nAAtytSs8cVT2534qXNy U/9FiJd01m8oW4pmC1lyP0eegw8OcGeFyNpENs6T9LiIpR5rYHu+4Hg4Wv0HJMLmKdGE V4FNlyTvrlKHIzvIM7D6EUvAZnFK2hXxPtM9EkJ3ka8KzSdOdn4PkfGdh1KfUfm5rRyf ebuIRC9ufSxDmvs7K6B8mD/TWUhHpycTMtWl4bLznsYDIyc0MZWkYSNx++N0uAGFGnMF g8dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=q1y2xvVps3t2+p05Cnxpv2JLwb06aR9E1QPWwxHKwj0=; b=wNSPPFflVL+EA4Lw6OJ8R/4MIOu58ayI8+YFwv4ov0LjesgXzp7mIqcvV7ETVxxdIY uQevudPvOIwr0p7cjuMzXBRZdzplAHhU82YwLhi4fzPldgZdaM87nhyCIKHU7b7X0V6b 7Vjrfug1TT3UGqBHjM7HjtDI4dVhqoGMgu8WwQ5CF+IM9XlarA9/C/M+QdHM7QDA2scU H0CdyLb8h+D//MkPNBDiH9m6GiK3PdkfOcF+vjIuPxVQFZ4EsWYSpBQWjORuJpBJ0jXC l9d1feRaPMRe3rxb2kngKHLL58CL/eoXkV+Urc0hRyGD2mujm4pn+a8XjQRM4tHcuaqI v1Kw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h185si11648808pgc.164.2017.11.06.13.49.16; Mon, 06 Nov 2017 13:49:29 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933180AbdKFUpu (ORCPT + 95 others); 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 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vA6KihCW004942 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 6 Nov 2017 20:44:43 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vA6Kihws001477 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 6 Nov 2017 20:44:43 GMT Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id vA6KigIP002811; Mon, 6 Nov 2017 20:44:42 GMT Received: from dhcp-burlington7-2nd-B-east-10-152-55-162.usdhcp.oraclecorp.com (/10.152.32.65) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 06 Nov 2017 12:44:42 -0800 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 Precedence: bulk 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 From 1582945484577497204@xxx Thu Nov 02 09:20:52 +0000 2017 X-GM-THRID: 1582945484577497204 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread