mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
Separate virtio PCI code
Split the PCI host bindings from the VRing transport implementation. Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
parent
d8ee7665bf
commit
53c25cea7d
14 changed files with 473 additions and 299 deletions
|
@ -111,14 +111,14 @@ static void bamboo_init(ram_addr_t ram_size,
|
|||
|
||||
/* Add virtio block devices. */
|
||||
while ((i = drive_get_index(IF_VIRTIO, 0, unit_id)) != -1) {
|
||||
pci_create_simple(pcibus, -1, "virtio-blk");
|
||||
pci_create_simple(pcibus, -1, "virtio-blk-pci");
|
||||
unit_id++;
|
||||
}
|
||||
|
||||
/* Add virtio console devices */
|
||||
for(i = 0; i < MAX_VIRTIO_CONSOLES; i++) {
|
||||
if (virtcon_hds[i]) {
|
||||
pci_create_simple(pcibus, -1, "virtio-console");
|
||||
pci_create_simple(pcibus, -1, "virtio-console-pci");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue