summaryrefslogtreecommitdiff
path: root/target-i386/cpu.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-10-27 19:25:58 +0200
committerMarcelo Tosatti <mtosatti@redhat.com>2011-12-22 14:53:01 -0200
commitfabacc0f79ccfe9b8b34e6b9ed35ffd17415c918 (patch)
tree8a423f15fbe10e10c881026a8ee2043e57fcadb8 /target-i386/cpu.h
parent6b42494b219a3beb755bc52419c731aa70efe93d (diff)
downloadqemu-fabacc0f79ccfe9b8b34e6b9ed35ffd17415c918.tar.gz
qemu-fabacc0f79ccfe9b8b34e6b9ed35ffd17415c918.tar.bz2
qemu-fabacc0f79ccfe9b8b34e6b9ed35ffd17415c918.zip
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>
Diffstat (limited to 'target-i386/cpu.h')
-rw-r--r--target-i386/cpu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/target-i386/cpu.h b/target-i386/cpu.h
index a08ce9d873..37dde79581 100644
--- a/target-i386/cpu.h
+++ b/target-i386/cpu.h
@@ -751,7 +751,8 @@ typedef struct CPUX86State {
uint32_t cpuid_svm_features;
bool tsc_valid;
int tsc_khz;
-
+ void *kvm_xsave_buf;
+
/* in order to simplify APIC support, we leave this pointer to the
user */
struct DeviceState *apic_state;