From: Julien Grall Subject: [RFC 2/2] xen/public: grant-table: Specificy the size of the grant Date: Wed, 5 Aug 2015 12:28:53 +0100 Message-ID: <1438774133-1564-3-git-send-email-julien.grall@citrix.com> References: <1438774133-1564-1-git-send-email-julien.grall@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZMwtW-00019C-BZ for xen-devel@lists.xenproject.org; Wed, 05 Aug 2015 11:30:02 +0000 In-Reply-To: <1438774133-1564-1-git-send-email-julien.grall@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Wei.Liu2@citrix.com, ian.campbell@citrix.com, Tim Deegan , Ian Jackson , Julien Grall , stefano.stabellini@citrix.com, Jan Beulich , Keir Fraser List-Id: xen-devel@lists.xenproject.org The grant is always 4KB irrespectively of the page granularity of the guest. Signed-off-by: Julien Grall --- Cc: Ian Campbell Cc: Ian Jackson Cc: Jan Beulich Cc: Keir Fraser Cc: Tim Deegan --- xen/include/public/grant_table.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xen/include/public/grant_table.h b/xen/include/public/grant_table.h index e9393fd..67a250d 100644 --- a/xen/include/public/grant_table.h +++ b/xen/include/public/grant_table.h @@ -51,6 +51,11 @@ * know the real machine address of a page it is sharing. This makes * it possible to share memory correctly with domains running in * fully virtualised memory. + * + * The size of a grant is always 4KB irrespectively of the page + * granularity of the guest. This is means that when the guest is using + * 64KB page granularity, it will have to split the page in 4KB chunks + * and request a grant for every of them. */ /*********************************** -- 2.1.4