mem_sharing: use paging_mode_hap
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 18 May 2010 12:31:24 +0000 (13:31 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 18 May 2010 12:31:24 +0000 (13:31 +0100)
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Acked-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/include/asm-x86/mem_sharing.h

index 230c9def187a7e319e3e244370f926c302f289d5..b0f3720def6d0a4daf663322a525a6f8d2d11f6f 100644 (file)
@@ -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;