Re: [Qemu-devel] irqfd for QEMU NVMe

2017-09-11 Thread Stefan Hajnoczi
On Fri, Sep 08, 2017 at 04:17:32PM -0500, Huaicheng Li wrote:
> I'm writing to ask if it's possible to use irqfd mechanism in QEMU's NVMe
> virtual controller implementation. My search results show that back in
> 2015, there is a discussion on improving QEMU NVMe performance by utilizing
> eventfd for guest-to-host notification, thus i guess irqfd should also work
> ? If so, could you briefly describe how to do that and how much can we save
> for the host-to-guest notification path by using irqfd?

You'd could benchmark it to find out but I have a vague memory that the
ioctl() is actually faster for injecting interrupts than irqfd.

Stefan



[Qemu-devel] irqfd for QEMU NVMe

2017-09-08 Thread Huaicheng Li
Hi all,

I'm writing to ask if it's possible to use irqfd mechanism in QEMU's NVMe
virtual controller implementation. My search results show that back in
2015, there is a discussion on improving QEMU NVMe performance by utilizing
eventfd for guest-to-host notification, thus i guess irqfd should also work
? If so, could you briefly describe how to do that and how much can we save
for the host-to-guest notification path by using irqfd?

Thanks for your time.

Best,
Huaicheng