> -----Original Message----- > From: Dexuan Cui > Sent: Wednesday, May 23, 2018 5:12 PM > To: 'Lorenzo Pieralisi' <lorenzo.pieralisi@xxxxxxx>; 'Bjorn Helgaas' > <bhelgaas@xxxxxxxxxx>; 'linux-pci@xxxxxxxxxxxxxxx' <linux- > pci@xxxxxxxxxxxxxxx>; KY Srinivasan <kys@xxxxxxxxxxxxx>; Stephen > Hemminger <sthemmin@xxxxxxxxxxxxx>; 'olaf@xxxxxxxxx' <olaf@xxxxxxxxx>; > 'apw@xxxxxxxxxxxxx' <apw@xxxxxxxxxxxxx>; 'jasowang@xxxxxxxxxx' > <jasowang@xxxxxxxxxx> > Cc: 'linux-kernel@xxxxxxxxxxxxxxx' <linux-kernel@xxxxxxxxxxxxxxx>; 'driverdev- > devel@xxxxxxxxxxxxxxxxxxxxxx' <driverdev-devel@xxxxxxxxxxxxxxxxxxxxxx>; > Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>; 'vkuznets@xxxxxxxxxx' > <vkuznets@xxxxxxxxxx>; 'marcelo.cerri@xxxxxxxxxxxxx' > <marcelo.cerri@xxxxxxxxxxxxx> > Subject: [PATCH] PCI: hv: Do not wait forever on a device that has disappeared > > > Before the guest finishes the device initialization, the device can be removed > anytime by the host, and after that the host won't respond to the guest's > request, so the guest should be prepared to handle this case. > > Signed-off-by: Dexuan Cui <decui@xxxxxxxxxxxxx> > Cc: Stephen Hemminger <sthemmin@xxxxxxxxxxxxx> > Cc: K. Y. Srinivasan <kys@xxxxxxxxxxxxx> > --- > drivers/pci/host/pci-hyperv.c | 46 ++++++++++++++++++++++++++++++++------- > ---- Reviewed-by: Haiyang Zhang <haiyangz@xxxxxxxxxxxxx> Thank you!