Anthony Liguori <aligu...@us.ibm.com> wrote: > On 11/14/2011 07:05 AM, Juan Quintela wrote: >> Anthony Liguori<aligu...@us.ibm.com> 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. Why two? because the .unmigratable way is very useful for devices that haven't been made "migratable", but that are converted to qdev. Not jthat this couldn't be "fixed" on registration with a call to migrate_add_blocker. Later, Juan.