x86/passthrough: introduce a flag for GSIs not requiring an EOI or unmask
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 10 Jun 2020 14:29:23 +0000 (16:29 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 11 Jun 2020 17:14:29 +0000 (18:14 +0100)
commit2995d0afdf2d3fb44d07eada088db3613741db1e
tree29dd7ede6a51cb67b565210a0fdfffe5400ac0a2
parent6fa25d568f4e597b1940309d97cfd98f4f6eecd6
x86/passthrough: introduce a flag for GSIs not requiring an EOI or unmask

There's no need to setup a timer for GSIs that are edge triggered,
since those don't require any EIO or unmask, and hence couldn't block
other interrupts.

Note this is only used by PVH dom0, that can setup the passthrough of
edge triggered interrupts from the vIO-APIC. One example of such kind
of interrupt that can be used by a PVH dom0 would be the RTC timer.

While there introduce an out label to do the unlock and reduce code
duplication.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Paul Durrant <paul@xen.org>
xen/drivers/passthrough/io.c
xen/include/asm-x86/hvm/irq.h