* getting debug output from Xen during domain creation
@ 2004-02-22 5:55 Kip Macy
2004-02-22 9:13 ` Ian Pratt
0 siblings, 1 reply; 6+ messages in thread
From: Kip Macy @ 2004-02-22 5:55 UTC (permalink / raw)
To: xen-devel
I've removed the DNDEBUG from xen/arch/i386/Rules.mk. However, during
a failed mmu_update I'm not seeing anything in /var/log/messages or any
output from xen_read_console.
Currently this is the only information that I have:
[root@fsmware01 examples]# ./xc_dom_create.py -f freebsd -D vmid=1 -D
image=/home/kmacy/kernel.gz
Parsing config file 'freebsd'
VM image : "/home/kmacy/kernel.gz"
VM ramdisk : ""
VM memory (MB) : "64"
VM IP address(es) : "10.0.0.8; 169.254.1.1"
VM block device(s) : ""
VM cmdline :
"ip=10.0.0.8:169.254.1.0:10.0.0.1:255.255.255.0::eth0:off bootdev=xennet0"
updates: 0x403e7008, nr_updates: 1305
ERROR: sending page updates failed (22 = Invalid argument)
ERROR: Error constructing guest OS
Error building Linux guest OS:
Return code = -1
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: getting debug output from Xen during domain creation
2004-02-22 5:55 getting debug output from Xen during domain creation Kip Macy
@ 2004-02-22 9:13 ` Ian Pratt
2004-02-22 15:40 ` Kip Macy
0 siblings, 1 reply; 6+ messages in thread
From: Ian Pratt @ 2004-02-22 9:13 UTC (permalink / raw)
To: Kip Macy; +Cc: xen-devel, Ian.Pratt
> I've removed the DNDEBUG from xen/arch/i386/Rules.mk. However, during
> a failed mmu_update I'm not seeing anything in /var/log/messages or any
> output from xen_read_console.
Try enabling MEM_LOG in xen/common/memory.c [*]
This should probably be the default for DEBUG builds.
Ian
[*] Last time I looked, the macro was missing a '\' which you'll
need.
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: getting debug output from Xen during domain creation
2004-02-22 9:13 ` Ian Pratt
@ 2004-02-22 15:40 ` Kip Macy
2004-02-22 16:16 ` Keir Fraser
0 siblings, 1 reply; 6+ messages in thread
From: Kip Macy @ 2004-02-22 15:40 UTC (permalink / raw)
To: Ian Pratt; +Cc: xen-devel
Well ...
1) MEM_LOG is gated by NDEBUG:
#ifndef NDEBUG
#define MEM_LOG(_f, _a...) \
printk("DOM%llu: (file=memory.c, line=%d) " _f "\n", \
current->domain, __LINE__, ## _a )
#else
#define MEM_LOG(_f, _a...) ((void)0)
#endif
2) I've checked the C preprocessor output - and the printf statements
are being generated.
3) Just for grins I've checked the output of strings on the object file
to make sure that the strings were in fact there.
I think something else is going on.
-Kip
On Sun, 22 Feb 2004, Ian Pratt wrote:
>
> > I've removed the DNDEBUG from xen/arch/i386/Rules.mk. However, during
> > a failed mmu_update I'm not seeing anything in /var/log/messages or any
> > output from xen_read_console.
>
> Try enabling MEM_LOG in xen/common/memory.c [*]
>
> This should probably be the default for DEBUG builds.
>
> Ian
>
> [*] Last time I looked, the macro was missing a '\' which you'll
> need.
>
>
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xen-devel
>
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: getting debug output from Xen during domain creation
2004-02-22 15:40 ` Kip Macy
@ 2004-02-22 16:16 ` Keir Fraser
2004-02-22 16:26 ` Kip Macy
0 siblings, 1 reply; 6+ messages in thread
From: Keir Fraser @ 2004-02-22 16:16 UTC (permalink / raw)
To: Kip Macy; +Cc: Ian Pratt, xen-devel
Looks like I may have foxed you --- I modified the MEM_LOG definition
this morning in response to your earlier email. Before that it wasn't
gated on NDEBUG. So if you run your debug build now then you should
get useful output.
-- Keir
> Well ...
>
> 1) MEM_LOG is gated by NDEBUG:
> #ifndef NDEBUG
> #define MEM_LOG(_f, _a...) \
> printk("DOM%llu: (file=memory.c, line=%d) " _f "\n", \
> current->domain, __LINE__, ## _a )
>
> #else
> #define MEM_LOG(_f, _a...) ((void)0)
> #endif
>
> 2) I've checked the C preprocessor output - and the printf statements
> are being generated.
>
> 3) Just for grins I've checked the output of strings on the object file
> to make sure that the strings were in fact there.
>
>
> I think something else is going on.
>
>
> -Kip
>
>
> On Sun, 22 Feb 2004, Ian Pratt wrote:
>
> >
> > > I've removed the DNDEBUG from xen/arch/i386/Rules.mk. However, during
> > > a failed mmu_update I'm not seeing anything in /var/log/messages or any
> > > output from xen_read_console.
> >
> > Try enabling MEM_LOG in xen/common/memory.c [*]
> >
> > This should probably be the default for DEBUG builds.
> >
> > Ian
> >
> > [*] Last time I looked, the macro was missing a '\' which you'll
> > need.
> >
> >
> > -------------------------------------------------------
> > SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> > Build and deploy apps & Web services for Linux with
> > a free DVD software kit from IBM. Click Now!
> > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/xen-devel
> >
>
>
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xen-devel
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: getting debug output from Xen during domain creation
2004-02-22 16:16 ` Keir Fraser
@ 2004-02-22 16:26 ` Kip Macy
2004-02-22 16:48 ` Keir Fraser
0 siblings, 1 reply; 6+ messages in thread
From: Kip Macy @ 2004-02-22 16:26 UTC (permalink / raw)
To: Keir Fraser; +Cc: Ian Pratt, xen-devel
I think I'm doing something wrong with my configuration. The only place
where I can get any DOM0 output from is xen_dmesg.py. There I actually
see a line that I stuck into do_mmu_update as a test of the debug code
itself:
DOM0: (file=memory.c, line=916) do_mmu_update called
DOM0: (file=memory.c, line=916) do_mmu_update called
DOM0: (file=memory.c, line=916) do_mmu_update called
DOM0: (file=memory.c, line=916) do_mmu_update called
Minor pet peeve: "shutdown -r now", doesn't actually cause a reboot.
Every time I want to change xen, I have to go downstairs to the machine
and power-cycle it by hand.
-Kip
On Sun, 22 Feb 2004, Keir Fraser wrote:
>
> Looks like I may have foxed you --- I modified the MEM_LOG definition
> this morning in response to your earlier email. Before that it wasn't
> gated on NDEBUG. So if you run your debug build now then you should
> get useful output.
>
> -- Keir
>
>
> > Well ...
> >
> > 1) MEM_LOG is gated by NDEBUG:
> > #ifndef NDEBUG
> > #define MEM_LOG(_f, _a...) \
> > printk("DOM%llu: (file=memory.c, line=%d) " _f "\n", \
> > current->domain, __LINE__, ## _a )
> >
> > #else
> > #define MEM_LOG(_f, _a...) ((void)0)
> > #endif
> >
> > 2) I've checked the C preprocessor output - and the printf statements
> > are being generated.
> >
> > 3) Just for grins I've checked the output of strings on the object file
> > to make sure that the strings were in fact there.
> >
> >
> > I think something else is going on.
> >
> >
> > -Kip
> >
> >
> > On Sun, 22 Feb 2004, Ian Pratt wrote:
> >
> > >
> > > > I've removed the DNDEBUG from xen/arch/i386/Rules.mk. However, during
> > > > a failed mmu_update I'm not seeing anything in /var/log/messages or any
> > > > output from xen_read_console.
> > >
> > > Try enabling MEM_LOG in xen/common/memory.c [*]
> > >
> > > This should probably be the default for DEBUG builds.
> > >
> > > Ian
> > >
> > > [*] Last time I looked, the macro was missing a '\' which you'll
> > > need.
> > >
> > >
> > > -------------------------------------------------------
> > > SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> > > Build and deploy apps & Web services for Linux with
> > > a free DVD software kit from IBM. Click Now!
> > > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> > > _______________________________________________
> > > Xen-devel mailing list
> > > Xen-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/xen-devel
> > >
> >
> >
> > -------------------------------------------------------
> > SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> > Build and deploy apps & Web services for Linux with
> > a free DVD software kit from IBM. Click Now!
> > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/xen-devel
>
>
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: getting debug output from Xen during domain creation
2004-02-22 16:26 ` Kip Macy
@ 2004-02-22 16:48 ` Keir Fraser
0 siblings, 0 replies; 6+ messages in thread
From: Keir Fraser @ 2004-02-22 16:48 UTC (permalink / raw)
To: Kip Macy; +Cc: Keir Fraser, Ian Pratt, xen-devel
> Minor pet peeve: "shutdown -r now", doesn't actually cause a reboot.
> Every time I want to change xen, I have to go downstairs to the machine
> and power-cycle it by hand.
Provided that you did not specify 'noreboot' as a Xen start-of-day
option, the machine should reboot as sson as DOM0 exits. If that's not
happening then it's probably a problem with Xen's reboot code (it's
not as comprehensive as Linux's).
-- Keir
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-02-22 16:48 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-22 5:55 getting debug output from Xen during domain creation Kip Macy
2004-02-22 9:13 ` Ian Pratt
2004-02-22 15:40 ` Kip Macy
2004-02-22 16:16 ` Keir Fraser
2004-02-22 16:26 ` Kip Macy
2004-02-22 16:48 ` Keir Fraser
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.