Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/tools/tests/xen-access/xen-access.c b/tools/tests/xen-access/xen-access.c
- index a081168..d030573 100644
- --- a/tools/tests/xen-access/xen-access.c
- +++ b/tools/tests/xen-access/xen-access.c
- @@ -510,9 +510,6 @@ int main(int argc, char *argv[])
- /* With altp2m we just create a new, restricted view of the memory */
- if ( memaccess && altp2m )
- {
- - xen_pfn_t gfn = 0;
- - unsigned long perm_set = 0;
- -
- rc = xc_altp2m_set_domain_state( xch, domain_id, 1 );
- if ( rc < 0 )
- {
- @@ -528,17 +525,6 @@ int main(int argc, char *argv[])
- }
- DPRINTF("altp2m view created with id %u\n", altp2m_view_id);
- - DPRINTF("Setting altp2m mem_access permissions.. ");
- -
- - for(; gfn < xenaccess->max_gpfn; ++gfn)
- - {
- - rc = xc_altp2m_set_mem_access( xch, domain_id, altp2m_view_id, gfn,
- - default_access);
- - if ( !rc )
- - perm_set++;
- - }
- -
- - DPRINTF("done! Permissions set on %lu pages.\n", perm_set);
- rc = xc_altp2m_switch_to_view( xch, domain_id, altp2m_view_id );
- if ( rc < 0 )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement