rtl8139 includes a cpu_register_io_memory() in it's vmstate. This is problematic if the guest undergoes hotplug operations, which can shift io indexes between migration source and target. Add an interface to detect this condition and add a subsection, when necessary, to ensure we migrate to a safe target.
This resolves Juan's concerns about maintaining the migration ABI and Michael's concerns wrt subsections. Acked by both. Please apply. Thanks, Alex --- Alex Williamson (2): rtl8139: Use subsection to restrict migration after hotplug qdev: Track runtime machine modifications hw/qdev.c | 10 ++++++++++ hw/qdev.h | 1 + hw/rtl8139.c | 28 +++++++++++++++++++++++++++- 3 files changed, 38 insertions(+), 1 deletions(-)