|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Backport of bugfix to ensure that p2m entries are invali
ChangeSet 1.1843, 2005/04/28 22:43:58+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx
Backport of bugfix to ensure that p2m entries are invalidated
before returning memory back to Xen allocation pool.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
hypervisor.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff -Nru a/linux-2.6.11-xen-sparse/arch/xen/i386/mm/hypervisor.c
b/linux-2.6.11-xen-sparse/arch/xen/i386/mm/hypervisor.c
--- a/linux-2.6.11-xen-sparse/arch/xen/i386/mm/hypervisor.c 2005-04-28
18:06:10 -04:00
+++ b/linux-2.6.11-xen-sparse/arch/xen/i386/mm/hypervisor.c 2005-04-28
18:06:10 -04:00
@@ -378,7 +378,8 @@
pte = pte_offset_kernel(pmd, (vstart + (i*PAGE_SIZE)));
pfn_array[i] = pte->pte_low >> PAGE_SHIFT;
queue_l1_entry_update(pte, 0);
- phys_to_machine_mapping[__pa(vstart)>>PAGE_SHIFT] = INVALID_P2M_ENTRY;
+ phys_to_machine_mapping[(__pa(vstart)>>PAGE_SHIFT)+i] =
+ INVALID_P2M_ENTRY;
}
/* Flush updates through and flush the TLB. */
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
|
|
|
|