From: Christoph Egger Subject: [PATCH] xen: Use paging_mode_hap in header Date: Fri, 16 Apr 2010 17:36:46 +0200 Message-ID: <201004161736.46781.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_OQIyLBmqjHmoaKK" 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=_OQIyLBmqjHmoaKK Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! Attached patch uses paging_mode_hap in mem_sharing header. Quote Tim from patch 17/18: "Okay, but it really doesn't belong in this patch." So I send this change as an individual patch. Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 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=_OQIyLBmqjHmoaKK 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=_OQIyLBmqjHmoaKK 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=_OQIyLBmqjHmoaKK--