]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: do not save guest-unsupported XSAVE state
authorRadim Krčmář <rkrcmar@redhat.com>
Wed, 1 Feb 2017 13:19:53 +0000 (14:19 +0100)
committerRadim Krčmář <rkrcmar@redhat.com>
Fri, 3 Feb 2017 17:43:08 +0000 (18:43 +0100)
commit2d4dbdacf5f01c23559c2f2430ff6c7a3d9ec1b2
treef1df0f8dcba15c286da9b83e6373e4ddd2b73e5e
parentaf3594dc652d27a1be9786fb22f7c0db391f6673
KVM: x86: do not save guest-unsupported XSAVE state

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
69576af75509 ("KVM: x86: only copy XSAVE state for the supported
features") and dropped it when implementing XSAVES.  Do it again.

Fixes: b9f616d0a8ef ("KVM: x86: support XSAVES usage in the host")
Cc: stable@vger.kernel.org
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/x86.c