I dont know if I unbind the device correctly. I'm using this script:
BDF=0000:00:1d.3
# Unbind a PCI function from its driver as necessary
[ ! -e /sys/bus/pci/devices/$BDF/driver/unbind ] || \
echo -n $BDF > /sys/bus/pci/devices/$BDF/driver/unbind
# Add a new slot to the PCI Backend's list
echo -n $BDF > /sys/bus/pci/drivers/pciback/new_slot
# Now that the backend is watching for the slot, bind to it
echo -n $BDF > /sys/bus/pci/drivers/pciback/bind
uhci_hcd 0000:00:1d.3: remove, state 1
usb usb5: USB disconnect, address 1
usb 5-1: USB disconnect, address 2
drivers/media/video/stv680.c: [usb_stv680_remove_disconnected:1451] STV(i): STV0680 disconnected
uhci_hcd 0000:00:1d.3: USB bus 5 deregistered
ACPI: PCI interrupt for device 0000:00:1d.3 disabled
pciback 0000:00:1d.3: seizing device
PCI: Enabling device 0000:00:1d.3 (0000 -> 0001)
ACPI: PCI Interrupt 0000:00:1d.3[D] -> GSI 22 (level, low) -> IRQ 21
ACPI: PCI interrupt for device 0000:00:1d.3 disabled
tap tap-1-51712: 2 getting info
pciback: vpci: 0000:00:1d.3: assign to virtual slot 0
ACPI: PCI interrupt for device 0000:00:1d.3 disabled
tap tap-2-51712: 2 getting info
pciback: vpci: 0000:00:1d.3: assign to virtual slot 0
device vif2.0 entered promiscuous mode
ADDRCONF(NETDEV_UP): vif2.0: link is not ready
PCI: Enabling device 0000:00:1d.3 (0000 -> 0001)
ACPI: PCI Interrupt 0000:00:1d.3[D] -> GSI 22 (level, low) -> IRQ 21
ACPI: PCI Interrupt 0000:00:1d.3[D] -> GSI 22 (level, low) -> IRQ 21
PCI: Setting latency timer of device 0000:00:1d.3 to 64
pciback 0000:00:1d.3: Driver tried to write to a read-only configuration space field at offset 0xc0, size 2. This may be harmless, but if you have problems with your device:
1) see permissive attribute in sysfs
2) report problems to the xen-devel mailing list along with details of your device obtained from lspci.
blktap: ring-ref 9, event-channel 7, protocol 1 (x86_64-abi)
Also, here is the output of cat /proc/interrupts in dom0:
cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
..
20: 65 0 0 0 Phys-irq ehci_hcd:usb1, uhci_hcd:usb2, uhci_hcd:usb4
21: 26 0 0 0 Phys-irq uhci_hcd:usb3
245: 127288 0 0 26 Phys-irq peth0
...