rtl8139: Use subsection to restrict migration after hotplug
commitc574ba5a4ce0faee6a687412804d6045ef815327
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 4 Jan 2011 19:38:02 +0000 (4 12:38 -0700)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Jan 2011 10:14:02 +0000 (5 12:14 +0200)
tree40a80713708d42612ec91598d1e06ef03b2bb25a
parent0ac8ef71329ee242951074eb2dc7136f99421d8c
rtl8139: Use subsection to restrict migration after hotplug

rtl8139 includes a cpu_register_io_memory acquired value in it's
migration data.  This is not only unecessary, but we should treat
these values as unique to the VM instances since the value depends
on call order.  In most cases, this miraculously still works.
However, if devices are added or removed from the system, it may
represent an ordering change, which could cause the target rtl8139
device to make use of another device's cpu_register_io_memory value.
If we detect that a hot-add/remove has occured, include a subsection
to restrict migrations only to driver versions known to include this
fix.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/rtl8139.c