^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /sys/bus/pci/drivers/pciback/quirks
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) Date: Oct 2011
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) KernelVersion: 3.1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Contact: xen-devel@lists.xenproject.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) If the permissive attribute is set, then writing a string in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) the format of DDDD:BB:DD.F-REG:SIZE:MASK will allow the guest
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) to write and read from the PCI device. That is Domain:Bus:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) Device.Function-Register:Size:Mask (Domain is optional).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) For example::
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #echo 00:19.0-E0:2:FF > /sys/bus/pci/drivers/pciback/quirks
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) will allow the guest to read and write to the configuration
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) register 0x0E.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) What: /sys/bus/pci/drivers/pciback/allow_interrupt_control
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) Date: Jan 2020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) KernelVersion: 5.6
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) Contact: xen-devel@lists.xenproject.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) List of devices which can have interrupt control flag (INTx,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) MSI, MSI-X) set by a connected guest. It is meant to be set
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) only when the guest is a stubdomain hosting device model (qemu)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) and the actual device is assigned to a HVM. It is not safe
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) (similar to permissive attribute) to set for a devices assigned
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) to a PV guest. The device is automatically removed from this
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) list when the connected pcifront terminates.