x86: fix migration from pre-version 12
commitc74f41bbcc83d12787ac42f2c74fc2be54e9f222
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 13 Sep 2013 13:55:57 +0000 (13 15:55 +0200)
committerGleb Natapov <gleb@redhat.com>
Wed, 2 Oct 2013 15:58:23 +0000 (2 18:58 +0300)
tree39707633519f220b50df9934c888a6abd95eb10d
parenta684f3cf9b9b9c3cb82be87aafc463de8974610c
x86: fix migration from pre-version 12

On KVM, the KVM_SET_XSAVE would be executed with a 0 xstate_bv,
and not restore anything.

Since FP and SSE data are always valid, set them in xstate_bv at reset
time.  In fact, that value is the same that KVM_GET_XSAVE returns on
pre-XSAVE hosts.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
target-i386/cpu.c
target-i386/cpu.h