Skip to content

Commit

Permalink
Merge tag 'for-linus-5.11-rc8-tag' of git://git.kernel.org/pub/scm/li…
Browse files Browse the repository at this point in the history
…nux/kernel/git/xen/tip

Pull xen fix from Juergen Gross:
 "A single fix for an issue introduced this development cycle: when
  running as a Xen guest on Arm systems the kernel will hang during
  boot"

* tag 'for-linus-5.11-rc8-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
  arm/xen: Don't probe xenbus as part of an early initcall
  • Loading branch information
Linus Torvalds committed Feb 12, 2021
2 parents f951625 + c4295ab commit 2dbbaae
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions arch/arm/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,6 @@ static int __init xen_guest_init(void)
return -ENOMEM;
}
gnttab_init();
if (!xen_initial_domain())
xenbus_probe();

/*
* Making sure board specific code will not set up ops for
Expand Down
1 change: 0 additions & 1 deletion drivers/xen/xenbus/xenbus.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ int xenbus_probe_node(struct xen_bus_type *bus,
const char *type,
const char *nodename);
int xenbus_probe_devices(struct xen_bus_type *bus);
void xenbus_probe(void);

void xenbus_dev_changed(const char *node, struct xen_bus_type *bus);

Expand Down
2 changes: 1 addition & 1 deletion drivers/xen/xenbus/xenbus_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ void unregister_xenstore_notifier(struct notifier_block *nb)
}
EXPORT_SYMBOL_GPL(unregister_xenstore_notifier);

void xenbus_probe(void)
static void xenbus_probe(void)
{
xenstored_ready = 1;

Expand Down
2 changes: 0 additions & 2 deletions include/xen/xenbus.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ void xs_suspend_cancel(void);

struct work_struct;

void xenbus_probe(void);

#define XENBUS_IS_ERR_READ(str) ({ \
if (!IS_ERR(str) && strlen(str) == 0) { \
kfree(str); \
Expand Down

0 comments on commit 2dbbaae

Please sign in to comment.