diff options
author | Keir Fraser <keir@xen.org> | 2011-04-18 09:47:12 +0100 |
---|---|---|
committer | Keir Fraser <keir@xen.org> | 2011-04-18 09:47:12 +0100 |
commit | e3623c9fd5a3a1d3bde1eb803e472de99eace901 (patch) | |
tree | 3e3a74cf3266339fe73a8dd47ad886d4341fa518 /xen/include/asm-x86/hvm/support.h | |
parent | 9074aedd52560885193ab82247335f5ba2cdc52d (diff) | |
download | xen-e3623c9fd5a3a1d3bde1eb803e472de99eace901.tar.gz xen-e3623c9fd5a3a1d3bde1eb803e472de99eace901.tar.bz2 xen-e3623c9fd5a3a1d3bde1eb803e472de99eace901.zip |
vmx/hvm: move mov-cr handling functions to generic HVM code
Currently the handling of CR accesses intercepts is done much
differently in SVM and VMX. For future usage move the VMX part
into the generic HVM path and use the exported functions.
Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Keir Fraser <keir@xen.org>
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 92e96e30fb..d9a4e3cdca 100644 --- a/xen/include/asm-x86/hvm/support.h +++ b/xen/include/asm-x86/hvm/support.h @@ -137,5 +137,7 @@ int hvm_set_cr3(unsigned long value); int hvm_set_cr4(unsigned long value); int hvm_msr_read_intercept(unsigned int msr, uint64_t *msr_content); int hvm_msr_write_intercept(unsigned int msr, uint64_t msr_content); +int hvm_mov_to_cr(unsigned int cr, unsigned int gpr); +int hvm_mov_from_cr(unsigned int cr, unsigned int gpr); #endif /* __ASM_X86_HVM_SUPPORT_H__ */ |