static const TypeInfo migration_type = {
.name = TYPE_MIGRATION,
+ /*
+ * NOTE: "migration" itself is not really a device. We used
+ * TYPE_DEVICE here only to leverage some existing QDev features
+ * like "-global" properties, and HW_COMPAT_* fields (which are
+ * finally applied as global properties as well). If one day the
+ * global property feature can be migrated from QDev to QObject in
+ * general, then we can switch to QObject as well.
+ */
.parent = TYPE_DEVICE,
.class_init = migration_class_init,
.class_size = sizeof(MigrationClass),