From: Ian Campbell Subject: Re: start_info content for linux Date: Wed, 26 Sep 2012 09:42:23 +0100 Message-ID: <1348648943.19176.8.camel@zakaz.uk.xensource.com> References: <5062BDA8.5@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5062BDA8.5@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Shuklin Cc: xen-devel List-Id: xen-devel@lists.xenproject.org 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.