summaryrefslogtreecommitdiff
path: root/qemu-kvm.h
diff options
context:
space:
mode:
authorSheng Yang <sheng@linux.intel.com>2010-06-11 12:36:49 +0800
committerMarcelo Tosatti <mtosatti@redhat.com>2010-06-14 17:39:15 -0300
commit2e4a8d2a0a199883454564d4ecde5feb02ad9b3f (patch)
tree3b675a8dc14070aa614a167343a52447a2c2aed9 /qemu-kvm.h
parent909bfdba8ba01d7f3b36c3e72d965f189df83bf2 (diff)
qemu: kvm: Enable XSAVE live migration support
Signed-off-by: Sheng Yang <sheng@linux.intel.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'qemu-kvm.h')
-rw-r--r--qemu-kvm.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/qemu-kvm.h b/qemu-kvm.h
index 6f6c6d8ee..3ace503f7 100644
--- a/qemu-kvm.h
+++ b/qemu-kvm.h
@@ -300,6 +300,34 @@ int kvm_get_mpstate(CPUState *env, struct kvm_mp_state *mp_state);
int kvm_set_mpstate(CPUState *env, struct kvm_mp_state *mp_state);
#endif
+#ifdef KVM_CAP_XSAVE
+/*!
+ * * \brief Read VCPU xsave state
+ *
+ */
+int kvm_get_xsave(CPUState *env, struct kvm_xsave *xsave);
+
+/*!
+ * * \brief Write VCPU xsave state
+ *
+ */
+int kvm_set_xsave(CPUState *env, struct kvm_xsave *xsave);
+#endif
+
+#ifdef KVM_CAP_XCRS
+/*!
+ * * \brief Read VCPU XCRs
+ *
+ */
+int kvm_get_xcrs(CPUState *env, struct kvm_xcrs *xcrs);
+
+/*!
+ * * \brief Write VCPU XCRs
+ *
+ */
+int kvm_set_xcrs(CPUState *env, struct kvm_xcrs *xcrs);
+#endif
+
/*!
* \brief Simulate an external vectored interrupt
*