]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdde0a3549040d9bc94afea96b50d5eaafeedafad
treec4a28f9f4a2870603ca6576dc673072fad086cbb
parent42da02310566cd973f52e4a1e2e9f880dd890468
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