qdev-ify device assignment
Also cleanup while being at it. Changes:
* Converted driver to qdev, named it 'pci-assign'.
* Killed the pointless AssignedDevInfo struct.
* Killed a bunch of hooks which are not needed any more now
that qdev can handle hotplug.
qdev way of doing device assignment is:
-device pci-assign,host=<hostaddr>,addr=<guestaddr>,id=<name>
Hotplug via monitor:
device_add $same_syntax_as_above
device_del $id
Old command line + monitor syntax continues to work. Mixing
pci_* and device_* monitor commands works too.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>