mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 17:11:33 +00:00
db3a4f0abe
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] 9df52f58e7
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>
28 lines
788 B
Plaintext
28 lines
788 B
Plaintext
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# Pvpanic Kconfig
|
|
#
|
|
# Copyright (C) 2021 Oracle.
|
|
#
|
|
|
|
config PVPANIC
|
|
bool "pvpanic device support"
|
|
help
|
|
This option allows to select a specific pvpanic device driver.
|
|
pvpanic is a paravirtualized device provided by QEMU; it lets
|
|
a virtual machine (guest) communicate panic events to the host.
|
|
|
|
config PVPANIC_MMIO
|
|
tristate "pvpanic MMIO device support"
|
|
depends on HAS_IOMEM && (ACPI || OF) && PVPANIC
|
|
help
|
|
This driver provides support for the MMIO pvpanic device.
|
|
|
|
config PVPANIC_PCI
|
|
tristate "pvpanic PCI device support"
|
|
depends on PCI && PVPANIC
|
|
help
|
|
This driver provides support for the PCI pvpanic device.
|
|
pvpanic is a paravirtualized device provided by QEMU which
|
|
forwards the panic events from the guest to the host.
|