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

Re: [Xen-devel] [RFC PATCH] Drop error return if size mismatch is due to xcr0 settings



On 09/10/14 16:45, Don Koch wrote:
> On Wed, 8 Oct 2014 14:29:36 -0400
> Don Koch <dkoch@xxxxxxxxxxx> wrote:
>
>> This prevents migration from 4.3 to 4.4 (or newer) xen on AMD machines, at
>> least.
> A clarification: a previous change made migration from xen 4.3 to 4.4 on AMD
> machine fail. This patch provides a (minimal) fix for the problem. IMO, it 
> should
> be targeted for 4.5 and 4.4.x (whatever the next 'x' is).
>
> If it's decided to add the other changes I've suggested, those could be 
> provided
> in a separate patch, especially if we're time constrained (like for getting it
> into 4.5).
>
> -d

Can you explain what the bug is and why this is an appropriate fix?

What is happening here is that the migration stream is providing an
xsave area larger than the size it should be based on the xcr0 sent with it.

This means that either the sending Xen sent a bogus record, or the new
Xen has incorrectly calculated the size from xcr0, but *both* of these
cases are potential VM data corruption issues.

As this currently stands with no analysis of the problem and proof as to
why the change is safe, dropping the "return -EOPNOTSUPP;" is not valid IMO.

~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®.