Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99571
b: refs/heads/master
c: eb179e4
h: refs/heads/master
i:
  99569: ed24793
  99567: 58adb7a
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Ingo Molnar committed Jun 20, 2008
1 parent b1a188a commit 38ea3de
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6673cf63e5d973db5145d1f48b354efcb9fe2a13
refs/heads/master: eb179e443deb0a5c81a62b4c157124a4b7ff1813
5 changes: 5 additions & 0 deletions trunk/arch/x86/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -1280,6 +1280,11 @@ asmlinkage void __init xen_start_kernel(void)
if (xen_feature(XENFEAT_supervisor_mode_kernel))
pv_info.kernel_rpl = 0;

/* Prevent unwanted bits from being set in PTEs. */
__supported_pte_mask &= ~_PAGE_GLOBAL;
if (!is_initial_xendomain())
__supported_pte_mask &= ~(_PAGE_PWT | _PAGE_PCD);

/* set the limit of our address space */
xen_reserve_top();

Expand Down
4 changes: 1 addition & 3 deletions trunk/arch/x86/xen/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,8 @@ pgdval_t xen_pgd_val(pgd_t pgd)

pte_t xen_make_pte(pteval_t pte)
{
if (pte & _PAGE_PRESENT) {
if (pte & _PAGE_PRESENT)
pte = phys_to_machine(XPADDR(pte)).maddr;
pte &= ~(_PAGE_PCD | _PAGE_PWT);
}

return (pte_t){ .pte = pte };
}
Expand Down

0 comments on commit 38ea3de

Please sign in to comment.