OSDN Git Service

hw/block: Fix pin-based interrupt behaviour of NVMe
authorHikaru Nishida <hikarupsp@gmail.com>
Mon, 18 Dec 2017 05:00:43 +0000 (14:00 +0900)
committerKevin Wolf <kwolf@redhat.com>
Tue, 23 Jan 2018 11:33:07 +0000 (12:33 +0100)
commit5e9aa92eb1a5abbb6e0e3dafdf64ac728e11b6f2
tree1f89a5cb82e559662ff77d72a75afefc4c164188
parentf86428a1f4f91a460ed585682af70d3e8c31dc06
hw/block: Fix pin-based interrupt behaviour of NVMe

Pin-based interrupt of NVMe controller did not work properly
because using an obsolated function pci_irq_pulse().
To fix this, change to use pci_irq_assert() / pci_irq_deassert()
instead of pci_irq_pulse().

Signed-off-by: Hikaru Nishida <hikarupsp@gmail.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/block/nvme.c
hw/block/nvme.h