xen: add support for initializing xenstore later as HVM domain
authorLuca Miccio <lucmiccio@gmail.com>
Fri, 13 May 2022 21:19:38 +0000 (14:19 -0700)
committerJuergen Gross <jgross@suse.com>
Thu, 19 May 2022 12:44:08 +0000 (14:44 +0200)
commit5b3353949e89d48b4faf54a9cc241ee5d70df615
tree70ebb30e809b6539c91c622e14621e899ccb8198
parent62db0fafa8fc0f6c9f901e7eefdfc6bbd9731ec9
xen: add support for initializing xenstore later as HVM domain

When running as dom0less guest (HVM domain on ARM) the xenstore event
channel is available at domain creation but the shared xenstore
interface page only becomes available later on.

In that case, wait for a notification on the xenstore event channel,
then complete the xenstore initialization later, when the shared page
is actually available.

The xenstore page has few extra field. Add them to the shared struct.
One of the field is "connection", when the connection is ready, it is
zero. If the connection is not-zero, wait for a notification.

Signed-off-by: Luca Miccio <lucmiccio@gmail.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: https://lore.kernel.org/r/20220513211938.719341-2-sstabellini@kernel.org
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/xenbus/xenbus_probe.c