Skip to contentSkip to conversation

mem_sharing: use paging_mode_hap

PATCH In review Christoph Egger 2 participants 2 messages May 11, 2010 – May 18, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mem_sharing: use paging_mode_hap

Hi!

Attached patch uses paging_mode_hap.

Signature · 6 lines
---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
xen/include/asm-x86/mem_sharing.h +1 -1
diff -r 7ee8bb40200a xen/include/asm-x86/mem_sharing.h
@@ -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; 
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Christoph Egger

Hi!

Attached patch uses paging_mode_hap.

(though in fact AFAICS this macro is never used.)

Content-Description: xen_pagingmode.diff

Quoted 12 lines

diff -r 7ee8bb40200a xen/include/asm-x86/mem_sharing.h

xen/include/asm-x86/mem_sharing.h +1 -1
@@ -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; 
 
Signature · 3 lines
Tim Deegan <[email protected]>
Principal Software Engineer, XenServer Engineering
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)