Home
last modified time | relevance | path

Searched refs:varch (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/arch/riscv/kvm/
Dtlb.c207 struct kvm_vcpu_arch *varch = &vcpu->arch; in vcpu_hfence_dequeue() local
209 spin_lock(&varch->hfence_lock); in vcpu_hfence_dequeue()
211 if (varch->hfence_queue[varch->hfence_head].type) { in vcpu_hfence_dequeue()
212 memcpy(out_data, &varch->hfence_queue[varch->hfence_head], in vcpu_hfence_dequeue()
214 varch->hfence_queue[varch->hfence_head].type = 0; in vcpu_hfence_dequeue()
216 varch->hfence_head++; in vcpu_hfence_dequeue()
217 if (varch->hfence_head == KVM_RISCV_VCPU_MAX_HFENCE) in vcpu_hfence_dequeue()
218 varch->hfence_head = 0; in vcpu_hfence_dequeue()
223 spin_unlock(&varch->hfence_lock); in vcpu_hfence_dequeue()
232 struct kvm_vcpu_arch *varch = &vcpu->arch; in vcpu_hfence_enqueue() local
[all …]