xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/6] crash: Bundle of fixes for Xen
@ 2012-08-10 13:23 Daniel Kiper
       [not found] ` <20120810132357.GA2576-UojuW/CpjwpdUOLzJiIvSsFoITBeLw/klGfBN0aaEZ+lPcVs/6D9LQ@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Kiper @ 2012-08-10 13:23 UTC (permalink / raw)
  To: anderson-H+wXaHxf7aLQT0dZR+AlfA,
	konrad.wilk-QHcLZuEGTsvQT0dZR+AlfA,
	andrew.cooper3-Sxgqhf6Nn4DQT0dZR+AlfA,
	olaf-QOLJcTWqO2uzQB+pC5nmwQ, jbeulich-IBi9RG/b67k,
	ptesarik-AlSwsSmVLrQ, crash-utility-H+wXaHxf7aLQT0dZR+AlfA,
	kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	xen-devel-GuqFBffKawuULHF6PoxzQEEOCMrvLtNR

Hi,

It looks that Xen support for crash have not been maintained
since 2009. I am trying to fix this. Here it is bundle of fixes:
  - xen: Always calculate max_cpus value,
  - xen: Read only crash notes for onlined CPUs,
  - x86/xen: Read variables from dynamically allocated per_cpu data,
  - xen: Get idle data from alternative source,
  - xen: Read data correctly from dynamically allocated console ring, too
    (fixed in this release),
  - xen: Add support for 3 level P2M tree
    (new patch in this release).

Daniel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2 0/6] crash: Bundle of fixes for Xen
       [not found] ` <20120810132357.GA2576-UojuW/CpjwpdUOLzJiIvSsFoITBeLw/klGfBN0aaEZ+lPcVs/6D9LQ@public.gmane.org>
@ 2012-08-10 19:11   ` Dave Anderson
       [not found]     ` <1568927206.9177777.1344625917898.JavaMail.root-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Dave Anderson @ 2012-08-10 19:11 UTC (permalink / raw)
  To: Daniel Kiper
  Cc: olaf-QOLJcTWqO2uzQB+pC5nmwQ,
	xen-devel-GuqFBffKawuULHF6PoxzQEEOCMrvLtNR, konrad wilk,
	andrew cooper3, ptesarik-AlSwsSmVLrQ, jbeulich-IBi9RG/b67k,
	kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	crash-utility-H+wXaHxf7aLQT0dZR+AlfA



----- Original Message -----
> Hi,
> 
> It looks that Xen support for crash have not been maintained
> since 2009. I am trying to fix this. Here it is bundle of fixes:
>   - xen: Always calculate max_cpus value,
>   - xen: Read only crash notes for onlined CPUs,
>   - x86/xen: Read variables from dynamically allocated per_cpu data,
>   - xen: Get idle data from alternative source,
>   - xen: Read data correctly from dynamically allocated console ring, too
>     (fixed in this release),
>   - xen: Add support for 3 level P2M tree (new patch in this release).
> 
> Daniel
> 

Hi Daniel,

The original 5 updates specific to the Xen hypervisor look OK,
but new patch 6/6 is going to take some studying/testing to
alleviate my backwards-compatibility worries.  Can I ask whether
you fully tested it with older 2-level P2M tree kernels? 

Thanks,
  Dave

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2 0/6] crash: Bundle of fixes for Xen
       [not found]     ` <1568927206.9177777.1344625917898.JavaMail.root-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2012-08-13  7:37       ` Daniel Kiper
       [not found]         ` <20120813073754.GA2482-UojuW/CpjwpdUOLzJiIvSsFoITBeLw/klGfBN0aaEZ+lPcVs/6D9LQ@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Kiper @ 2012-08-13  7:37 UTC (permalink / raw)
  To: Dave Anderson
  Cc: olaf-QOLJcTWqO2uzQB+pC5nmwQ,
	xen-devel-GuqFBffKawuULHF6PoxzQEEOCMrvLtNR, konrad wilk,
	andrew cooper3, ptesarik-AlSwsSmVLrQ, jbeulich-IBi9RG/b67k,
	kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	crash-utility-H+wXaHxf7aLQT0dZR+AlfA

On Fri, Aug 10, 2012 at 03:11:57PM -0400, Dave Anderson wrote:
>
>
> ----- Original Message -----
> > Hi,
> >
> > It looks that Xen support for crash have not been maintained
> > since 2009. I am trying to fix this. Here it is bundle of fixes:
> >   - xen: Always calculate max_cpus value,
> >   - xen: Read only crash notes for onlined CPUs,
> >   - x86/xen: Read variables from dynamically allocated per_cpu data,
> >   - xen: Get idle data from alternative source,
> >   - xen: Read data correctly from dynamically allocated console ring, too
> >     (fixed in this release),
> >   - xen: Add support for 3 level P2M tree (new patch in this release).
> >
> > Daniel
>
> Hi Daniel,
>
> The original 5 updates specific to the Xen hypervisor look OK,
> but new patch 6/6 is going to take some studying/testing to
> alleviate my backwards-compatibility worries.  Can I ask whether
> you fully tested it with older 2-level P2M tree kernels?

As you asked me earlier I have tested all patches on Xen 3.1 and 4.1,
Linux Kernel Ver. 2.6.18 (P2M array), 2.6.36 (2 level P2M tree)
and 2.6.39 (3 level P2M tree). Additionaly, there were some internal
tests done by others in my company.

Daniel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2 0/6] crash: Bundle of fixes for Xen
       [not found]         ` <20120813073754.GA2482-UojuW/CpjwpdUOLzJiIvSsFoITBeLw/klGfBN0aaEZ+lPcVs/6D9LQ@public.gmane.org>
@ 2012-08-13 19:16           ` Dave Anderson
       [not found]             ` <1827880283.12350529.1344885413402.JavaMail.root-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Dave Anderson @ 2012-08-13 19:16 UTC (permalink / raw)
  To: Daniel Kiper
  Cc: olaf-QOLJcTWqO2uzQB+pC5nmwQ,
	xen-devel-GuqFBffKawuULHF6PoxzQEEOCMrvLtNR, konrad wilk,
	andrew cooper3, ptesarik-AlSwsSmVLrQ, jbeulich-IBi9RG/b67k,
	kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	crash-utility-H+wXaHxf7aLQT0dZR+AlfA



----- Original Message -----
> On Fri, Aug 10, 2012 at 03:11:57PM -0400, Dave Anderson wrote:
> >
> >
> > ----- Original Message -----
> > > Hi,
> > >
> > > It looks that Xen support for crash have not been maintained
> > > since 2009. I am trying to fix this. Here it is bundle of fixes:
> > >   - xen: Always calculate max_cpus value,
> > >   - xen: Read only crash notes for onlined CPUs,
> > >   - x86/xen: Read variables from dynamically allocated per_cpu
> > >   data,
> > >   - xen: Get idle data from alternative source,
> > >   - xen: Read data correctly from dynamically allocated console
> > >   ring, too
> > >     (fixed in this release),
> > >   - xen: Add support for 3 level P2M tree (new patch in this
> > >   release).
> > >
> > > Daniel
> >
> > Hi Daniel,
> >
> > The original 5 updates specific to the Xen hypervisor look OK,
> > but new patch 6/6 is going to take some studying/testing to
> > alleviate my backwards-compatibility worries.  Can I ask whether
> > you fully tested it with older 2-level P2M tree kernels?
> 
> As you asked me earlier I have tested all patches on Xen 3.1 and 4.1,
> Linux Kernel Ver. 2.6.18 (P2M array), 2.6.36 (2 level P2M tree)
> and 2.6.39 (3 level P2M tree). Additionaly, there were some internal
> tests done by others in my company.
> 
> Daniel

OK good.  It tests OK on a few older pvops kernels that I have on hand.

The only thing I've changed is to handle compiler warnings in x86_64.c and 
x86.c by initializing p2m_top to NULL in x86_64_pvops_xendump_p2m_l3_create()
and x86_pvops_xendump_p2m_l3_create().  I also used GETBUF() in those two
functions to avoid having to add the malloc-failure line.

Queued for crash-6.0.9.

Thanks,
  Dave

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2 0/6] crash: Bundle of fixes for Xen
       [not found]             ` <1827880283.12350529.1344885413402.JavaMail.root-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2012-08-14  6:14               ` Daniel Kiper
       [not found]                 ` <20120814061408.GA2471-UojuW/CpjwpdUOLzJiIvSsFoITBeLw/klGfBN0aaEZ+lPcVs/6D9LQ@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Kiper @ 2012-08-14  6:14 UTC (permalink / raw)
  To: Dave Anderson
  Cc: olaf-QOLJcTWqO2uzQB+pC5nmwQ,
	xen-devel-GuqFBffKawuULHF6PoxzQEEOCMrvLtNR, konrad wilk,
	andrew cooper3, ptesarik-AlSwsSmVLrQ, jbeulich-IBi9RG/b67k,
	kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	crash-utility-H+wXaHxf7aLQT0dZR+AlfA

On Mon, Aug 13, 2012 at 03:16:53PM -0400, Dave Anderson wrote:

[...]

> OK good.  It tests OK on a few older pvops kernels that I have on hand.
>
> The only thing I've changed is to handle compiler warnings in x86_64.c and
> x86.c by initializing p2m_top to NULL in x86_64_pvops_xendump_p2m_l3_create()
> and x86_pvops_xendump_p2m_l3_create().  I also used GETBUF() in those two
> functions to avoid having to add the malloc-failure line.

No problem. However, I am a bit surprised that you have seen some warnings.
I have not seen any. Did you compiled crash with extra options or something
like that? Or maybe there is a diffrence in our compilers (mine
is gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) - quite ancient).

> Queued for crash-6.0.9.

Thanks.

Daniel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2 0/6] crash: Bundle of fixes for Xen
       [not found]                 ` <20120814061408.GA2471-UojuW/CpjwpdUOLzJiIvSsFoITBeLw/klGfBN0aaEZ+lPcVs/6D9LQ@public.gmane.org>
@ 2012-08-14 14:04                   ` Dave Anderson
  0 siblings, 0 replies; 6+ messages in thread
From: Dave Anderson @ 2012-08-14 14:04 UTC (permalink / raw)
  To: Discussion list for crash utility usage, maintenance and development
  Cc: olaf-QOLJcTWqO2uzQB+pC5nmwQ,
	xen-devel-GuqFBffKawuULHF6PoxzQEEOCMrvLtNR, konrad wilk,
	andrew cooper3, ptesarik-AlSwsSmVLrQ, jbeulich-IBi9RG/b67k,
	kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r



----- Original Message -----
> On Mon, Aug 13, 2012 at 03:16:53PM -0400, Dave Anderson wrote:
> 
> [...]
> 
> > OK good.  It tests OK on a few older pvops kernels that I have on
> > hand.
> >
> > The only thing I've changed is to handle compiler warnings in x86_64.c and
> > x86.c by initializing p2m_top to NULL in x86_64_pvops_xendump_p2m_l3_create()
> > and x86_pvops_xendump_p2m_l3_create().  I also used GETBUF() in those two
> > functions to avoid having to add the malloc-failure line.
> 
> No problem. However, I am a bit surprised that you have seen some warnings.
> I have not seen any. Did you compiled crash with extra options or something
> like that? Or maybe there is a diffrence in our compilers (mine is gcc version
>  4.1.2 20061115 (prerelease) (Debian 4.1.1-21) - quite ancient).

Extra options (also with gcc 4.1.2) -- try building with "make warn".  It adds:

 WARNING_OPTIONS=-Wall -O2 -Wstrict-prototypes -Wmissing-prototypes -fstack-protector

or "make Warn", which adds -Werror to the above.

In those two functions there are "goto err" statements prior to allocating
p2m_top, and so the free(p2m_top) could receive a random stack value.  Of
course even if it did get by the free() call in that highly unlikely case,
the crash session is just about to fatally shut itself down.

Thanks,
  Dave

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-08-14 14:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-10 13:23 [PATCH v2 0/6] crash: Bundle of fixes for Xen Daniel Kiper
     [not found] ` <20120810132357.GA2576-UojuW/CpjwpdUOLzJiIvSsFoITBeLw/klGfBN0aaEZ+lPcVs/6D9LQ@public.gmane.org>
2012-08-10 19:11   ` Dave Anderson
     [not found]     ` <1568927206.9177777.1344625917898.JavaMail.root-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-08-13  7:37       ` Daniel Kiper
     [not found]         ` <20120813073754.GA2482-UojuW/CpjwpdUOLzJiIvSsFoITBeLw/klGfBN0aaEZ+lPcVs/6D9LQ@public.gmane.org>
2012-08-13 19:16           ` Dave Anderson
     [not found]             ` <1827880283.12350529.1344885413402.JavaMail.root-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-08-14  6:14               ` Daniel Kiper
     [not found]                 ` <20120814061408.GA2471-UojuW/CpjwpdUOLzJiIvSsFoITBeLw/klGfBN0aaEZ+lPcVs/6D9LQ@public.gmane.org>
2012-08-14 14:04                   ` Dave Anderson

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).