Home
last modified time | relevance | path

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

/openbmc/linux/drivers/virt/acrn/
H A Dirqfd.c46 irqfd->msi.msi_data); in acrn_irqfd_inject()
57 eventfd_ctx_remove_wait_queue(irqfd->eventfd, &irqfd->wait, &cnt); in hsm_irqfd_shutdown()
59 kfree(irqfd); in hsm_irqfd_shutdown()
64 struct hsm_irqfd *irqfd; in hsm_irqfd_shutdown_work() local
68 vm = irqfd->vm; in hsm_irqfd_shutdown_work()
80 struct hsm_irqfd *irqfd; in hsm_irqfd_wakeup() local
84 vm = irqfd->vm; in hsm_irqfd_wakeup()
118 irqfd = kzalloc(sizeof(*irqfd), GFP_KERNEL); in acrn_irqfd_assign()
119 if (!irqfd) in acrn_irqfd_assign()
122 irqfd->vm = vm; in acrn_irqfd_assign()
[all …]
H A DMakefile3 acrn-y := hsm.o vm.o mm.o ioreq.o ioeventfd.o irqfd.o
H A Dhsm.c120 struct acrn_irqfd irqfd; in acrn_dev_ioctl() local
412 if (copy_from_user(&irqfd, (void __user *)ioctl_param, in acrn_dev_ioctl()
413 sizeof(irqfd))) in acrn_dev_ioctl()
415 ret = acrn_irqfd_config(vm, &irqfd); in acrn_dev_ioctl()
/openbmc/linux/virt/kvm/
H A Deventfd.c48 if (!irqfd->resampler) { in irqfd_inject()
135 eventfd_ctx_remove_wait_queue(irqfd->eventfd, &irqfd->wait, &cnt); in irqfd_shutdown()
155 kfree(irqfd); in irqfd_shutdown()
318 irqfd = kzalloc(sizeof(*irqfd), GFP_KERNEL_ACCOUNT); in kvm_irqfd_assign()
319 if (!irqfd) in kvm_irqfd_assign()
322 irqfd->kvm = kvm; in kvm_irqfd_assign()
386 list_add_rcu(&irqfd->resampler_link, &irqfd->resampler->list); in kvm_irqfd_assign()
429 irqfd->consumer.token = (void *)irqfd->eventfd; in kvm_irqfd_assign()
463 kfree(irqfd); in kvm_irqfd_assign()
560 if (irqfd->eventfd == eventfd && irqfd->gsi == args->gsi) { in kvm_irqfd_deassign()
[all …]
/openbmc/linux/drivers/vfio/
H A Dvirqfd.c116 struct fd irqfd; in vfio_virqfd_enable() local
136 irqfd = fdget(fd); in vfio_virqfd_enable()
137 if (!irqfd.file) { in vfio_virqfd_enable()
142 ctx = eventfd_ctx_fileget(irqfd.file); in vfio_virqfd_enable()
174 events = vfs_poll(irqfd.file, &virqfd->pt); in vfio_virqfd_enable()
189 fdput(irqfd); in vfio_virqfd_enable()
195 fdput(irqfd); in vfio_virqfd_enable()
/openbmc/linux/drivers/xen/
H A Dprivcmd.c946 if (copy_from_user(dm_op, u64_to_user_ptr(irqfd->dm_op), irqfd->size)) { in privcmd_irqfd_assign()
951 kirqfd->xbufs.size = irqfd->size; in privcmd_irqfd_assign()
953 kirqfd->dom = irqfd->dom; in privcmd_irqfd_assign()
956 f = fdget(irqfd->fd); in privcmd_irqfd_assign()
1023 eventfd = eventfd_ctx_fdget(irqfd->fd); in privcmd_irqfd_deassign()
1053 struct privcmd_irqfd irqfd; in privcmd_ioctl_irqfd() local
1055 if (copy_from_user(&irqfd, udata, sizeof(irqfd))) in privcmd_ioctl_irqfd()
1059 if (irqfd.flags & ~PRIVCMD_IRQFD_FLAG_DEASSIGN) in privcmd_ioctl_irqfd()
1066 if (irqfd.flags & PRIVCMD_IRQFD_FLAG_DEASSIGN) in privcmd_ioctl_irqfd()
1067 return privcmd_irqfd_deassign(&irqfd); in privcmd_ioctl_irqfd()
[all …]
H A DKconfig273 bool "Xen irqfd support"
276 Using the irqfd mechanism a virtio backend running in a daemon can
/openbmc/qemu/hw/virtio/
H A Dvirtio-pci.c820 VirtIOIRQFD *irqfd = &proxy->vector_irqfd[vector]; in kvm_virtio_pci_vq_vector_use() local
823 if (irqfd->users == 0) { in kvm_virtio_pci_vq_vector_use()
830 irqfd->virq = ret; in kvm_virtio_pci_vq_vector_use()
832 irqfd->users++; in kvm_virtio_pci_vq_vector_use()
839 VirtIOIRQFD *irqfd = &proxy->vector_irqfd[vector]; in kvm_virtio_pci_vq_vector_release() local
840 if (--irqfd->users == 0) { in kvm_virtio_pci_vq_vector_release()
849 VirtIOIRQFD *irqfd = &proxy->vector_irqfd[vector]; in kvm_virtio_pci_irqfd_use() local
857 VirtIOIRQFD *irqfd = &proxy->vector_irqfd[vector]; in kvm_virtio_pci_irqfd_release() local
989 VirtIOIRQFD *irqfd; in virtio_pci_one_vector_unmask() local
993 irqfd = &proxy->vector_irqfd[vector]; in virtio_pci_one_vector_unmask()
[all …]
/openbmc/linux/arch/arm64/kvm/
H A Darm.c2367 struct kvm_kernel_irqfd *irqfd = in kvm_arch_irq_bypass_add_producer() local
2370 return kvm_vgic_v4_set_forwarding(irqfd->kvm, prod->irq, in kvm_arch_irq_bypass_add_producer()
2371 &irqfd->irq_entry); in kvm_arch_irq_bypass_add_producer()
2376 struct kvm_kernel_irqfd *irqfd = in kvm_arch_irq_bypass_del_producer() local
2379 kvm_vgic_v4_unset_forwarding(irqfd->kvm, prod->irq, in kvm_arch_irq_bypass_del_producer()
2380 &irqfd->irq_entry); in kvm_arch_irq_bypass_del_producer()
2385 struct kvm_kernel_irqfd *irqfd = in kvm_arch_irq_bypass_stop() local
2388 kvm_arm_halt_guest(irqfd->kvm); in kvm_arch_irq_bypass_stop()
2393 struct kvm_kernel_irqfd *irqfd = in kvm_arch_irq_bypass_start() local
2396 kvm_arm_resume_guest(irqfd->kvm); in kvm_arch_irq_bypass_start()
H A DMakefile19 vgic/vgic-irqfd.o vgic/vgic-v2.o \
/openbmc/linux/tools/testing/selftests/kvm/aarch64/
H A Dvgic_irq.c636 struct kvm_irqfd irqfd = { in kvm_routing_and_irqfd_check() local
641 vm_ioctl(vm, KVM_IRQFD, &irqfd); in kvm_routing_and_irqfd_check()
/openbmc/linux/arch/powerpc/kvm/
H A Dbook3s_hv.c5782 struct kvm_kernel_irqfd *irqfd = in kvmppc_irq_bypass_add_producer_hv() local
5785 irqfd->producer = prod; in kvmppc_irq_bypass_add_producer_hv()
5787 ret = kvmppc_set_passthru_irq(irqfd->kvm, prod->irq, irqfd->gsi); in kvmppc_irq_bypass_add_producer_hv()
5790 prod->irq, irqfd->gsi, ret); in kvmppc_irq_bypass_add_producer_hv()
5799 struct kvm_kernel_irqfd *irqfd = in kvmppc_irq_bypass_del_producer_hv() local
5802 irqfd->producer = NULL; in kvmppc_irq_bypass_del_producer_hv()
5809 ret = kvmppc_clr_passthru_irq(irqfd->kvm, prod->irq, irqfd->gsi); in kvmppc_irq_bypass_del_producer_hv()
5812 prod->irq, irqfd->gsi, ret); in kvmppc_irq_bypass_del_producer_hv()
H A Dpowerpc.c873 struct kvm_kernel_irqfd *irqfd = in kvm_arch_irq_bypass_add_producer() local
875 struct kvm *kvm = irqfd->kvm; in kvm_arch_irq_bypass_add_producer()
886 struct kvm_kernel_irqfd *irqfd = in kvm_arch_irq_bypass_del_producer() local
888 struct kvm *kvm = irqfd->kvm; in kvm_arch_irq_bypass_del_producer()
/openbmc/qemu/accel/kvm/
H A Dkvm-all.c2230 struct kvm_irqfd irqfd = { in kvm_irqchip_assign_irqfd() local
2257 irqfd.flags |= KVM_IRQFD_FLAG_RESAMPLE; in kvm_irqchip_assign_irqfd()
2258 irqfd.resamplefd = rfd; in kvm_irqchip_assign_irqfd()
2266 return kvm_vm_ioctl(s, KVM_IRQFD, &irqfd); in kvm_irqchip_assign_irqfd()
/openbmc/linux/arch/x86/kvm/
H A Dx86.c13248 struct kvm_kernel_irqfd *irqfd = in kvm_arch_irq_bypass_add_producer() local
13252 irqfd->producer = prod; in kvm_arch_irq_bypass_add_producer()
13253 kvm_arch_start_assignment(irqfd->kvm); in kvm_arch_irq_bypass_add_producer()
13255 prod->irq, irqfd->gsi, 1); in kvm_arch_irq_bypass_add_producer()
13258 kvm_arch_end_assignment(irqfd->kvm); in kvm_arch_irq_bypass_add_producer()
13267 struct kvm_kernel_irqfd *irqfd = in kvm_arch_irq_bypass_del_producer() local
13270 WARN_ON(irqfd->producer != prod); in kvm_arch_irq_bypass_del_producer()
13271 irqfd->producer = NULL; in kvm_arch_irq_bypass_del_producer()
13279 ret = static_call(kvm_x86_pi_update_irte)(irqfd->kvm, prod->irq, irqfd->gsi, 0); in kvm_arch_irq_bypass_del_producer()
13282 " fails: %d\n", irqfd->consumer.token, ret); in kvm_arch_irq_bypass_del_producer()
[all …]
/openbmc/qemu/docs/devel/
H A Dmulti-process.rst145 written. This irqfd file descriptor is then passed to the vhost user
/openbmc/linux/Documentation/virt/kvm/
H A Dapi.rst3102 the guest using the specified gsi pin. The irqfd is removed using
3107 mechanism allowing emulation of level-triggered, irqfd-based
3116 irqfd. The KVM_IRQFD_FLAG_RESAMPLE is only necessary on assignment