|
|
|
|
|
|
|
|
|
|
xen-devel
RE: [Xen-devel] capturing windows crash dumps
> On Tue, 18 Aug 2009, James Harper wrote:
> > > On 18/08/2009 11:42, "James Harper"
<james.harper@xxxxxxxxxxxxxxxx>
> > wrote:
> > >
> > > >> Could it be as simple as write the guest physical address of a
> > > > pre-allocated
> > > >> buffer into xenstore (from GPLPV drivers)? Then dump that area
of
> > > > guest
> > > >> memory on guest bugcheck, even as a manual operation from dom0?
> > > >
> > > > The memory in question could be anything from 64kb (minidump) to
the
> > > > size of DomU memory (full dump) or somewhere inbetween (kernel
> > dump).
> > > > I'm normally just interested in the kernel dump which is
normally a
> > much
> > > > more respectable size, but still not the size of memory you can
> > easily
> > > > find when the system has gone belly up.
> > >
> > > Hmm, okay. Could you dump it out over the emulated serial line?
> > >
> >
> > I was thinking about that. It could work, then I could just do 'xm
> > console <domu> >dump' and parse the dump from there or something.
> >
>
> Good idea, also keep in mind that qemu can emulate multiple serials if
> needed.
> Stubdoms support multiple serials too, so if you make the changes to
add
> another serial to qemu please test with stubdoms too :)
How fast do you think that serial port output could be? Is the baud rate
limited by qemu? To put the question another way, the size of the dump
could be up to the size of DomU's memory so could be many gigabytes,
although would typically be <500MB, would that dump out in reasonable
time?
Thinking about it some more, it would be nice to have a mechanism that
could allow PV Linux/BSD/Solaris/etc to dump out similar information in
the event of a complete crash. What would be involved in having a
hypercall that could be called repeatedly to send data to Dom0? 1 page
at a time would be fine, so the parameters could be 'pfn, offset,
length'. I guess the problem wouldn't be in adding the hypercall but in
having the information end up in Dom0... would that be really difficult
and/or messy?
James
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|