ia64/xen-unstable

changeset 154:9f696c88dd6d

bitkeeper revision 1.22.2.21 (3e4bf2aflO59Pk9VYHigeXQrI0c6Fw)

domain.c:
Ensure DOM0's page directory is pinned in setup_guestos().
author kaf24@labyrinth.cl.cam.ac.uk
date Thu Feb 13 19:31:59 2003 +0000 (2003-02-13)
parents 0834a70d2e19
children dad92510ffbb
files xen-2.4.16/common/domain.c
line diff
     1.1 --- a/xen-2.4.16/common/domain.c	Thu Feb 13 14:51:10 2003 +0000
     1.2 +++ b/xen-2.4.16/common/domain.c	Thu Feb 13 19:31:59 2003 +0000
     1.3 @@ -672,6 +672,8 @@ int setup_guestos(struct task_struct *p,
     1.4              frame_table;
     1.5          cur_address <<= PAGE_SHIFT;
     1.6      }
     1.7 +    page->type_count |= REFCNT_PIN_BIT;
     1.8 +    page->tot_count  |= REFCNT_PIN_BIT;
     1.9      page->flags = dom | PGT_l2_page_table;
    1.10      unmap_domain_mem(l1start);
    1.11