linux/drivers/xen/xenbus
Jason Andryuk 211f589206 xenbus: Allow PVH dom0 a non-local xenstore
[ Upstream commit 90989869ba ]

Make xenbus_init() allow a non-local xenstore for a PVH dom0 - it is
currently forced to XS_LOCAL.  With Hyperlaunch booting dom0 and a
xenstore stubdom, dom0 can be handled as a regular XS_HVM following the
late init path.

Ideally we'd drop the use of xen_initial_domain() and just check for the
event channel instead.  However, ARM has a xen,enhanced no-xenstore
mode, where the event channel and PFN would both be 0.  Retain the
xen_initial_domain() check, and use that for an additional check when
the event channel is 0.

Check the full 64bit HVM_PARAM_STORE_EVTCHN value to catch the off
chance that high bits are set for the 32bit event channel.

Signed-off-by: Jason Andryuk <jason.andryuk@amd.com>
Change-Id: I5506da42e4c6b8e85079fefb2f193c8de17c7437
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
Message-ID: <20250506204456.5220-1-jason.andryuk@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-05-29 11:03:13 +02:00
..
Makefile xen/xenbus: Use *-y instead of *-objs in Makefile 2024-05-17 12:14:13 +02:00
xenbus.h xenbus: Use kref to track req lifetime 2025-05-18 08:24:54 +02:00
xenbus_client.c xen/xenbus: document will_handle argument for xenbus_watch_path() 2024-02-12 18:03:14 +01:00
xenbus_comms.c xenbus: Use kref to track req lifetime 2025-05-18 08:24:54 +02:00
xenbus_dev_backend.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
xenbus_dev_frontend.c xenbus: Use kref to track req lifetime 2025-05-18 08:24:54 +02:00
xenbus_probe.c xenbus: Allow PVH dom0 a non-local xenstore 2025-05-29 11:03:13 +02:00
xenbus_probe_backend.c xenbus/backend: dynamically allocate the xen-backend shrinker 2023-10-04 10:32:23 -07:00
xenbus_probe_frontend.c xen: xenbus: Use helper function IS_ERR_OR_NULL() 2023-08-21 09:55:11 +02:00
xenbus_xs.c xenbus: Use kref to track req lifetime 2025-05-18 08:24:54 +02:00