Re: [Qemu-devel] [PATCH 10/23] qdev: remove baked in notion of aliases

2012-01-30 Thread Paolo Bonzini
On 01/30/2012 10:08 PM, Anthony Liguori wrote: +/* + * Aliases were a bad idea from the start. Let's keep them + * from spreading further. + */ +static const char *qdev_class_get_alias(DeviceClass *dc) +{ +const char *typename = object_class_get_name(OBJECT_CLASS(dc)); + +if (strcmp(type

[Qemu-devel] [PATCH 10/23] qdev: remove baked in notion of aliases

2012-01-30 Thread Anthony Liguori
Limit them to the device_add functionality. Device aliases were a hack based on the fact that virtio was modeled the wrong way. The mechanism for aliasing is very limited in that only one alias can exist for any device. We have to support it for the purposes of compatibility but we only need to