qemu/hw/char
Marc-André Lureau 4cc017e505 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>
2020-01-07 16:50:42 +04:00
..
bcm2835_aux.c hw/arm/bcm2835_peripherals: Improve logging 2019-10-15 18:09:05 +01:00
cadence_uart.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
cmsdk-apb-uart.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
debugcon.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
digic-uart.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
escc.c escc: introduce a selector for the register bit 2019-09-07 08:32:12 +02:00
etraxfs_ser.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
exynos4210_uart.c Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00
grlib_apbuart.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
imx_serial.c Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00
ipoctal232.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
Kconfig hw/char: Move multi-serial devices into separate file 2019-05-17 15:19:39 +02:00
lm32_juart.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
lm32_uart.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
Makefile.objs hw/char: Move multi-serial devices into separate file 2019-05-17 15:19:39 +02:00
mcf_uart.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
milkymist-uart.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
nrf51_uart.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
omap_uart.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
parallel-isa.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
parallel.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
pl011.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
sclpconsole-lm.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
sclpconsole.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
serial-isa.c serial: initial qom-ification 2020-01-07 16:50:15 +04:00
serial-pci-multi.c serial: initial qom-ification 2020-01-07 16:50:15 +04:00
serial-pci.c serial: initial qom-ification 2020-01-07 16:50:15 +04:00
serial.c serial: register vmsd with DeviceClass 2020-01-07 16:50:42 +04:00
sh_serial.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
spapr_vty.c spapr: Replace spapr_vio_qirq() helper with spapr_vio_irq_pulse() helper 2019-10-04 19:08:22 +10:00
stm32f2xx_usart.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
terminal3270.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
trace-events trace-events: Fix attribution of trace points to source 2019-03-22 16:18:07 +00:00
virtio-console.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
virtio-serial-bus.c virtio: basic packed virtqueue support 2019-10-25 07:46:22 -04:00
xen_console.c Include sysemu/sysemu.h a lot less 2019-08-16 13:31:53 +02:00
xilinx_uartlite.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00