diff options
| author | Marc-André Lureau | 2019-10-22 00:32:41 +0200 |
|---|---|---|
| committer | Marc-André Lureau | 2020-01-07 13:50:42 +0100 |
| commit | 4cc017e505df7e5344e4dfe7fc17711117c5f11f (patch) | |
| tree | 65b8366ac493b84dd8bddd1b6ceab3eba576acc4 /include/hw | |
| parent | serial: initial qom-ification (diff) | |
| download | qemu-4cc017e505df7e5344e4dfe7fc17711117c5f11f.tar.gz qemu-4cc017e505df7e5344e4dfe7fc17711117c5f11f.tar.xz qemu-4cc017e505df7e5344e4dfe7fc17711117c5f11f.zip | |
serial: register vmsd with DeviceClass
Migration from old to new code works, however the other way fails for
devices that use serial_init/serial_mm_init with "base", used as
instance_id previously.
(with qdev_set_legacy_instance_id, the alias_id is only used in
savevm.c:find_se(), and thus can only be used to match against
"legacy" instance id values. On new code, instance_id is generated
incrementally from 0 with calculate_new_instance_id(), based on
"qdev-path/vmsd-name")
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: xiaoqiang zhao <zxq_yx_007@163.com>
Diffstat (limited to 'include/hw')
0 files changed, 0 insertions, 0 deletions
