mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08: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>
27 lines
911 B
Plaintext
27 lines
911 B
Plaintext
What: /sys/devices/pci0000:00/*/QEMU0001:00/capability for MMIO
|
|
/sys/bus/pci/drivers/pvpanic-pci/0000:00:0*.0/capability for PCI
|
|
Date: Jan 2021
|
|
Contact: zhenwei pi <pizhenwei@bytedance.com>
|
|
Description:
|
|
Read-only attribute. Capabilities of pvpanic device which
|
|
are supported by QEMU.
|
|
|
|
Format: %x.
|
|
|
|
Detailed bit definition refers to section <Bit Definition>
|
|
from pvpanic device specification:
|
|
https://git.qemu.org/?p=qemu.git;a=blob_plain;f=docs/specs/pvpanic.txt
|
|
|
|
What: /sys/devices/pci0000:00/*/QEMU0001:00/events
|
|
/sys/bus/pci/drivers/pvpanic-pci/0000:00:0*.0/events for PCI
|
|
Date: Jan 2021
|
|
Contact: zhenwei pi <pizhenwei@bytedance.com>
|
|
Description:
|
|
RW attribute. Set/get which features in-use. This attribute
|
|
is used to enable/disable feature(s) of pvpanic device.
|
|
Notice that this value should be a subset of capability.
|
|
|
|
Format: %x.
|
|
|
|
Also refer to pvpanic device specification.
|