virtio-bus.c (b821cbe274c5a5cacf1a7b28360d869ae1e6e0c3) | virtio-bus.c (9d5b731dd2d64deb3bc798ef4e3c08603d54ae02) |
---|---|
1/* 2 * VirtioBus 3 * 4 * Copyright (C) 2012 : GreenSocs Ltd 5 * http://www.greensocs.com/ , email: info@greensocs.com 6 * 7 * Developed by : 8 * Frederic Konrad <fred.konrad@greensocs.com> --- 40 unchanged lines hidden (view full) --- 49 DPRINTF("%s: plug device.\n", qbus->name); 50 51 if (klass->device_plugged != NULL) { 52 klass->device_plugged(qbus->parent, errp); 53 } 54 55 /* Get the features of the plugged device. */ 56 assert(vdc->get_features != NULL); | 1/* 2 * VirtioBus 3 * 4 * Copyright (C) 2012 : GreenSocs Ltd 5 * http://www.greensocs.com/ , email: info@greensocs.com 6 * 7 * Developed by : 8 * Frederic Konrad <fred.konrad@greensocs.com> --- 40 unchanged lines hidden (view full) --- 49 DPRINTF("%s: plug device.\n", qbus->name); 50 51 if (klass->device_plugged != NULL) { 52 klass->device_plugged(qbus->parent, errp); 53 } 54 55 /* Get the features of the plugged device. */ 56 assert(vdc->get_features != NULL); |
57 vdev->host_features = vdc->get_features(vdev, vdev->host_features); | 57 vdev->host_features = vdc->get_features(vdev, vdev->host_features, 58 errp); |
58} 59 60/* Reset the virtio_bus */ 61void virtio_bus_reset(VirtioBusState *bus) 62{ 63 VirtIODevice *vdev = virtio_bus_get_device(bus); 64 65 DPRINTF("%s: reset device.\n", BUS(bus)->name); --- 112 unchanged lines hidden --- | 59} 60 61/* Reset the virtio_bus */ 62void virtio_bus_reset(VirtioBusState *bus) 63{ 64 VirtIODevice *vdev = virtio_bus_get_device(bus); 65 66 DPRINTF("%s: reset device.\n", BUS(bus)->name); --- 112 unchanged lines hidden --- |