Skip to content

Commit 416d721

Browse files
committed
xen/setup: Remove redundant filtering of PTE masks.
commit 7347b40 "xen: Allow unprivileged Xen domains to create iomap pages" added a redundant line in the early bootup code to filter out the PTE. That filtering is already done a bit earlier so this extra processing is not required. Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
1 parent a43a5cc commit 416d721

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

arch/x86/xen/enlighten.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,10 +1204,6 @@ asmlinkage void __init xen_start_kernel(void)
12041204

12051205
pgd = (pgd_t *)xen_start_info->pt_base;
12061206

1207-
if (!xen_initial_domain())
1208-
__supported_pte_mask &= ~(_PAGE_PWT | _PAGE_PCD);
1209-
1210-
__supported_pte_mask |= _PAGE_IOMAP;
12111207
/* Don't do the full vcpu_info placement stuff until we have a
12121208
possible map and a non-dummy shared_info. */
12131209
per_cpu(xen_vcpu, 0) = &HYPERVISOR_shared_info->vcpu_info[0];

0 commit comments

Comments
 (0)