ia64/xen-unstable

changeset 18743:ae100f264f6a

x86: Fix relinquish_memory() for PGT_partial pages.

Original patch by Jan Beulich.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Oct 29 13:09:37 2008 +0000 (2008-10-29)
parents 183d2d7adc2f
children 6a8fea290af5
files xen/arch/x86/domain.c
line diff
     1.1 --- a/xen/arch/x86/domain.c	Wed Oct 29 12:04:38 2008 +0000
     1.2 +++ b/xen/arch/x86/domain.c	Wed Oct 29 13:09:37 2008 +0000
     1.3 @@ -1688,6 +1688,8 @@ static int relinquish_memory(
     1.4              {
     1.5                  if ( free_page_type(page, x, 0) != 0 )
     1.6                      BUG();
     1.7 +                if ( x & PGT_partial )
     1.8 +                    page->u.inuse.type_info--;
     1.9                  break;
    1.10              }
    1.11          }