xen/x86: fix paging_max_paddr_bits()
PATCH 1/1 xen/x86: fix paging_max_paddr_bits()
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 <[email protected]>
--- xen/include/asm-x86/paging.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
xen/include/asm-x86/paging.h +2 -1
@@ -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 );
Signature · 7 lines
2.16.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 4 lines · Juergen Gross
paging_max_paddr_bits()has an invalid use ofIS_ENABLED(): instead ofIS_ENABLED(CONFIG_BIGMEM)it is usingIS_ENABLED(BIGMEM). Fix that.Signed-off-by Juergen Gross <[email protected]>
Reviewed-by Roger Pau Monné <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Jan Beulich
Acked-byQuoted 8 lines
Quoted 1 line
Quoted 1 line · On 28.11.18 at 09:41, <[email protected]> wrote:
Quoted 4 lines · Juergen Gross
paging_max_paddr_bits()has an invalid use ofIS_ENABLED(): instead ofIS_ENABLED(CONFIG_BIGMEM)it is usingIS_ENABLED(BIGMEM). Fix that.Signed-off-by Juergen Gross <[email protected]>Reviewed-by Roger Pau Monné <[email protected]>
Acked-by Jan Beulich <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel