qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

hw/intc/arm_gic: Document QEMU interface

The GICv2's QEMU interface (sysbus MMIO regions, IRQs,
etc) is now quite complicated with the addition of the
virtualization extensions. Add a comment in the header
file which documents it.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Luc Michel <luc.michel@greensocs.com>
Message-id: 20180823103818.31189-1-peter.maydell@linaro.org

+43
+43
include/hw/intc/arm_gic.h
··· 18 18 * with this program; if not, see <http://www.gnu.org/licenses/>. 19 19 */ 20 20 21 + /* 22 + * QEMU interface: 23 + * + QOM property "num-cpu": number of CPUs to support 24 + * + QOM property "num-irq": number of IRQs (including both SPIs and PPIs) 25 + * + QOM property "revision": GIC version (1 or 2), or 0 for the 11MPCore GIC 26 + * + QOM property "has-security-extensions": set true if the GIC should 27 + * implement the security extensions 28 + * + QOM property "has-virtualization-extensions": set true if the GIC should 29 + * implement the virtualization extensions 30 + * + unnamed GPIO inputs: (where P is number of SPIs, i.e. num-irq - 32) 31 + * [0..P-1] SPIs 32 + * [P..P+31] PPIs for CPU 0 33 + * [P+32..P+63] PPIs for CPU 1 34 + * ... 35 + * + sysbus IRQs: (in order; number will vary depending on number of cores) 36 + * - IRQ for CPU 0 37 + * - IRQ for CPU 1 38 + * ... 39 + * - FIQ for CPU 0 40 + * - FIQ for CPU 1 41 + * ... 42 + * - VIRQ for CPU 0 (exists even if virt extensions not present) 43 + * - VIRQ for CPU 1 (exists even if virt extensions not present) 44 + * ... 45 + * - VFIQ for CPU 0 (exists even if virt extensions not present) 46 + * - VFIQ for CPU 1 (exists even if virt extensions not present) 47 + * ... 48 + * - maintenance IRQ for CPU i/f 0 (only if virt extensions present) 49 + * - maintenance IRQ for CPU i/f 1 (only if virt extensions present) 50 + * + sysbus MMIO regions: (in order; numbers will vary depending on 51 + * whether virtualization extensions are present and on number of cores) 52 + * - distributor registers (GICD*) 53 + * - CPU interface for the accessing core (GICC*) 54 + * - virtual interface control registers (GICH*) (only if virt extns present) 55 + * - virtual CPU interface for the accessing core (GICV*) (only if virt) 56 + * - CPU 0 CPU interface registers 57 + * - CPU 1 CPU interface registers 58 + * ... 59 + * - CPU 0 virtual interface control registers (only if virt extns present) 60 + * - CPU 1 virtual interface control registers (only if virt extns present) 61 + * ... 62 + */ 63 + 21 64 #ifndef HW_ARM_GIC_H 22 65 #define HW_ARM_GIC_H 23 66