Migration: Device state not saved for msmouse/chardevs
Goal
It should be possible to save/restore device state for msmouse device and chardevs in general. This is to allow migration and saving VM state without the need to reinitialize serial mouse driver of guest system every time.
Technical details
Currently saving/restoring device state is not implemented for msmouse and it is not clear if or how this can be done for chardevs in general. If there is no code to handle load/save of device state for chardevs and also no plans to add such functionality, maybe msmouse shouldn't be imlpemented as chardev and use device models instead? TBD.
Additional information
This missing feature was discovered while fixing msmouse here: https://patchew.org/QEMU/20220908173120.16779-1-arwed.meyer@gmx.de/20220908173120.16779-2-arwed.meyer@gmx.de/