xen/arm: GIC: Only set pirq in the LR when hw_status is set
authorJulien Grall <julien.grall@arm.com>
Thu, 15 Mar 2018 20:30:12 +0000 (20:30 +0000)
committerJulien Grall <julien.grall@arm.com>
Tue, 20 Mar 2018 08:22:51 +0000 (08:22 +0000)
commitee375749052c649fc2710c73c7ce5371393f7742
tree512217d8f7725eecacb0e3f145b39d76fdb70620
parentba8e3e422896d420510297011558cfaeb8aa75ce
xen/arm: GIC: Only set pirq in the LR when hw_status is set

The field pirq should only be valid when the virtual interrupt
is associated to a physical interrupt.

This change will help to extend gic_lr for supporting specific virtual
interrupt field (e.g eoi, source) that clashes with the PIRQ field.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/gic-v2.c
xen/arch/arm/gic-v3.c
xen/include/asm-arm/gic.h