[Crash-utility] Fix pvops Xen detection for kernels >= v4.20

HAGIO KAZUHITO(萩尾 一仁) k-hagio-ab at nec.com
Mon Jul 5 00:37:54 UTC 2021


-----Original Message-----
> On Tue, Jun 29, 2021 at 10:13 AM HAGIO KAZUHITO(萩尾 一仁)
> <k-hagio-ab at nec.com> wrote:
> >
> > -----Original Message-----
> > > Kernel commit 5c83511bdb9832c86be20fb86b783356e2f58062 removed
> > > pv_init_ops, and later commit 054ac8ad5ebe4a69e1f0e842483821ddbe560121
> > > removed the Xen-specific paravirt patch function. As a result, pvops Xen
> > > dumps are no longer recognized as Xen dumps, and virtual-to-physical
> > > translation fails.
> > >
> > > Use the value of xen_start_info to determine whether the kernel is
> > > running in Xen PV mode. This pointer is set during the initialization of
> > > a PV domain. Kudos to Juergen Gross, who suggested this check.
> > >
> > > Signed-off-by: Petr Tesarik <ptesarik at suse.com>
> >
> > Thank you, the patch looks good to me.
> >
> > Acked-by: Kazuhito Hagio <k-hagio-ab at nec.com>
> >
> > Lianbo, the patch needs some space adjustment to apply, here is a
> > modified patch:
> > https://github.com/k-hagio/crash/commit/a7d5cd4169a994b1faa1f646c149d1f54e9dfefd.patch
> >
> Looks good.  Thanks.
> Acked-by: Lianbo Jiang <lijiang at redhat.com>

Applied.
https://github.com/crash-utility/crash/commit/4badc6229c69f5cd9da7eb7bdf400a53ec6db01a

Thanks,
Kazu





More information about the Crash-utility mailing list