kvm: x86: Avoid runtime allocation of xsave buffer
commitfabacc0f79ccfe9b8b34e6b9ed35ffd17415c918
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 27 Oct 2011 17:25:58 +0000 (27 19:25 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Thu, 22 Dec 2011 16:53:01 +0000 (22 14:53 -0200)
tree8a423f15fbe10e10c881026a8ee2043e57fcadb8
parent6b42494b219a3beb755bc52419c731aa70efe93d
kvm: x86: Avoid runtime allocation of xsave buffer

Keep a per-VCPU xsave buffer for kvm_put/get_xsave instead of
continuously allocating and freeing it on state sync.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
target-i386/cpu.h
target-i386/kvm.c