qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/7] ivshmem: use migration blockers to prevent


From: Juan Quintela
Subject: Re: [Qemu-devel] [PATCH 2/7] ivshmem: use migration blockers to prevent live migration in peer mode
Date: Mon, 14 Nov 2011 20:52:56 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

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.

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]