hw/arm: xenpvh: Reverse virtio-mmio creation order
authorEdgar E. Iglesias <edgar.iglesias@amd.com>
Fri, 9 Aug 2024 13:39:04 +0000 (15:39 +0200)
committerEdgar E. Iglesias <edgar.iglesias@amd.com>
Wed, 4 Sep 2024 14:50:43 +0000 (16:50 +0200)
commit692ec9337b93729365a6c55bd1aad8da94a877ca
treeb02191d81374e13b9f9a07fc07f77e0c08125492
parent0e14c9eb55696a13cd0c9545fbc0a9de5f340015
hw/arm: xenpvh: Reverse virtio-mmio creation order

We've been creating the virtio-mmio devices in forwards order
but since the qbus lists prepend (rather than append) entries,
the virtio busses end up with decreasing base address order.

Xen enables virtio-mmio nodes in forwards order so there's been
a missmatch. So far, we've been working around this with an
out-of-tree patch to Xen.

This reverses the order making sure the virtio busses end up
ordered with increasing base addresses avoiding the need to
patch Xen.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
hw/xen/xen-pvh-common.c