summaryrefslogtreecommitdiffstats
path: root/target/i386/hvf-all.c
diff options
context:
space:
mode:
authorSergio Andres Gomez Del Real2017-09-13 11:05:17 +0200
committerPaolo Bonzini2017-12-22 15:01:47 +0100
commitf585195ec07fd2a6af5fc04c92caf1b71f34e16c (patch)
tree03120ada1c99c3268ffb3f7282044f237ac2e87c /target/i386/hvf-all.c
parenti386: hvf: fix licensing issues; isolate task handling code (GPL v2-only) (diff)
downloadqemu-f585195ec07fd2a6af5fc04c92caf1b71f34e16c.tar.gz
qemu-f585195ec07fd2a6af5fc04c92caf1b71f34e16c.tar.xz
qemu-f585195ec07fd2a6af5fc04c92caf1b71f34e16c.zip
i386: hvf: use new helper functions for put/get xsave
This patch makes use of the helper functions for handling xsave in xsave_helper.c, which are shared with kvm. Signed-off-by: Sergio Andres Gomez Del Real <Sergio.G.DelReal@gmail.com> Message-Id: <20170913090522.4022-10-Sergio.G.DelReal@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/hvf-all.c')
-rw-r--r--target/i386/hvf-all.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/target/i386/hvf-all.c b/target/i386/hvf-all.c
index c098949577..ddeadac176 100644
--- a/target/i386/hvf-all.c
+++ b/target/i386/hvf-all.c
@@ -502,8 +502,7 @@ int hvf_init_vcpu(CPUState *cpu)
hvf_reset_vcpu(cpu);
x86cpu = X86_CPU(cpu);
- x86cpu->env.kvm_xsave_buf = qemu_memalign(4096,
- sizeof(struct hvf_xsave_buf));
+ x86cpu->env.kvm_xsave_buf = qemu_memalign(4096, 4096);
hv_vcpu_enable_native_msr(cpu->hvf_fd, MSR_STAR, 1);
hv_vcpu_enable_native_msr(cpu->hvf_fd, MSR_LSTAR, 1);