aboutsummaryrefslogtreecommitdiff
path: root/target/i386/cpu.h
diff options
context:
space:
mode:
authorSergio Andres Gomez Del Real <sergio.g.delreal@gmail.com>2017-06-26 15:08:32 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2017-07-04 14:39:27 +0200
commit86a57621ce7bfe852413e3f3ce4e9682a7d581c7 (patch)
tree8948d995edd9601f0b345abd341f4074a4821944 /target/i386/cpu.h
parent56382bd5770decbf7ede46e5030e8e348b27009d (diff)
downloadqemu-86a57621ce7bfe852413e3f3ce4e9682a7d581c7.zip
qemu-86a57621ce7bfe852413e3f3ce4e9682a7d581c7.tar.gz
qemu-86a57621ce7bfe852413e3f3ce4e9682a7d581c7.tar.bz2
xsave_helper: pull xsave and xrstor out of kvm.c into helper function
This patch pulls out of kvm.c and into the new files the implementation for the xsave and xrstor instructions. This so they can be shared by kvm and hvf. Signed-off-by: Sergio Andres Gomez Del Real <Sergio.G.DelReal@gmail.com> Message-Id: <20170626200832.11058-1-Sergio.G.DelReal@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Sergio Andres Gomez Del Real <sergio.g.delreal@gmail.com>
Diffstat (limited to 'target/i386/cpu.h')
-rw-r--r--target/i386/cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/i386/cpu.h b/target/i386/cpu.h
index de0551f..c5e143e 100644
--- a/target/i386/cpu.h
+++ b/target/i386/cpu.h
@@ -1697,4 +1697,6 @@ void x86_cpu_dump_local_apic_state(CPUState *cs, FILE *f,
/* cpu.c */
bool cpu_is_bsp(X86CPU *cpu);
+void x86_cpu_xrstor_all_areas(X86CPU *cpu, const X86XSaveArea *buf);
+void x86_cpu_xsave_all_areas(X86CPU *cpu, X86XSaveArea *buf);
#endif /* I386_CPU_H */