* start_info content for linux
@ 2012-09-26  8:32 George Shuklin
  2012-09-26  8:42 ` Ian Campbell
  2012-09-26 11:53 ` Konrad Rzeszutek Wilk
  0 siblings, 2 replies; 3+ messages in thread
From: George Shuklin @ 2012-09-26  8:32 UTC (permalink / raw)
  To: xen-devel
Good day.
I've digging in some strange memory/balloon related bug and I've really 
like to see start_info content on linux. I saw in source code
#ifdef CONFIG_X86_32
         mov %esi,xen_start_info
         mov $init_thread_union+THREAD_SIZE,%esp
#else
         mov %rsi,xen_start_info
         mov $init_thread_union+THREAD_SIZE,%rsp
#endif
         jmp xen_start_kernel
Pointer to start_info stored in linux global variable xen_start_info, 
but I can't find way to access it.
Is any way to get it from linux kernel? (well, except writing your own 
module).
Thanks.
^ permalink raw reply	[flat|nested] 3+ messages in thread- * Re: start_info content for linux
  2012-09-26  8:32 start_info content for linux George Shuklin
@ 2012-09-26  8:42 ` Ian Campbell
  2012-09-26 11:53 ` Konrad Rzeszutek Wilk
  1 sibling, 0 replies; 3+ messages in thread
From: Ian Campbell @ 2012-09-26  8:42 UTC (permalink / raw)
  To: George Shuklin; +Cc: xen-devel
On Wed, 2012-09-26 at 09:32 +0100, George Shuklin wrote:
> Good day.
> 
> I've digging in some strange memory/balloon related bug and I've really 
> like to see start_info content on linux. I saw in source code
> 
> #ifdef CONFIG_X86_32
>          mov %esi,xen_start_info
>          mov $init_thread_union+THREAD_SIZE,%esp
> #else
>          mov %rsi,xen_start_info
>          mov $init_thread_union+THREAD_SIZE,%rsp
> #endif
>          jmp xen_start_kernel
> 
> Pointer to start_info stored in linux global variable xen_start_info, 
> but I can't find way to access it.
>
> Is any way to get it from linux kernel? (well, except writing your own 
> module).
I don't think this structure is exported to userspace, so I'm afraid it
would have to be a module, or use some sort of /dev/kmem capable
debugger (I don't know one to recommend though).
To do any serious debugging of ballooning you are probably going to need
to build a kernel with debugging added anyway though.
Ian.
^ permalink raw reply	[flat|nested] 3+ messages in thread 
- * Re: start_info content for linux
  2012-09-26  8:32 start_info content for linux George Shuklin
  2012-09-26  8:42 ` Ian Campbell
@ 2012-09-26 11:53 ` Konrad Rzeszutek Wilk
  1 sibling, 0 replies; 3+ messages in thread
From: Konrad Rzeszutek Wilk @ 2012-09-26 11:53 UTC (permalink / raw)
  To: George Shuklin; +Cc: xen-devel
On Wed, Sep 26, 2012 at 12:32:40PM +0400, George Shuklin wrote:
> Good day.
> 
> I've digging in some strange memory/balloon related bug and I've
> really like to see start_info content on linux. I saw in source code
> 
> #ifdef CONFIG_X86_32
>         mov %esi,xen_start_info
>         mov $init_thread_union+THREAD_SIZE,%esp
> #else
>         mov %rsi,xen_start_info
>         mov $init_thread_union+THREAD_SIZE,%rsp
> #endif
>         jmp xen_start_kernel
> 
> Pointer to start_info stored in linux global variable
> xen_start_info, but I can't find way to access it.
> 
> Is any way to get it from linux kernel? (well, except writing your
> own module).
No. That is the only way.
What do you want to get out of the xen_start_kernel structure?
> 
> Thanks.
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
> 
^ permalink raw reply	[flat|nested] 3+ messages in thread 
end of thread, other threads:[~2012-09-26 11:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-26  8:32 start_info content for linux George Shuklin
2012-09-26  8:42 ` Ian Campbell
2012-09-26 11:53 ` Konrad Rzeszutek Wilk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).