]> git.proxmox.com Git - mirror_qemu.git/commit - hw/qdev.h
qdev: Track runtime machine modifications
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 4 Jan 2011 19:37:50 +0000 (12:37 -0700)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Jan 2011 10:14:00 +0000 (12:14 +0200)
commit0ac8ef71329ee242951074eb2dc7136f99421d8c
treecd7f6c18c94e89ac57ec83f15548773521e01e22
parenta6a7005d14b3c32d4864a718fb1cb19c789f58a5
qdev: Track runtime machine modifications

Create a trivial interface to track whether the machine has been
modified since boot.  Adding or removing devices will trigger this
to return true.  An example usage scenario for such an interface is
the rtl8139 driver which includes a cpu_register_io_memory() value
in it's migration stream.  For the majority of migrations, where
no hotplug has occured in the machine, this works correctly.  Once
the machine is modified, we can use this interface to detect that
and include a subsection for the device to prevent migrations to
rtl8139 versions with this bug.

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/qdev.c
hw/qdev.h