Re: [PATCH 2/2] vfio_pci: make use of update_irq_devid and optimize irq ops

2019-08-11 Thread luoben
在 2019/8/12 下午1:44, Yunsheng Lin 写道: On 2019/8/8 20:07, Ben Luo wrote: When userspace (e.g. qemu) triggers a switch between KVM irqfd and userspace eventfd, only dev_id of irq action (i.e. the "trigger" in this patch's context) will be changed, but a free-then-request-irq action is taken in cu

Re: [PATCH 2/2] vfio_pci: make use of update_irq_devid and optimize irq ops

2019-08-11 Thread Yunsheng Lin
On 2019/8/8 20:07, Ben Luo wrote: > When userspace (e.g. qemu) triggers a switch between KVM > irqfd and userspace eventfd, only dev_id of irq action > (i.e. the "trigger" in this patch's context) will be > changed, but a free-then-request-irq action is taken in > current code. And, irq affinity se

[PATCH 2/2] vfio_pci: make use of update_irq_devid and optimize irq ops

2019-08-08 Thread Ben Luo
When userspace (e.g. qemu) triggers a switch between KVM irqfd and userspace eventfd, only dev_id of irq action (i.e. the "trigger" in this patch's context) will be changed, but a free-then-request-irq action is taken in current code. And, irq affinity setting in VM will also trigger a free-then-re