qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 0/3] non-migratable devices


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 0/3] non-migratable devices
Date: Fri, 08 Jul 2011 14:05:01 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Mnenhy/0.8.3 Thunderbird/3.1.10

On 07/08/2011 01:47 PM, Gerd Hoffmann wrote:


scsi-cd is new in 0.15, older versions have scsi-disk only. That's why
we should take the occasion to add the empty vmstate at least to it.

Ok, good opportunity in that specific case.

For other devices, it's better to make the breakage in a single version.
It also allows to make 0.15 the "flag day" where each device shall have
a VMState or the entire VM will not be migratable.

Not that easy given that we didn't fully migrate to vmstate yet,
otherwise we could simply fail migration in case we find any device with
qdev->vmsd == NULL.

You can always add

#define VMSD_NONE  ((const VMStateDescription *) 1)

If desired, in the
future we can revert this behavior for pc-0.14 and earlier machines.

And I'm still looking for a sane way to handle *this*.

One possibility is to add device name remapping to machine types, like "ide is actually ide-0.14 when using pc-0.14" and put a different VMState in ide-0.14.

Paolo



reply via email to

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