summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2008-11-28 17:10:40 +0000
committerAvi Kivity <avi@redhat.com>2008-11-30 12:40:07 +0200
commit176229fdb728e27bf6fb1f94f1a198df00d36c17 (patch)
tree4d54e70c696cd26073f1d68e4dadb4f5897ad00c /hw/device-assignment.h
parentDevice-assignment: add_assigned_device() returns a pointer (diff)
downloadqemu-kvm-176229fdb728e27bf6fb1f94f1a198df00d36c17.tar.gz
qemu-kvm-176229fdb728e27bf6fb1f94f1a198df00d36c17.tar.bz2
qemu-kvm-176229fdb728e27bf6fb1f94f1a198df00d36c17.zip
Device-assignment: introduce add_assigned_devices()
Merge two copies of the same code and cleanup with no functional changes. Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/device-assignment.h')
-rw-r--r--hw/device-assignment.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/device-assignment.h b/hw/device-assignment.h
index d6caa67e4..5a01d98a2 100644
--- a/hw/device-assignment.h
+++ b/hw/device-assignment.h
@@ -96,7 +96,7 @@ struct AssignedDevInfo {
PCIDevice *init_assigned_device(AssignedDevInfo *adev, PCIBus *bus);
AssignedDevInfo *add_assigned_device(const char *arg);
-int init_all_assigned_devices(PCIBus *bus);
+void add_assigned_devices(PCIBus *bus, const char **devices, int n_devices);
#define MAX_DEV_ASSIGN_CMDLINE 8