Guest User

xen-access patch

a guest
Apr 8th, 2018
153
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/tools/tests/xen-access/xen-access.c b/tools/tests/xen-access/xen-access.c
  2. index a081168..d030573 100644
  3. --- a/tools/tests/xen-access/xen-access.c
  4. +++ b/tools/tests/xen-access/xen-access.c
  5. @@ -510,9 +510,6 @@ int main(int argc, char *argv[])
  6.      /* With altp2m we just create a new, restricted view of the memory */
  7.      if ( memaccess && altp2m )
  8.      {
  9. -        xen_pfn_t gfn = 0;
  10. -        unsigned long perm_set = 0;
  11. -
  12.          rc = xc_altp2m_set_domain_state( xch, domain_id, 1 );
  13.          if ( rc < 0 )
  14.          {
  15. @@ -528,17 +525,6 @@ int main(int argc, char *argv[])
  16.          }
  17.  
  18.          DPRINTF("altp2m view created with id %u\n", altp2m_view_id);
  19. -        DPRINTF("Setting altp2m mem_access permissions.. ");
  20. -
  21. -        for(; gfn < xenaccess->max_gpfn; ++gfn)
  22. -        {
  23. -            rc = xc_altp2m_set_mem_access( xch, domain_id, altp2m_view_id, gfn,
  24. -                                           default_access);
  25. -            if ( !rc )
  26. -                perm_set++;
  27. -        }
  28. -
  29. -        DPRINTF("done! Permissions set on %lu pages.\n", perm_set);
  30.  
  31.          rc = xc_altp2m_switch_to_view( xch, domain_id, altp2m_view_id );
  32.          if ( rc < 0 )
RAW Paste Data