direct-io.hg

changeset 4515:55d679bc8c5d

bitkeeper revision 1.1291.1.1 (425bebf9aCUxgH4Es3NJxOCwIS_yVA)

Remove debug hooks that shouldn't be enabled by default.
author mafetter@fleming.research
date Tue Apr 12 15:40:41 2005 +0000 (2005-04-12)
parents 0af94d69263f
children cd1ad927dab8
files tools/libxc/xc_linux_build.c
line diff
     1.1 --- a/tools/libxc/xc_linux_build.c	Tue Apr 12 10:57:13 2005 +0000
     1.2 +++ b/tools/libxc/xc_linux_build.c	Tue Apr 12 15:40:41 2005 +0000
     1.3 @@ -210,11 +210,9 @@ static int setup_guest(int xc_handle,
     1.4          }
     1.5  
     1.6          *vl1e = (page_array[count] << PAGE_SHIFT) | L1_PROT;
     1.7 -#if !(1 || defined(GROSS_HACK_TO_TEST_SHADOW_MODE_CLIENTS))
     1.8          if ( (count >= ((vpt_start-dsi.v_start)>>PAGE_SHIFT)) && 
     1.9               (count <  ((vpt_end  -dsi.v_start)>>PAGE_SHIFT)) )
    1.10              *vl1e &= ~_PAGE_RW;
    1.11 -#endif
    1.12          vl1e++;
    1.13      }
    1.14      munmap(vl1tab, PAGE_SIZE);
    1.15 @@ -245,25 +243,12 @@ static int setup_guest(int xc_handle,
    1.16      }
    1.17      munmap(physmap, PAGE_SIZE);
    1.18      
    1.19 -#if 1 || defined(GROSS_HACK_TO_TEST_SHADOW_MODE_CLIENTS)
    1.20 -    {
    1.21 -        int ret;
    1.22 -        ret = xc_shadow_control(xc_handle, dom,
    1.23 -                                DOM0_SHADOW_CONTROL_OP_ENABLE_TEST,
    1.24 -                                NULL, 0, NULL);
    1.25 -        if ( !ret )
    1.26 -            ERROR("enabling shadow test mode failed\n");
    1.27 -    }
    1.28 -#endif
    1.29 -
    1.30      /*
    1.31       * Pin down l2tab addr as page dir page - causes hypervisor to provide
    1.32       * correct protection for the page
    1.33       */ 
    1.34 -#if !(1 || defined(GROSS_HACK_TO_TEST_SHADOW_MODE_CLIENTS))
    1.35      if ( pin_table(xc_handle, MMUEXT_PIN_L2_TABLE, l2tab>>PAGE_SHIFT, dom) )
    1.36          goto error_out;
    1.37 -#endif
    1.38  
    1.39      start_info = xc_map_foreign_range(
    1.40          xc_handle, dom, PAGE_SIZE, PROT_READ|PROT_WRITE,