xen-pciback: reconfigure also from backend watch handler
authorJan Beulich <jbeulich@suse.com>
Tue, 18 May 2021 16:14:07 +0000 (18:14 +0200)
committerJuergen Gross <jgross@suse.com>
Fri, 21 May 2021 07:55:16 +0000 (09:55 +0200)
commitc81d3d24602540f65256f98831d0a25599ea6b87
treec4a28f9f4a2870603ca6576dc673072fad086cbb
parent4ba50e7c423c29639878c00573288869aa627068
xen-pciback: reconfigure also from backend watch handler

When multiple PCI devices get assigned to a guest right at boot, libxl
incrementally populates the backend tree. The writes for the first of
the devices trigger the backend watch. In turn xen_pcibk_setup_backend()
will set the XenBus state to Initialised, at which point no further
reconfigures would happen unless a device got hotplugged. Arrange for
reconfigure to also get triggered from the backend watch handler.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Cc: stable@vger.kernel.org
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: https://lore.kernel.org/r/2337cbd6-94b9-4187-9862-c03ea12e0c61@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/xen-pciback/xenbus.c