Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80423
b: refs/heads/master
c: a89780f
h: refs/heads/master
i:
  80421: afd1c3c
  80419: 529d81a
  80415: a012f64
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Ingo Molnar committed Jan 30, 2008
1 parent 3d612b6 commit 75c026f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 261a5ec36befbe6bae069be14f45e618dcd35146
refs/heads/master: a89780f3b84f9a421e2608580b55f12b3ac4f9c2
10 changes: 6 additions & 4 deletions trunk/arch/x86/xen/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,10 @@ unsigned long long xen_pgd_val(pgd_t pgd)

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

return (pte_t){ .pte = pte };
}
Expand Down Expand Up @@ -288,10 +290,10 @@ unsigned long xen_pgd_val(pgd_t pgd)

pte_t xen_make_pte(unsigned long pte)
{
if (pte & _PAGE_PRESENT)
if (pte & _PAGE_PRESENT) {
pte = phys_to_machine(XPADDR(pte)).maddr;

pte &= ~(_PAGE_PCD | _PAGE_PWT);
pte &= ~(_PAGE_PCD | _PAGE_PWT);
}

return (pte_t){ pte };
}
Expand Down

0 comments on commit 75c026f

Please sign in to comment.