Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217855
b: refs/heads/master
c: 2f7acb2
h: refs/heads/master
i:
  217853: a165417
  217851: 797fba6
  217847: d319bb8
  217839: 5217f24
  217823: c0f0bc1
  217791: 0b2e44e
  217727: 22b7726
  217599: 478c209
v: v3
  • Loading branch information
Jeremy Fitzhardinge committed Oct 22, 2010
1 parent 3943e7c commit be1545d
Show file tree
Hide file tree
Showing 4 changed files with 8 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: 698bb8d14a5b577b6841acaccdf5095d3b7c7389
refs/heads/master: 2f7acb208523a3bf5f1830f01c29f7feda045169
8 changes: 4 additions & 4 deletions trunk/arch/x86/xen/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ DEFINE_PER_CPU(unsigned long, xen_current_cr3); /* actual vcpu cr3 */
* 512 and 1024 entries respectively.
*/

static unsigned long max_p2m_pfn __read_mostly;
unsigned long xen_max_p2m_pfn __read_mostly;

#define P2M_PER_PAGE (PAGE_SIZE / sizeof(unsigned long))
#define P2M_MID_PER_PAGE (PAGE_SIZE / sizeof(unsigned long *))
Expand Down Expand Up @@ -293,7 +293,7 @@ void xen_build_mfn_list_list(void)
p2m_top_mfn_init(p2m_top_mfn);
}

for (pfn = 0; pfn < max_p2m_pfn; pfn += P2M_PER_PAGE) {
for (pfn = 0; pfn < xen_max_p2m_pfn; pfn += P2M_PER_PAGE) {
unsigned topidx = p2m_top_index(pfn);
unsigned mididx = p2m_mid_index(pfn);
unsigned long **mid;
Expand Down Expand Up @@ -335,7 +335,7 @@ void xen_setup_mfn_list_list(void)

HYPERVISOR_shared_info->arch.pfn_to_mfn_frame_list_list =
virt_to_mfn(p2m_top_mfn);
HYPERVISOR_shared_info->arch.max_pfn = max_p2m_pfn;
HYPERVISOR_shared_info->arch.max_pfn = xen_max_p2m_pfn;
}

/* Set up p2m_top to point to the domain-builder provided p2m pages */
Expand All @@ -345,7 +345,7 @@ void __init xen_build_dynamic_phys_to_machine(void)
unsigned long max_pfn = min(MAX_DOMAIN_PAGES, xen_start_info->nr_pages);
unsigned pfn;

max_p2m_pfn = max_pfn;
xen_max_p2m_pfn = max_pfn;

p2m_missing = extend_brk(PAGE_SIZE, PAGE_SIZE);
p2m_init(p2m_missing);
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/x86/xen/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ static __init void xen_add_extra_mem(unsigned long pages)
"XEN EXTRA");

xen_extra_mem_size += size;

xen_max_p2m_pfn = PFN_DOWN(xen_extra_mem_start + xen_extra_mem_size);
}

static unsigned long __init xen_release_chunk(phys_addr_t start_addr,
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/x86/xen/xen-ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ void xen_setup_machphys_mapping(void);
pgd_t *xen_setup_kernel_pagetable(pgd_t *pgd, unsigned long max_pfn);
void xen_ident_map_ISA(void);
void xen_reserve_top(void);
extern unsigned long xen_max_p2m_pfn;

char * __init xen_memory_setup(void);
void __init xen_arch_setup(void);
Expand Down

0 comments on commit be1545d

Please sign in to comment.