Skip to contentSkip to conversation

need to explain the code

DISCUSSION James (song wei) 2 participants 3 messages Nov 5, 2009

lore
Share & tools
lore
#0 lore raw

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)

Signature · 2 lines
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.
#1 lore raw

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

Quoted 7 lines · James (song wei)

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)

author
#2 lore raw

Thanks Keir, It's real a bit odd :-)

- James (song wei)

Quoted 1 line
Quoted 1 line
Quoted 1 line

Keir Fraser <[email protected]> 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

Quoted 7 lines · James (song wei)

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
[email protected]
http://lists.xensource.com/xen-devel