qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] hw/nvme: Add iothread support


From: Jinhao Fan
Subject: Re: [PATCH] hw/nvme: Add iothread support
Date: Wed, 27 Jul 2022 10:56:35 +0800

at 2:07 AM, Keith Busch <kbusch@kernel.org> wrote:

> MSI-x uses MMIO for masking, so there's no need for an NVMe specific way to
> mask these interrupts. You can just use the generic PCIe methods to clear the
> vector's enable bit. But no NVMe driver that I know of is making use of these
> either, though it should be possible to make linux start doing that.

I believe we need to handle MSI-x masking in the NVMe controller after we
switch to irqfd. Before that QEMU’s MSI-x emulation logic helps us handle
masked interrupts. But with irqfd, we bypass QEMU’s MSI-x and let the kernel
send the interrupt directly. Therefore qemu-nvme needs to do some
bookkeeping about which interrupt vectors are masked.
msix_set_vector_notifiers helps us do that.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]