Re: [PATCH] KVM: x86: do not save guest-unsupported XSAVE state

From: Radim KrÄmÃÅ
Date: Sat Feb 04 2017 - 11:26:25 EST


2017-02-01 16:13-0800, Paolo Bonzini:
> On 01/02/2017 05:19, Radim KrÄmÃÅ wrote:
>> Saving unsupported state prevents migration when the new host does not
>> support a XSAVE feature of the original host, even if the feature is not
>> exposed to the guest.
>>
>> We've masked host features with guest-visible features before, with
>> 4344ee981e21 ("KVM: x86: only copy XSAVE state for the supported
>> features") and dropped it when implementing XSAVES. Do it again.
>>
>> Fixes: df1daba7d1cb ("KVM: x86: support XSAVES usage in the host")
>> Signed-off-by: Radim KrÄmÃÅ <rkrcmar@xxxxxxxxxx>
>
> Cc: stable@xxxxxxxxxxxxxxx
> Reviewed-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
>
> Please apply to kvm/master and send it yourself to Linus since I don't
> have access to my machine this week.

Done, thanks.