[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86: Fix relinquish_memory() for PGT_partial pages.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1225285777 0
# Node ID ae100f264f6ad4e828de1ca2d228cccf6ed2bbfd
# Parent  183d2d7adc2f02db63aedaf199e3b006d2e4a053
x86: Fix relinquish_memory() for PGT_partial pages.

Original patch by Jan Beulich.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/arch/x86/domain.c |    2 ++
 1 files changed, 2 insertions(+)

diff -r 183d2d7adc2f -r ae100f264f6a xen/arch/x86/domain.c
--- a/xen/arch/x86/domain.c     Wed Oct 29 12:04:38 2008 +0000
+++ b/xen/arch/x86/domain.c     Wed Oct 29 13:09:37 2008 +0000
@@ -1688,6 +1688,8 @@ static int relinquish_memory(
             {
                 if ( free_page_type(page, x, 0) != 0 )
                     BUG();
+                if ( x & PGT_partial )
+                    page->u.inuse.type_info--;
                 break;
             }
         }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.