x86/passthrough: do not assert edge triggered GSIs for PVH dom0
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 10 Jun 2020 14:29:22 +0000 (16:29 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 11 Jun 2020 17:14:29 +0000 (18:14 +0100)
commit6fa25d568f4e597b1940309d97cfd98f4f6eecd6
tree954f53ab1dc93f7d849983aa55bed7e17c96d565
parent3664f7b7788b66bb802432e6748be0fb57993581
x86/passthrough: do not assert edge triggered GSIs for PVH dom0

Edge triggered interrupts do not assert the line, so the handling done
in Xen should also avoid asserting it. Asserting the line prevents
further edge triggered interrupts on the same vIO-APIC pin from being
delivered, since the line is not de-asserted.

One case of such kind of interrupt is the RTC timer, which is edge
triggered and available to a PVH dom0. Note this should not affect
domUs, as it only modifies the behavior of IDENTITY_GSI kind of passed
through interrupts.

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