Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/virt/kvm/
Deventfd.c44 struct kvm_kernel_irqfd *irqfd = in irqfd_inject() local
46 struct kvm *kvm = irqfd->kvm; in irqfd_inject()
48 if (!irqfd->resampler) { in irqfd_inject()
49 kvm_set_irq(kvm, KVM_USERSPACE_IRQ_SOURCE_ID, irqfd->gsi, 1, in irqfd_inject()
51 kvm_set_irq(kvm, KVM_USERSPACE_IRQ_SOURCE_ID, irqfd->gsi, 0, in irqfd_inject()
55 irqfd->gsi, 1, false); in irqfd_inject()
68 struct kvm_kernel_irqfd *irqfd; in irqfd_resampler_ack() local
80 list_for_each_entry_rcu(irqfd, &resampler->list, resampler_link) in irqfd_resampler_ack()
81 eventfd_signal(irqfd->resamplefd, 1); in irqfd_resampler_ack()
87 irqfd_resampler_shutdown(struct kvm_kernel_irqfd *irqfd) in irqfd_resampler_shutdown() argument
[all …]
/kernel/linux/linux-5.10/drivers/vfio/
Dvirqfd.c109 struct fd irqfd; in vfio_virqfd_enable() local
128 irqfd = fdget(fd); in vfio_virqfd_enable()
129 if (!irqfd.file) { in vfio_virqfd_enable()
134 ctx = eventfd_ctx_fileget(irqfd.file); in vfio_virqfd_enable()
166 events = vfs_poll(irqfd.file, &virqfd->pt); in vfio_virqfd_enable()
181 fdput(irqfd); in vfio_virqfd_enable()
187 fdput(irqfd); in vfio_virqfd_enable()
/kernel/linux/linux-5.10/arch/arm64/kvm/
Darm.c1720 struct kvm_kernel_irqfd *irqfd = in kvm_arch_irq_bypass_add_producer() local
1723 return kvm_vgic_v4_set_forwarding(irqfd->kvm, prod->irq, in kvm_arch_irq_bypass_add_producer()
1724 &irqfd->irq_entry); in kvm_arch_irq_bypass_add_producer()
1729 struct kvm_kernel_irqfd *irqfd = in kvm_arch_irq_bypass_del_producer() local
1732 kvm_vgic_v4_unset_forwarding(irqfd->kvm, prod->irq, in kvm_arch_irq_bypass_del_producer()
1733 &irqfd->irq_entry); in kvm_arch_irq_bypass_del_producer()
1738 struct kvm_kernel_irqfd *irqfd = in kvm_arch_irq_bypass_stop() local
1741 kvm_arm_halt_guest(irqfd->kvm); in kvm_arch_irq_bypass_stop()
1746 struct kvm_kernel_irqfd *irqfd = in kvm_arch_irq_bypass_start() local
1749 kvm_arm_resume_guest(irqfd->kvm); in kvm_arch_irq_bypass_start()
DMakefile21 vgic/vgic-irqfd.o vgic/vgic-v2.o \
/kernel/linux/linux-5.10/arch/powerpc/kvm/
Dbook3s_hv.c5286 struct kvm_kernel_irqfd *irqfd = in kvmppc_irq_bypass_add_producer_hv() local
5289 irqfd->producer = prod; in kvmppc_irq_bypass_add_producer_hv()
5291 ret = kvmppc_set_passthru_irq(irqfd->kvm, prod->irq, irqfd->gsi); in kvmppc_irq_bypass_add_producer_hv()
5294 prod->irq, irqfd->gsi, ret); in kvmppc_irq_bypass_add_producer_hv()
5303 struct kvm_kernel_irqfd *irqfd = in kvmppc_irq_bypass_del_producer_hv() local
5306 irqfd->producer = NULL; in kvmppc_irq_bypass_del_producer_hv()
5313 ret = kvmppc_clr_passthru_irq(irqfd->kvm, prod->irq, irqfd->gsi); in kvmppc_irq_bypass_del_producer_hv()
5316 prod->irq, irqfd->gsi, ret); in kvmppc_irq_bypass_del_producer_hv()
Dpowerpc.c841 struct kvm_kernel_irqfd *irqfd = in kvm_arch_irq_bypass_add_producer() local
843 struct kvm *kvm = irqfd->kvm; in kvm_arch_irq_bypass_add_producer()
854 struct kvm_kernel_irqfd *irqfd = in kvm_arch_irq_bypass_del_producer() local
856 struct kvm *kvm = irqfd->kvm; in kvm_arch_irq_bypass_del_producer()
/kernel/linux/linux-5.10/arch/x86/kvm/
Dx86.c11349 struct kvm_kernel_irqfd *irqfd = in kvm_arch_irq_bypass_add_producer() local
11353 irqfd->producer = prod; in kvm_arch_irq_bypass_add_producer()
11354 kvm_arch_start_assignment(irqfd->kvm); in kvm_arch_irq_bypass_add_producer()
11355 ret = kvm_x86_ops.update_pi_irte(irqfd->kvm, in kvm_arch_irq_bypass_add_producer()
11356 prod->irq, irqfd->gsi, 1); in kvm_arch_irq_bypass_add_producer()
11359 kvm_arch_end_assignment(irqfd->kvm); in kvm_arch_irq_bypass_add_producer()
11368 struct kvm_kernel_irqfd *irqfd = in kvm_arch_irq_bypass_del_producer() local
11371 WARN_ON(irqfd->producer != prod); in kvm_arch_irq_bypass_del_producer()
11372 irqfd->producer = NULL; in kvm_arch_irq_bypass_del_producer()
11380 ret = kvm_x86_ops.update_pi_irte(irqfd->kvm, prod->irq, irqfd->gsi, 0); in kvm_arch_irq_bypass_del_producer()
[all …]
/kernel/linux/linux-5.10/Documentation/virt/kvm/
Dapi.rst2804 the guest using the specified gsi pin. The irqfd is removed using
2809 mechanism allowing emulation of level-triggered, irqfd-based
2818 irqfd. The KVM_IRQFD_FLAG_RESAMPLE is only necessary on assignment