]> xenbits.xensource.com Git - people/pauldu/xen.git/commitdiff
x86: fix paging_max_paddr_bits()
authorJuergen Gross <jgross@suse.com>
Wed, 28 Nov 2018 14:51:20 +0000 (15:51 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 28 Nov 2018 14:51:20 +0000 (15:51 +0100)
paging_max_paddr_bits() has an invalid use of IS_ENABLED(): instead of
IS_ENABLED(CONFIG_BIGMEM) it is using IS_ENABLED(BIGMEM). Fix that.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/include/asm-x86/paging.h

index dd0d6b5159964e13df448a1a0fb3bdbb73b36fe9..fdcc22844bbcf41061bd1420945537e24f56ef09 100644 (file)
@@ -371,7 +371,8 @@ static inline unsigned int paging_max_paddr_bits(const struct domain *d)
 {
     unsigned int bits = paging_mode_hap(d) ? hap_paddr_bits : paddr_bits;
 
-    if ( !IS_ENABLED(BIGMEM) && paging_mode_shadow(d) && !is_pv_domain(d) )
+    if ( !IS_ENABLED(CONFIG_BIGMEM) && paging_mode_shadow(d) &&
+         !is_pv_domain(d) )
     {
         /* Shadowed superpages store GFNs in 32-bit page_info fields. */
         bits = min(bits, 32U + PAGE_SHIFT);