Lines Matching refs:gvsid

66 static u16 kvmppc_sid_hash(struct kvm_vcpu *vcpu, u64 gvsid)  in kvmppc_sid_hash()  argument
68 return (u16)(((gvsid >> (SID_MAP_BITS * 7)) & SID_MAP_MASK) ^ in kvmppc_sid_hash()
69 ((gvsid >> (SID_MAP_BITS * 6)) & SID_MAP_MASK) ^ in kvmppc_sid_hash()
70 ((gvsid >> (SID_MAP_BITS * 5)) & SID_MAP_MASK) ^ in kvmppc_sid_hash()
71 ((gvsid >> (SID_MAP_BITS * 4)) & SID_MAP_MASK) ^ in kvmppc_sid_hash()
72 ((gvsid >> (SID_MAP_BITS * 3)) & SID_MAP_MASK) ^ in kvmppc_sid_hash()
73 ((gvsid >> (SID_MAP_BITS * 2)) & SID_MAP_MASK) ^ in kvmppc_sid_hash()
74 ((gvsid >> (SID_MAP_BITS * 1)) & SID_MAP_MASK) ^ in kvmppc_sid_hash()
75 ((gvsid >> (SID_MAP_BITS * 0)) & SID_MAP_MASK)); in kvmppc_sid_hash()
79 static struct kvmppc_sid_map *find_sid_vsid(struct kvm_vcpu *vcpu, u64 gvsid) in find_sid_vsid() argument
85 gvsid |= VSID_PR; in find_sid_vsid()
87 sid_map_mask = kvmppc_sid_hash(vcpu, gvsid); in find_sid_vsid()
89 if (map->guest_vsid == gvsid) { in find_sid_vsid()
91 gvsid, map->host_vsid); in find_sid_vsid()
96 if (map->guest_vsid == gvsid) { in find_sid_vsid()
98 gvsid, map->host_vsid); in find_sid_vsid()
102 dprintk_sr("SR: Searching 0x%llx -> not found\n", gvsid); in find_sid_vsid()
263 static struct kvmppc_sid_map *create_sid_map(struct kvm_vcpu *vcpu, u64 gvsid) in create_sid_map() argument
271 gvsid |= VSID_PR; in create_sid_map()
276 sid_map_mask = kvmppc_sid_hash(vcpu, gvsid); in create_sid_map()
296 map->guest_vsid = gvsid; in create_sid_map()
305 u64 gvsid; in kvmppc_mmu_map_segment() local
311 if (vcpu->arch.mmu.esid_to_vsid(vcpu, esid, &gvsid)) { in kvmppc_mmu_map_segment()
318 map = find_sid_vsid(vcpu, gvsid); in kvmppc_mmu_map_segment()
320 map = create_sid_map(vcpu, gvsid); in kvmppc_mmu_map_segment()