xen/arm: xen/arm: Reinforce use of is_hardware_domain
authorLuca Fancellu <luca.fancellu@arm.com>
Wed, 14 Apr 2021 09:14:02 +0000 (10:14 +0100)
committerJulien Grall <jgrall@amazon.com>
Thu, 15 Apr 2021 17:06:21 +0000 (18:06 +0100)
commit784d70d68342d20074d88ee8d8bab41b9210505f
tree132b762f4631081ed4a2f9a50c5b8bd6947c7a1b
parent7af57aefe38571cb3f5a6f06e87ebc2b6ed30293
xen/arm: xen/arm: Reinforce use of is_hardware_domain

There are a few places on Arm where we use pretty much an open-coded
version of is_hardware_domain(). The main difference, is the helper
will also block speculation (not yet implemented on Arm).

The existing users are not in hot path, so blocking speculation
would not hurt when it is implemented. So remove the open-coded
version within the arm codebase.

Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
[julieng: Rework the commit message]
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/irq.c
xen/drivers/passthrough/arm/ipmmu-vmsa.c
xen/drivers/passthrough/arm/smmu-v3.c
xen/drivers/passthrough/arm/smmu.c
xen/include/asm-arm/domain.h