diff options
| author | Henry Wang <[email protected]> | 2024-05-17 01:15:16 +0000 |
|---|---|---|
| committer | Juergen Gross <[email protected]> | 2024-05-23 10:41:18 +0000 |
| commit | a3607581cd49c17128a486a526a36a97bafcb2bb (patch) | |
| tree | e6bcd3b13fbd0cc92776de837bf3b4b61cb79dbe /net/unix/af_unix.c | |
| parent | xen/xenbus: Use *-y instead of *-objs in Makefile (diff) | |
| download | kernel-a3607581cd49c17128a486a526a36a97bafcb2bb.tar.gz kernel-a3607581cd49c17128a486a526a36a97bafcb2bb.zip | |
drivers/xen: Improve the late XenStore init protocol
Currently, the late XenStore init protocol is only triggered properly
for the case that HVM_PARAM_STORE_PFN is ~0ULL (invalid). For the
case that XenStore interface is allocated but not ready (the connection
status is not XENSTORE_CONNECTED), Linux should also wait until the
XenStore is set up properly.
Introduce a macro to describe the XenStore interface is ready, use
it in xenbus_probe_initcall() to select the code path of doing the
late XenStore init protocol or not. Since now we have more than one
condition for XenStore late init, rework the check in xenbus_probe()
for the free_irq().
Take the opportunity to enhance the check of the allocated XenStore
interface can be properly mapped, and return error early if the
memremap() fails.
Fixes: 5b3353949e89 ("xen: add support for initializing xenstore later as HVM domain")
Signed-off-by: Henry Wang <[email protected]>
Signed-off-by: Michal Orzel <[email protected]>
Reviewed-by: Stefano Stabellini <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Juergen Gross <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
