Signed-off-by: Wei Liu <wei.l...@citrix.com> --- xen/include/asm-x86/hvm/guest_access.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
diff --git a/xen/include/asm-x86/hvm/guest_access.h b/xen/include/asm-x86/hvm/guest_access.h index b92dbe9..c7e83dc 100644 --- a/xen/include/asm-x86/hvm/guest_access.h +++ b/xen/include/asm-x86/hvm/guest_access.h @@ -1,8 +1,32 @@ #ifndef __ASM_X86_HVM_GUEST_ACCESS_H__ #define __ASM_X86_HVM_GUEST_ACCESS_H__ +#if CONFIG_HVM + unsigned long copy_to_user_hvm(void *to, const void *from, unsigned len); unsigned long clear_user_hvm(void *to, unsigned int len); unsigned long copy_from_user_hvm(void *to, const void *from, unsigned len); +#else + +static inline +unsigned long copy_to_user_hvm(void *to, const void *from, unsigned len) +{ + return len; +} + +static inline +unsigned long clear_user_hvm(void *to, unsigned int len) +{ + return len; +} + +static inline +unsigned long copy_from_user_hvm(void *to, const void *from, unsigned len) +{ + return len; +} + +#endif + #endif /* __ASM_X86_HVM_GUEST_ACCESS_H__ */ -- git-series 0.9.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel