Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343430
b: refs/heads/master
c: c2374bf
h: refs/heads/master
v: v3
  • Loading branch information
Ian Campbell committed Nov 29, 2012
1 parent e1f027b commit 028c503
Show file tree
Hide file tree
Showing 4 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: d71f513985c22f1050295d1a7e4327cf9fb060da
refs/heads/master: c2374bf57e7861039bb129ead538515502ef7860
1 change: 1 addition & 0 deletions trunk/arch/x86/xen/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ config XEN
bool "Xen guest support"
select PARAVIRT
select PARAVIRT_CLOCK
select XEN_HAVE_PVMMU
depends on X86_64 || (X86_32 && X86_PAE && !X86_VISWS)
depends on X86_CMPXCHG && X86_TSC
help
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/xen/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,7 @@ config XEN_MCE_LOG
Allow kernel fetching MCE error from Xen platform and
converting it into Linux mcelog format for mcelog tools

config XEN_HAVE_PVMMU
bool

endmenu
5 changes: 4 additions & 1 deletion trunk/drivers/xen/balloon.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ static enum bp_state increase_reservation(unsigned long nr_pages)

set_phys_to_machine(pfn, frame_list[i]);

#ifdef CONFIG_XEN_HAVE_PVMMU
/* Link back into the page tables if not highmem. */
if (xen_pv_domain() && !PageHighMem(page)) {
int ret;
Expand All @@ -368,6 +369,7 @@ static enum bp_state increase_reservation(unsigned long nr_pages)
0);
BUG_ON(ret);
}
#endif

/* Relinquish the page back to the allocator. */
ClearPageReserved(page);
Expand Down Expand Up @@ -416,13 +418,14 @@ static enum bp_state decrease_reservation(unsigned long nr_pages, gfp_t gfp)

scrub_page(page);

#ifdef CONFIG_XEN_HAVE_PVMMU
if (xen_pv_domain() && !PageHighMem(page)) {
ret = HYPERVISOR_update_va_mapping(
(unsigned long)__va(pfn << PAGE_SHIFT),
__pte_ma(0), 0);
BUG_ON(ret);
}

#endif
}

/* Ensure that ballooned highmem pages don't have kmaps. */
Expand Down

0 comments on commit 028c503

Please sign in to comment.