some problems in memory sharing

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

some problems in memory sharing

wsrspirit
This post has NOT been accepted by the mailing list yet.
HI everybody
I am a new hand in XEN .But I want to achieve memory sharing between dom0 and domu.
I read this page
http://xen.1045712.n5.nabble.com/Memory-Page-Sharing-on-Xen-4-0-1-td4531585.html
When I use their code in my dom0,here is my question :(there is some Chinese words I will give some explains)
make:进入目录(go into)'/usr/src/linux-headers-3.5.0-23-generic'
  CC [M]  /home/spirit/dom0_working/dom0.o
/home/spirit/dom0_working/dom0.c:68:5: 警告(waring): “ENABLE_SRING”未定义(not define) [-Wundef]
/home/spirit/dom0_working/dom0.c: 在函数‘init_module’中:
/home/spirit/dom0_working/dom0.c:128:5: 警告: “ENABLE_SRING”未定义 [-Wundef]
/home/spirit/dom0_working/dom0.c:134:27: 错误: ‘qwe’未声明(在此函数内第一次使用)
/home/spirit/dom0_working/dom0.c:134:27: 附注: 每个未声明的标识符在其出现的函数内只报告一次
/home/spirit/dom0_working/dom0.c:140:7: 错误: 提供给函数‘alloc_vm_area’的实参太少
include/linux/vmalloc.h:122:26: 附注: 在此声明
/home/spirit/dom0_working/dom0.c:157:7: 错误: 隐式声明函数‘HYPERVISOR_grant_table_op’ [-Werror=implicit-function-declaration]
/home/spirit/dom0_working/dom0.c:168:19: 警告: 将一个指针转换为大小不同的整数 [-Wpointer-to-int-cast]
/home/spirit/dom0_working/dom0.c:186:5: 警告: “ENABLE_SRING”未定义 [-Wundef]
/home/spirit/dom0_working/dom0.c:131:11: 警告: 未使用的变量‘err’ [-Wunused-variable]
cc1: some warnings being treated as errors
make[1]: *** [/home/spirit/dom0_working/dom0.o] 错误 1
make: *** [_module_/home/spirit/dom0_working] 错误 2
make:离开目录“/usr/src/linux-headers-3.5.0-23-generic”


I just want to ask what is ENABLE_SRING ? And where is it defined, why I can't include it.
Thank you :)