xen/arm: Restrict when a physical IRQ can be routed/removed from/to a domain
authorJulien Grall <julien.grall@arm.com>
Thu, 8 Mar 2018 15:24:04 +0000 (15:24 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 16 Mar 2018 20:18:55 +0000 (13:18 -0700)
commitb8577547236ff7abaf59bd2dfd4c60c257089abb
tree33fe3b1d17315050ef4cf9d5d32b0708563600f2
parentc4dd58f0cf23cdf119bbccedfb8c24435fc6f3ab
xen/arm: Restrict when a physical IRQ can be routed/removed from/to a domain

Xen is currently allowing to route/remove an interrupt from/to the
domain while it is running.

However, we never sync the virtual interrupt state to the physical
interrupt. This could lead to undesirable effect on the vGIC emulation
and potentially the hardware.

One solution would be to sync the interrupt state when routing, but I am
not sure it is worth the effort as you never really when it is safe to
route/remove the interrupt when a domain is running.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/gic.c