From: Christoph Egger Subject: [PATCH] mem_sharing: use paging_mode_hap Date: Tue, 11 May 2010 14:20:22 +0200 Message-ID: <201005111420.22481.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_GuU6L6seLDrPQFB" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Tim Deegan List-Id: xen-devel@lists.xenproject.org --Boundary-00=_GuU6L6seLDrPQFB Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! Attached patch uses paging_mode_hap. Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_GuU6L6seLDrPQFB Content-Type: text/x-diff; charset="iso 8859-15"; name="xen_pagingmode.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_pagingmode.diff" diff -r 7ee8bb40200a xen/include/asm-x86/mem_sharing.h --- a/xen/include/asm-x86/mem_sharing.h Thu Apr 15 19:11:16 2010 +0100 +++ b/xen/include/asm-x86/mem_sharing.h Fri Apr 16 17:11:32 2010 +0200 @@ -23,7 +23,7 @@ #define __MEM_SHARING_H__ #define sharing_supported(_d) \ - (is_hvm_domain(_d) && (_d)->arch.hvm_domain.hap_enabled) + (is_hvm_domain(_d) && paging_mode_hap(_d)) typedef uint64_t shr_handle_t; --Boundary-00=_GuU6L6seLDrPQFB Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_GuU6L6seLDrPQFB--