view xen/include/asm-x86/string.h @ 22855:1d1eec7e1fb4

xl: Perform minimal validation of virtual disk file while parsing config file

This patch performs some very basic validation on the virtual disk
file passed through the config file. This validation ensures that we
don't go too far with the initialization like spawn qemu and more
while there could be some potentially fundamental issues.

[ Patch fixed up to work with PHYSTYPE_EMPTY 22808:6ec61438713a -iwj ]

Signed-off-by: Kamala Narasimhan <>
Acked-by: Ian Jackson <>
Signed-off-by: Ian Jackson <>
Committed-by: Ian Jackson <>
author Kamala Narasimhan <>
date Tue Jan 25 18:09:49 2011 +0000 (2011-01-25)
parents d77a88f938c6
line source
1 #ifndef __X86_STRING_H__
2 #define __X86_STRING_H__
4 #include <xen/config.h>
6 #define __HAVE_ARCH_MEMCPY
7 #define memcpy(t,f,n) (__builtin_memcpy((t),(f),(n)))
9 /* Some versions of gcc don't have this builtin. It's non-critical anyway. */
10 #define __HAVE_ARCH_MEMMOVE
11 extern void *memmove(void *dest, const void *src, size_t n);
13 #define __HAVE_ARCH_MEMSET
14 #define memset(s,c,n) (__builtin_memset((s),(c),(n)))
16 #endif /* __X86_STRING_H__ */