On 2011-03-23 16:00, Peter Maydell wrote: > On 23 March 2011 14:52, Anthony Liguori <anth...@codemonkey.ws> wrote: >> I think we ought to merge VMStateDescription into DeviceInfo. For >> compatibility, we probably need a vmstate_alias name since the device names >> don't always map 1-1 with the qdev names. But this should eliminate the >> problem of reusing VMStateDescriptions for multiple devices. > > That's a feature, not a bug. Consider eg hw/pl110.c -- there > are two different DeviceInfo devices but since the underlying > implementation is the same you definitely don't want to have > two separate VMStateDescription structures to get out of sync.
Yep. i8254/apic/ioapic vs. (upcoming) i8254-kvm/apic-kvm/ioapic-kvm will provide further use cases. Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux