ia64/xen-unstable

changeset 8978:066ac36725f3

Disable pagetable pinning for shadow-mode-refcount guests.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Feb 23 14:50:00 2006 +0100 (2006-02-23)
parents f84d5cdd9895
children 3dde68484683
files xen/arch/x86/mm.c
line diff
     1.1 --- a/xen/arch/x86/mm.c	Thu Feb 23 14:43:45 2006 +0100
     1.2 +++ b/xen/arch/x86/mm.c	Thu Feb 23 14:50:00 2006 +0100
     1.3 @@ -1776,7 +1776,7 @@ int do_mmuext_op(
     1.4  
     1.5          pin_page:
     1.6              if ( shadow_mode_refcounts(FOREIGNDOM) )
     1.7 -                type = PGT_writable_page;
     1.8 +                break;
     1.9  
    1.10              okay = get_page_and_type_from_pagenr(mfn, type, FOREIGNDOM);
    1.11              if ( unlikely(!okay) )
    1.12 @@ -1811,6 +1811,9 @@ int do_mmuext_op(
    1.13              goto pin_page;
    1.14  
    1.15          case MMUEXT_UNPIN_TABLE:
    1.16 +            if ( shadow_mode_refcounts(d) )
    1.17 +                break;
    1.18 +
    1.19              if ( unlikely(!(okay = get_page_from_pagenr(mfn, d))) )
    1.20              {
    1.21                  MEM_LOG("Mfn %lx bad domain (dom=%p)",