Am 22.11.2012 15:50, schrieb [email protected]:
> diff --git a/hw/virtio-bus.c b/hw/virtio-bus.c
> new file mode 100644
> index 0000000..991b6f5
> --- /dev/null
> +++ b/hw/virtio-bus.c
[...]
> +#define DEBUG_VIRTIO_BUS 1
We probably want to disable debug output by default as done elsewhere?
> +
> +#define DPRINTF(fmt, ...) if (DEBUG_VIRTIO_BUS) { \
> + printf("virtio_bus: " fmt , ## __VA_ARGS__); \
> + }
> +
> +static void virtio_bus_init_cb(VirtioBus *bus);
> +static int virtio_bus_reset(BusState *qbus);
> +
> +static void virtio_bus_class_init(ObjectClass *klass, void *data)
> +{
> + BusClass *k = BUS_CLASS(klass);
> + k->reset = virtio_bus_reset;
> +}
> +
> +static TypeInfo virtio_bus_info = {
Somehow you lost "const" here since v1.
> + .name = TYPE_VIRTIO_BUS,
> + .parent = TYPE_BUS,
> + .instance_size = sizeof(VirtioBus),
> + .class_init = virtio_bus_class_init,
> +};
The BUS()-related changes look good, thanks!
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg