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

Re: [Xen-devel] [PATCH v5 RFC 01/14] docs: libxc migration stream specification



On 19/06/14 10:13, Hongyang Yang wrote:
> Hi Andrew, Ian,
>
> On 06/18/2014 02:04 AM, Andrew Cooper wrote:
>> On 17/06/14 17:40, Ian Campbell wrote:
>>> On Wed, 2014-06-11 at 19:14 +0100, Andrew Cooper wrote:
>>>> +The following features are not yet fully specified and will be
>>>> +included in a future draft.
>>>> +
>>>> +* Remus
>>> What is the plan for Remus here?
>>>
>>> It has pretty large implications for the flow of a migration stream and
>>> therefore on the code in the final two patches, I suspect it will
>>> require high level changes to those functions, so I'm reluctant to
>>> spend
>>> a lot of time on them as they are.
>>
>> I don't believe too much change will be required to the final two
>> patches, but it does depend on fixing the current qemu record layer
>> violations.
>>
>> It will be much easier to do after a prototype to the libxl level fixes.
>
> I'm trying to porting Remus to migration v2...

Ah fantastic! Here I was expecting to have eventually brave that code
myself.

How is it going?  How are you finding hacking on v2 compared to the
legacy code? (I think you are the first person who isn't me trying to
extend it)  Is there anything I can do while still developing v2 to make
things easier?


I really need to get a prototype libxl framing document sorted, but in
principle my plan (given only a minimum understanding of the algorithm)
is this:

...
* Write page data update
* Write vcpu context etc
* Write a REMUS_CHECKPOINT record (or appropriate name)
* Call the checkpoint callback, passing ownership of the fd to libxl
** libxl writes a libxl qemu record into the stream
* checkpoint callback returns to libxl, returning ownership of the fd
* libxc chooses between sending an END record or looping
...

The fd ownership is expected to work exactly the same on the receiving
side, using the REMUS_CHECKPOINT record as an indicator.

Does this look plausible or sensible, or have I missed something?

~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.