misc/pvpanic: add PCI driver
authorMihai Carabas <mihai.carabas@oracle.com>
Wed, 24 Mar 2021 14:49:16 +0000 (16:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Mar 2021 12:57:11 +0000 (14:57 +0200)
commitdb3a4f0abefd7be96089fcd74029c259df3bed76
tree757c7c77f089f01df358a9001b6a44ae5ff85827
parentb3c0f8774668fd30a3efb2d0afc1a6527dacb858
misc/pvpanic: add PCI driver

Add support for pvpanic PCI device added in qemu [1]. At probe time, obtain the
address where to read/write pvpanic events and pass it to the generic handling
code. Will follow the same logic as pvpanic MMIO device driver. At remove time,
unmap base address and disable PCI device.

[1] https://github.com/qemu/qemu/commit/9df52f58e76e904fb141b10318362d718f470db2

Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Link: https://lore.kernel.org/r/1616597356-20696-4-git-send-email-mihai.carabas@oracle.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-bus-pci-devices-pvpanic
drivers/misc/pvpanic/Kconfig
drivers/misc/pvpanic/Makefile
drivers/misc/pvpanic/pvpanic-pci.c [new file with mode: 0644]