Skip to content

Commit e69b5d3

Browse files
committed
xen: remove global bit from __default_kernel_pte_mask for pv guests
When removing the global bit from __supported_pte_mask do the same for __default_kernel_pte_mask in order to avoid the WARN_ONCE() in check_pgprot() when setting a kernel pte before having called init_mem_mapping(). Cc: <[email protected]> # 4.17 Reported-by: Michael Young <[email protected]> Signed-off-by: Juergen Gross <[email protected]> Reviewed-by: Boris Ostrovsky <[email protected]> Signed-off-by: Juergen Gross <[email protected]>
1 parent eef04c7 commit e69b5d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/xen/enlighten_pv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,6 +1229,7 @@ asmlinkage __visible void __init xen_start_kernel(void)
12291229

12301230
/* Prevent unwanted bits from being set in PTEs. */
12311231
__supported_pte_mask &= ~_PAGE_GLOBAL;
1232+
__default_kernel_pte_mask &= ~_PAGE_GLOBAL;
12321233

12331234
/*
12341235
* Prevent page tables from being allocated in highmem, even

0 commit comments

Comments
 (0)