]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xen/pciback: Move the PCI_DEV_FLAGS_ASSIGNED ops to the "[un|]bind"
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 4 Jan 2012 19:10:32 +0000 (14:10 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Sun, 8 Jan 2012 01:35:55 +0000 (20:35 -0500)
commit97309d3974fd371920cc8b932e2b6b5e4100c7c6
treea25ccc64bcc8eedc1a49214bc98a8c1ed3ceedd8
parenta800651e8893007d3a12bc281f0265f18043c4fa
xen/pciback: Move the PCI_DEV_FLAGS_ASSIGNED ops to the "[un|]bind"

operation instead of doing it per guest creation/disconnection. Without
this we could have potentially unloaded the vf driver from the
xen pciback control even if the driver was binded to the xen-pciback.
This will hold on to it until the user "unbind"s the PCI device using
SysFS.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/xen-pciback/pci_stub.c
drivers/xen/xen-pciback/xenbus.c