|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH] Balloon driver crash
On Tue, Jun 08, 2010 at 10:25:35AM +0100, M A Young wrote:
> This patch fixes an error in commit f4685d0ed041523d1bd5124c5872459681aca876
> "Add hugepage support to balloon driver" that was causing the balloon
> driver to crash when shrinking the memory used by Domain-0.
>
Should this be applied to both xen/stable-2.6.31.x and xen/stable-2.6.32.x ?
-- Pasi
> Signed-off-by: Michael Young <m.a.young@xxxxxxxxxxxx>
>
> --- linux-2.6.32.x86_64/drivers/xen/balloon.c.orig 2010-06-05
> 22:43:11.000000000 +0100
> +++ linux-2.6.32.x86_64/drivers/xen/balloon.c 2010-06-05 22:47:03.000000000
> +0100
> @@ -340,7 +340,7 @@
> discontig_free = 1;
>
> set_phys_to_machine(lpfn, INVALID_P2M_ENTRY);
> - if (!PageHighMem(page)) {
> + if (!PageHighMem(pfn_to_page(lpfn))) {
> ret = HYPERVISOR_update_va_mapping(
> (unsigned long)__va(lpfn << PAGE_SHIFT),
> __pte_ma(0), 0);
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|