Commit Graph

5 Commits

Author SHA1 Message Date
Juergen Gross 97269209aa xen: adjust to new scheduler structures
There has been a significant modification regarding scheduler data in
the Xen hypervisor (Xen commit d62fefa4d459). Adapt to new structures
and removed fields.

Note that this is only the bare minimum to not let crash error out when
opening a vmcore in Xen mode with a recent Xen version.

Signed-off-by: Juergen Gross <jgross@suse.com>
2023-03-17 13:12:48 +09:00
Dave Anderson 4e4e585973 Fix for newer Xen hypervisors, which fail during initialization with
the error message "crash: cannot resolve init_tss".  This is caused
by a change in the Xen hypervisor with commit 78884406256, from
4.12.0-rc5-763-g7888440625.  In that patch the tss_struct structure
was renamed to tss64 and the tss_page structure was introduced,
which contains a single tss64.  Now tss information is accessible
via the symbol "per_cpu__tss_page".
(dietmar.hahn@ts.fujitsu.com)
2019-12-12 12:08:11 -05:00
Dave Anderson eff086f2d4 Fix to account for Xen hypervisor's "domain" structure member name
change from "is_paused_by_controller" to "controller_pause_count".
Without the patch, in Xen 4.2.5 and later, the crash session fails
during initialization with the error message 'crash: invalid
structure member offset: domain_is_paused_by_controller".
(dietmar.hahn@ts.fujitsu.com)
2015-03-11 09:59:09 -04:00
Dave Anderson d49b5eff88 Add support for Xen PVH guest types introduced in Xen 4.4. Without
the patch, running against a Xen 4.4 hypervisor binary would fail
during session initialization with the error message "crash: invalid
structure member offset: domain_is_hvm".  In addition, the PVH guest
type is being registered internally as an HVM guest type, the debug
"help -X ofs" command's display of the domain_domain_flags offset
has been fixed to show it in decimal, and the setting of the internal
dc->domain_flags has been fixed to contain all flags set, not just
the first one found.
(dslutz@verizon.com)
2014-01-29 15:02:07 -05:00
Dave Anderson 03e3937ec7 Initial commit: crash-7.0.4 2014-01-28 16:46:11 -05:00