Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88146
b: refs/heads/master
c: a684d69
h: refs/heads/master
v: v3
  • Loading branch information
Mark McLoughlin authored and Ingo Molnar committed Apr 4, 2008
1 parent 7378dbe commit 6348551
Show file tree
Hide file tree
Showing 2 changed files with 3 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: f64337062c09c2c318fbcbf44ed1d739e8bc72ab
refs/heads/master: a684d69d15a8fafede7c5c0daac8c646bbee805c
5 changes: 2 additions & 3 deletions trunk/arch/x86/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,8 +689,6 @@ static void xen_alloc_ptpage(struct mm_struct *mm, u32 pfn, unsigned level)
make_lowmem_page_readonly(__va(PFN_PHYS(pfn)));
if (level == PT_PTE)
pin_pagetable_pfn(MMUEXT_PIN_L1_TABLE, pfn);
else if (level == PT_PMD)
pin_pagetable_pfn(MMUEXT_PIN_L2_TABLE, pfn);
} else
/* make sure there are no stray mappings of
this page */
Expand All @@ -715,7 +713,8 @@ static void xen_release_ptpage(u32 pfn, unsigned level)

if (PagePinned(page)) {
if (!PageHighMem(page)) {
pin_pagetable_pfn(MMUEXT_UNPIN_TABLE, pfn);
if (level == PT_PTE)
pin_pagetable_pfn(MMUEXT_UNPIN_TABLE, pfn);
make_lowmem_page_readwrite(__va(PFN_PHYS(pfn)));
}
}
Expand Down

0 comments on commit 6348551

Please sign in to comment.