Lines Matching +full:virtio +full:- +full:pci

22 #include "standard-headers/linux/virtio_blk.h"
24 #include "virtio-blk.h"
29 /* virtio-blk-device */
33 if (!g_strcmp0(interface, "virtio-blk")) { in qvirtio_blk_get_driver()
36 if (!g_strcmp0(interface, "virtio")) { in qvirtio_blk_get_driver()
37 return v_blk->vdev; in qvirtio_blk_get_driver()
40 fprintf(stderr, "%s not present in virtio-blk-device\n", interface); in qvirtio_blk_get_driver()
48 return qvirtio_blk_get_driver(&v_blk->blk, interface); in qvirtio_blk_device_get_driver()
56 QVirtioBlk *interface = &virtio_blk->blk; in virtio_blk_device_create()
58 interface->vdev = virtio_dev; in virtio_blk_device_create()
60 virtio_blk->obj.get_driver = qvirtio_blk_device_get_driver; in virtio_blk_device_create()
62 return &virtio_blk->obj; in virtio_blk_device_create()
65 /* virtio-blk-pci */
69 if (!g_strcmp0(interface, "pci-device")) { in qvirtio_blk_pci_get_driver()
70 return v_blk->pci_vdev.pdev; in qvirtio_blk_pci_get_driver()
72 return qvirtio_blk_get_driver(&v_blk->blk, interface); in qvirtio_blk_pci_get_driver()
79 QVirtioBlk *interface = &virtio_blk->blk; in virtio_blk_pci_create()
80 QOSGraphObject *obj = &virtio_blk->pci_vdev.obj; in virtio_blk_pci_create()
82 virtio_pci_init(&virtio_blk->pci_vdev, pci_bus, addr); in virtio_blk_pci_create()
83 interface->vdev = &virtio_blk->pci_vdev.vdev; in virtio_blk_pci_create()
85 g_assert_cmphex(interface->vdev->device_type, ==, VIRTIO_ID_BLOCK); in virtio_blk_pci_create()
87 obj->get_driver = qvirtio_blk_pci_get_driver; in virtio_blk_pci_create()
95 * -drive,id=drive0 otherwise QEMU is not going to start. in virtio_blk_register_nodes()
96 * Therefore, we do not include "produces" edge for virtio in virtio_blk_register_nodes()
97 * and pci-device yet. in virtio_blk_register_nodes()
109 /* virtio-blk-device */ in virtio_blk_register_nodes()
111 qos_node_create_driver("virtio-blk-device", virtio_blk_device_create); in virtio_blk_register_nodes()
112 qos_node_consumes("virtio-blk-device", "virtio-bus", &opts); in virtio_blk_register_nodes()
113 qos_node_produces("virtio-blk-device", "virtio-blk"); in virtio_blk_register_nodes()
115 /* virtio-blk-pci */ in virtio_blk_register_nodes()
118 qos_node_create_driver("virtio-blk-pci", virtio_blk_pci_create); in virtio_blk_register_nodes()
119 qos_node_consumes("virtio-blk-pci", "pci-bus", &opts); in virtio_blk_register_nodes()
120 qos_node_produces("virtio-blk-pci", "virtio-blk"); in virtio_blk_register_nodes()