Anthony Liguori<address@hidden> wrote:
On 11/14/2011 07:05 AM, Juan Quintela wrote:
Anthony Liguori<address@hidden> wrote:
Now when you try to migrate with ivshmem, you get a proper QMP error:
(qemu) migrate tcp:localhost:1025
Migration is disabled when using feature 'peer mode' in device 'ivshmem'
(qemu)
This was the only user of register_device_unmigratable(), just to remove
function if we continue this path.
There are a couple more in usb also but I can convert them too.
usb uses "yet another" way to make devices unmigratable.
static const VMStateDescription vmstate_usb_host = {
.name = "usb-host",
.unmigratable = 1,
};
So, we have "already" two ways to make a device unmigratable:
- calling register_device_unmigratable() (ivhs)
- definining in vmstate .unmigratable = 1
- and now your new way.
My point was that only one (or even two) should be enough.