Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322287
b: refs/heads/master
c: c96aae1
h: refs/heads/master
i:
  322285: 7ec8cae
  322283: c0a9893
  322279: 6bf4bc6
  322271: 41b73a1
v: v3
  • Loading branch information
Konrad Rzeszutek Wilk committed Aug 23, 2012
1 parent a9810ec commit 6094f43
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 250a41e0ecc433cdd553a364d0fc74c766425209
refs/heads/master: c96aae1f7f393387d160211f60398d58463a7e65
9 changes: 8 additions & 1 deletion trunk/arch/x86/xen/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,16 @@ static void __init xen_add_extra_mem(u64 start, u64 size)
memblock_reserve(start, size);

xen_max_p2m_pfn = PFN_DOWN(start + size);
for (pfn = PFN_DOWN(start); pfn < xen_max_p2m_pfn; pfn++) {
unsigned long mfn = pfn_to_mfn(pfn);

if (WARN(mfn == pfn, "Trying to over-write 1-1 mapping (pfn: %lx)\n", pfn))
continue;
WARN(mfn != INVALID_P2M_ENTRY, "Trying to remove %lx which has %lx mfn!\n",
pfn, mfn);

for (pfn = PFN_DOWN(start); pfn <= xen_max_p2m_pfn; pfn++)
__set_phys_to_machine(pfn, INVALID_P2M_ENTRY);
}
}

static unsigned long __init xen_do_chunk(unsigned long start,
Expand Down

0 comments on commit 6094f43

Please sign in to comment.