diff options
author | Keir Fraser <keir@xen.org> | 2010-12-07 18:27:40 +0000 |
---|---|---|
committer | Keir Fraser <keir@xen.org> | 2010-12-07 18:27:40 +0000 |
commit | b2bef9fe49a040c3a60568e26deb723098597a1f (patch) | |
tree | 89e03cd11494cb4446f7b915f0b557dcc54bd249 /xen/include/asm-x86/hvm/support.h | |
parent | 658fe194c5dadb7f572d603d35a10fb5bd639d3f (diff) | |
download | xen-b2bef9fe49a040c3a60568e26deb723098597a1f.tar.gz xen-b2bef9fe49a040c3a60568e26deb723098597a1f.tar.bz2 xen-b2bef9fe49a040c3a60568e26deb723098597a1f.zip |
amd xsave: Enable XSAVE/XRSTOR for SVM guest
This patch creates a common interface hanlding xsetbv.
Signed-off-by: Wei Huang <wei.huang2@amd.com>
Diffstat (limited to 'xen/include/asm-x86/hvm/support.h')
-rw-r--r-- | xen/include/asm-x86/hvm/support.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/include/asm-x86/hvm/support.h b/xen/include/asm-x86/hvm/support.h index d4377852a8..5a39aae0a9 100644 --- a/xen/include/asm-x86/hvm/support.h +++ b/xen/include/asm-x86/hvm/support.h @@ -128,6 +128,8 @@ void hvm_triple_fault(void); void hvm_rdtsc_intercept(struct cpu_user_regs *regs); +int hvm_handle_xsetbv(u64 new_bv); + /* These functions all return X86EMUL return codes. */ int hvm_set_efer(uint64_t value); int hvm_set_cr0(unsigned long value); |