Re: [PATCH V5 1/6] vhost: introduce vhost_vring_call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 2020/8/4 下午5:21, Zhu, Lingshan wrote:
Hi Jason,

we use this lock to protect the eventfd_ctx and irq from race conditions,


We don't support irq notification from vDPA device driver in this version, do we still have race condition?
as we discussed before:
(1)if vendor change IRQ after DRIVER_OK, through they should not do this, but they can.
(2)if user space changes ctx.

Thanks


Yes, but then everything happens in context of syscall (ioctl), so vq mutex is sufficient I guess?

Thanks




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux