]> Git Repo - qemu.git/blobdiff - hw/virtio/virtio-bus.c
virtio: Clean up includes
[qemu.git] / hw / virtio / virtio-bus.c
index 3926f7ee1edf637b89d3910b1f6e1f9a2bfb5a00..574f0e23f8df4669c0d4d177136d93312dc39108 100644 (file)
@@ -22,6 +22,7 @@
  *
  */
 
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "qemu/error-report.h"
 #include "hw/qdev.h"
@@ -54,7 +55,11 @@ void virtio_bus_device_plugged(VirtIODevice *vdev, Error **errp)
 
     /* Get the features of the plugged device. */
     assert(vdc->get_features != NULL);
-    vdev->host_features = vdc->get_features(vdev, vdev->host_features);
+    vdev->host_features = vdc->get_features(vdev, vdev->host_features,
+                                            errp);
+    if (klass->post_plugged != NULL) {
+        klass->post_plugged(qbus->parent, errp);
+    }
 }
 
 /* Reset the virtio_bus */
This page took 0.026138 seconds and 4 git commands to generate.