My attempt at a more simple fix than any proposed thus far. Sadly not as
simple as I was hoping, but it does resolve the bugs according to Gitlab:
https://gitlab.com/xen-project/people/andyhhp/xen/-/pipelines/669072903
In particular, it addresses every buggy error path I've spotted in previous
patches. The preemptible helpers can't safely be rewrapped to work in an
idempotent teardown context.
Andrew Cooper (1):
arm/p2m: Rework p2m_init()
Henry Wang (1):
xen/arm: p2m: Populate pages for GICv2 mapping in arch_domain_create()
xen/arch/arm/p2m.c | 67 ++++++++++++++++++++++++++++++++++++++++++------------
1 file changed, 53 insertions(+), 14 deletions(-)
--
2.11.0