Lines Matching refs:sh

1161     switch ( sp->u.sh.type )  in shadow_unhook_mappings()
1174 SHADOW_ERROR("top-level shadow has bad type %08x\n", sp->u.sh.type); in shadow_unhook_mappings()
1405 sp->u.sh.type = shadow_type; in shadow_alloc()
1406 sp->u.sh.pinned = 0; in shadow_alloc()
1407 sp->u.sh.count = 0; in shadow_alloc()
1408 sp->u.sh.head = 0; in shadow_alloc()
1409 sp->v.sh.back = backpointer; in shadow_alloc()
1415 sp->u.sh.head = 1; in shadow_alloc()
1435 shadow_type = sp->u.sh.type; in shadow_free()
1437 ASSERT(sp->u.sh.head || (shadow_type > SH_type_max_shadow)); in shadow_free()
1462 sp->u.sh.type = sp->u.sh.head = 0; in shadow_free()
1528 pg->u.sh.type = SH_type_p2m_table; /* p2m code reuses type-info */ in shadow_free_p2m_page()
1580 sp->u.sh.type = 0; in shadow_set_allocation()
1581 sp->u.sh.pinned = 0; in shadow_set_allocation()
1582 sp->u.sh.count = 0; in shadow_set_allocation()
1879 BUG_ON( sp->u.sh.type == 0 ); in sh_hash_audit_bucket()
1880 BUG_ON( sp->u.sh.type > SH_type_max_shadow ); in sh_hash_audit_bucket()
1882 BUG_ON( !sp->u.sh.head ); in sh_hash_audit_bucket()
1884 BUG_ON( sh_hash(__backpointer(sp), sp->u.sh.type) != bucket ); in sh_hash_audit_bucket()
1887 BUG_ON( x->v.sh.back == sp->v.sh.back && in sh_hash_audit_bucket()
1888 x->u.sh.type == sp->u.sh.type ); in sh_hash_audit_bucket()
1890 if ( sp->u.sh.type != SH_type_fl1_32_shadow in sh_hash_audit_bucket()
1891 && sp->u.sh.type != SH_type_fl1_pae_shadow in sh_hash_audit_bucket()
1892 && sp->u.sh.type != SH_type_fl1_64_shadow ) in sh_hash_audit_bucket()
1896 BUG_ON( !(gpg->shadow_flags & (1<<sp->u.sh.type)) ); in sh_hash_audit_bucket()
1899 if ( sp->u.sh.type == SH_type_l1_32_shadow in sh_hash_audit_bucket()
1900 || sp->u.sh.type == SH_type_l1_pae_shadow in sh_hash_audit_bucket()
1901 || sp->u.sh.type == SH_type_l1_64_shadow ) in sh_hash_audit_bucket()
2007 if ( __backpointer(sp) == n && sp->u.sh.type == t ) in shadow_hash_lookup()
2142 if ( callback_mask & (1 << x->u.sh.type) ) in hash_vcpu_foreach()
2144 ASSERT(x->u.sh.type <= 15); in hash_vcpu_foreach()
2145 ASSERT(callbacks[x->u.sh.type] != NULL); in hash_vcpu_foreach()
2146 done = callbacks[x->u.sh.type](v, page_to_mfn(x), in hash_vcpu_foreach()
2189 if ( callback_mask & (1 << x->u.sh.type) ) in hash_domain_foreach()
2191 ASSERT(x->u.sh.type <= 15); in hash_domain_foreach()
2192 ASSERT(callbacks[x->u.sh.type] != NULL); in hash_domain_foreach()
2193 done = callbacks[x->u.sh.type](d, page_to_mfn(x), in hash_domain_foreach()
2212 unsigned int t = sp->u.sh.type; in sh_destroy_shadow()
2472 int shtype = mfn_to_page(last_smfn)->u.sh.type; in sh_remove_write_access()
2520 if ( sp->u.sh.type == SH_type_l1_32_shadow in sh_remove_write_access_from_sl1p()
2521 || sp->u.sh.type == SH_type_fl1_32_shadow ) in sh_remove_write_access_from_sl1p()
2526 else if ( sp->u.sh.type == SH_type_l1_pae_shadow in sh_remove_write_access_from_sl1p()
2527 || sp->u.sh.type == SH_type_fl1_pae_shadow ) in sh_remove_write_access_from_sl1p()
2530 else if ( sp->u.sh.type == SH_type_l1_64_shadow in sh_remove_write_access_from_sl1p()
2531 || sp->u.sh.type == SH_type_fl1_64_shadow ) in sh_remove_write_access_from_sl1p()
2635 ASSERT(sp->u.sh.type > 0); in sh_remove_shadow_via_pointer()
2636 ASSERT(sp->u.sh.type < SH_type_max_shadow); in sh_remove_shadow_via_pointer()
2637 ASSERT(sh_type_has_up_pointer(d, sp->u.sh.type)); in sh_remove_shadow_via_pointer()
2648 rc = (sp->u.sh.count == 1) ? 1 : 0; in sh_remove_shadow_via_pointer()
2651 switch (sp->u.sh.type) in sh_remove_shadow_via_pointer()