• Home
  • Raw
  • Download

Lines Matching refs:role

1062 		if (sp->gfn == gfn && !sp->role.metaphysical  in kvm_mmu_lookup_page()
1063 && !sp->role.invalid) { in kvm_mmu_lookup_page()
1065 __func__, sp->role.word); in kvm_mmu_lookup_page()
1090 if (sp->role.glevels != vcpu->arch.mmu.root_level) { in kvm_sync_page()
1126 if (sp->role.level == PT_PAGE_TABLE_LEVEL) { in mmu_pages_next()
1131 parents->parent[sp->role.level-2] = sp; in mmu_pages_next()
1132 parents->idx[sp->role.level-1] = pvec->page[n].idx; in mmu_pages_next()
1161 parents->parent[parent->role.level-1] = NULL; in kvm_mmu_pages_init()
1200 union kvm_mmu_page_role role; in kvm_mmu_get_page() local
1207 role.word = 0; in kvm_mmu_get_page()
1208 role.glevels = vcpu->arch.mmu.root_level; in kvm_mmu_get_page()
1209 role.level = level; in kvm_mmu_get_page()
1210 role.metaphysical = metaphysical; in kvm_mmu_get_page()
1211 role.access = access; in kvm_mmu_get_page()
1215 role.quadrant = quadrant; in kvm_mmu_get_page()
1218 gfn, role.word); in kvm_mmu_get_page()
1227 if (sp->role.word != role.word) in kvm_mmu_get_page()
1242 pgprintk("%s: adding gfn %lx role %x\n", __func__, gfn, role.word); in kvm_mmu_get_page()
1244 sp->role = role; in kvm_mmu_get_page()
1298 if (sp->role.level == PT_PAGE_TABLE_LEVEL) { in kvm_mmu_page_unlink_children()
1365 if (parent->role.level == PT_PAGE_TABLE_LEVEL) in mmu_zap_unsync_children()
1391 if (!sp->role.invalid && !sp->role.metaphysical) in kvm_mmu_zap_page()
1399 sp->role.invalid = 1; in kvm_mmu_zap_page()
1454 if (sp->gfn == gfn && !sp->role.metaphysical) { in kvm_mmu_unprotect_page()
1456 sp->role.word); in kvm_mmu_unprotect_page()
1469 pgprintk("%s: zap %lx %x\n", __func__, gfn, sp->role.word); in mmu_unshadow()
1625 if (s->gfn != sp->gfn || s->role.metaphysical) in kvm_unsync_page()
1627 if (s->role.word != sp->role.word) in kvm_unsync_page()
1650 if (shadow->role.level != PT_PAGE_TABLE_LEVEL) in mmu_need_write_protect()
1938 if (!sp->root_count && sp->role.invalid) in mmu_free_roots()
1951 if (!sp->root_count && sp->role.invalid) in mmu_free_roots()
2326 if (sp->role.level == PT_PAGE_TABLE_LEVEL || in mmu_pte_write_zap_pte()
2344 if (sp->role.level != PT_PAGE_TABLE_LEVEL) { in mmu_pte_write_new_pte()
2346 sp->role.glevels == PT32_ROOT_LEVEL) { in mmu_pte_write_new_pte()
2353 if (sp->role.glevels == PT32_ROOT_LEVEL) in mmu_pte_write_new_pte()
2495 if (sp->gfn != gfn || sp->role.metaphysical || sp->role.invalid) in kvm_mmu_pte_write()
2497 pte_size = sp->role.glevels == PT32_ROOT_LEVEL ? 4 : 8; in kvm_mmu_pte_write()
2512 gpa, bytes, sp->role.word); in kvm_mmu_pte_write()
2519 level = sp->role.level; in kvm_mmu_pte_write()
2521 if (sp->role.glevels == PT32_ROOT_LEVEL) { in kvm_mmu_pte_write()
2535 if (quadrant != sp->role.quadrant) in kvm_mmu_pte_write()
3099 if (sp->role.level != PT_PAGE_TABLE_LEVEL) in count_writable_mappings()
3133 if (sp->role.metaphysical) in audit_write_protection()
3143 sp->role.word); in audit_write_protection()