I see the XEN code about "#define HYPERVISOR_COMPAT_VIRT_START(d) ((d)->arch.hv_compat_vstart)" in xen/include/asm-x86/config.h and be puzzled that where did the code allocate a value to hv_compat_vstart? Someone could tell me. thanks in advance! -James (song wei) -- View this message in context: http://old.nabble.com/need-to-explain-the-code-tp26208586p26208586.html Sent from the Xen - Dev mailing list archive at Nabble.com. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
It gets assigned tro via that macro. I.e., HYPERVISOR_COMPAT_VIRT_START(d) = ... Which is a bit odd. :-) You can grep for that, and find it in arch/x86/domain.c and arch/x86/domain_build.c. -- Keir On 05/11/2009 06:25, "James (song wei)" <jsong@novell.com> wrote:> > I see the XEN code about "#define HYPERVISOR_COMPAT_VIRT_START(d) > ((d)->arch.hv_compat_vstart)" in xen/include/asm-x86/config.h and be puzzled > that where did the code allocate a value to hv_compat_vstart? > Someone could tell me. thanks in advance! > > -James (song wei)_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Thanks Keir, It''s real a bit odd :-) - James (song wei)>>> Keir Fraser <keir.fraser@eu.citrix.com> 2009-11-5 15:58 >>>It gets assigned tro via that macro. I.e., HYPERVISOR_COMPAT_VIRT_START(d) = ... Which is a bit odd. :-) You can grep for that, and find it in arch/x86/domain.c and arch/x86/domain_build.c. -- Keir On 05/11/2009 06:25, "James (song wei)" <jsong@novell.com> wrote:> > I see the XEN code about "#define HYPERVISOR_COMPAT_VIRT_START(d) > ((d)->arch.hv_compat_vstart)" in xen/include/asm-x86/config.h and be puzzled > that where did the code allocate a value to hv_compat_vstart? > Someone could tell me. thanks in advance! > > -James (song wei)_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel