Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131255
b: refs/heads/master
c: 55a8ba4
h: refs/heads/master
i:
  131253: a873cb7
  131251: efc9fdc
  131247: 8e4e67d
v: v3
  • Loading branch information
Alok Kataria authored and Ingo Molnar committed Feb 9, 2009
1 parent 978ccd8 commit 8ed5181
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3f4a739c6accd651a11fcf3c7a20ec8147c42660
refs/heads/master: 55a8ba4b7f76bebd7e8ce3f74c04b140627a1bad
11 changes: 11 additions & 0 deletions trunk/arch/x86/kernel/vmi_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,16 @@ static void vmi_release_pmd(unsigned long pfn)
vmi_ops.release_page(pfn, VMI_PAGE_L2);
}

/*
* We use the pgd_free hook for releasing the pgd page:
*/
static void vmi_pgd_free(struct mm_struct *mm, pgd_t *pgd)
{
unsigned long pfn = __pa(pgd) >> PAGE_SHIFT;

vmi_ops.release_page(pfn, VMI_PAGE_L2);
}

/*
* Helper macros for MMU update flags. We can defer updates until a flush
* or page invalidation only if the update is to the current address space
Expand Down Expand Up @@ -762,6 +772,7 @@ static inline int __init activate_vmi(void)
if (vmi_ops.release_page) {
pv_mmu_ops.release_pte = vmi_release_pte;
pv_mmu_ops.release_pmd = vmi_release_pmd;
pv_mmu_ops.pgd_free = vmi_pgd_free;
}

/* Set linear is needed in all cases */
Expand Down

0 comments on commit 8ed5181

Please sign in to comment.