Re: [PATCH 1/8] pci: Make sriov work with hotplug removal

From: Yinghai Lu
Date: Mon Oct 17 2011 - 18:24:47 EST


On 10/17/2011 03:12 PM, Bjorn Helgaas wrote:

>
> Maybe this is the best we can do, but it still doesn't seem ideal, and
> it's certainly not obvious when reading the code. It doesn't seem
> right for the driver ->remove() method to be calling
> pci_destroy_dev(). Won't the core data structures be corrupted if a
> defective driver doesn't call pci_disable_sriov()? Seems like we
> could end up with a device that's been physically removed, but still
> has pci_dev structs hanging around.


i did add some print out in
pci_stop_bus_device
when stop PF, that function is called for those VFs.

also driver have to call pci_disable_sriov() and that is current design.

Yinghai
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/