diff options
author | Cédric Le Goater <clg@kaod.org> | 2018-12-11 23:38:14 +0100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2018-12-21 09:39:07 +1100 |
commit | 6e21de4a50fa1caf163e12a6c90424b750119f96 (patch) | |
tree | d4a898138b813002a15d0dc60619929bcba8d27a /qemu-io-cmds.c | |
parent | 23bcd5eb9a472cc7bd147403d9ba18e293ee6adc (diff) | |
download | qemu-6e21de4a50fa1caf163e12a6c90424b750119f96.zip qemu-6e21de4a50fa1caf163e12a6c90424b750119f96.tar.gz qemu-6e21de4a50fa1caf163e12a6c90424b750119f96.tar.bz2 |
spapr: add device tree support for the XIVE exploitation mode
The XIVE interface for the guest is described in the device tree under
the "interrupt-controller" node. A couple of new properties are
specific to XIVE :
- "reg"
contains the base address and size of the thread interrupt
managnement areas (TIMA), for the User level and for the Guest OS
level. Only the Guest OS level is taken into account today.
- "ibm,xive-eq-sizes"
the size of the event queues. One cell per size supported, contains
log2 of size, in ascending order.
- "ibm,xive-lisn-ranges"
the IRQ interrupt number ranges assigned to the guest for the IPIs.
and also under the root node :
- "ibm,plat-res-int-priorities"
contains a list of priorities that the hypervisor has reserved for
its own use. OPAL uses the priority 7 queue to automatically
escalate interrupts for all other queues (DD2.X POWER9). So only
priorities [0..6] are allowed for the guest.
Extend the sPAPR IRQ backend with a new handler to populate the DT
with the appropriate "interrupt-controller" node.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
[dwg: Fix style nits]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'qemu-io-cmds.c')
0 files changed, 0 insertions, 0 deletions