]> git.proxmox.com Git - qemu.git/commit
hw: Avoid use of QOM type name macros in VMStateDescriptions
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 27 Jun 2013 11:03:44 +0000 (12:03 +0100)
committerAndreas Färber <afaerber@suse.de>
Mon, 22 Jul 2013 22:37:32 +0000 (00:37 +0200)
commit6783ecf144c80f526c844cade3bf5593fba9e446
treedfc0d138aceb0bc5f35795f62b77ec871c572780
parent3464700f6aecb3e2aa9098839d90672d6b3fa974
hw: Avoid use of QOM type name macros in VMStateDescriptions

The name field in a VMStateDescription is part of the migration state
versioning, so changing it will break migration.  It's therefore a
bad idea to use a QOM typename macro to initialize it, because in
general we're free to rename QOM types as part of code refactoring
and cleanup.  For the handful of devices that were doing this by
mistake, replace the QOM typenames with the corresponding literal
strings.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
[AF: Use TYPE_PVSCSI for TypeInfo instead]
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/i2c/exynos4210_i2c.c
hw/scsi/vmw_pvscsi.c
hw/timer/imx_epit.c
hw/timer/imx_gpt.c
hw/usb/ccid-card-passthru.c
hw/usb/dev-smartcard-reader.c