Skip to contentSkip to conversation

Enable use of crash on xen 4.4.0 vmcore

PATCH In review Don Slutz 4 participants 21 messages Jan 4, 2014 – Jan 8, 2014

Subsystems (2)
lore
Share & tools
lore

Don Slutz

author
#0 lore raw

cover Enable use of crash on xen 4.4.0 vmcore

With the addition on PVH code to xen 4.4, domain.is_hvm no longer exists. This prevents crash from using a xen 4.4.0 vmcore.

Patch 1 "fixes" this.

Patch 2 is a minor fix in that outputing the offset in hex for domain_domain_flags is different.

Patch 3 is a bug fix to get all "domain_flags" set, not just the 1st one found.

Patch 4 is a quick way to add domain.guest_type support.

Don Slutz (4):
Make domian.is_hvm optional
xen: Fix offset output to be decimal.
xen: set all domain_flags, not just the 1st.
Add basic domain.guest_type support.

 xen_hyper.c             | 32 ++++++++++++++++++++++++--------
 xen_hyper_defs.h        |  1 +
 xen_hyper_dump_tables.c |  4 +++-
 3 files changed, 28 insertions(+), 9 deletions(-)
Signature · 7 lines
1.8.4


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
author
#1 lore raw

PATCH 1/4 Make domian.is_hvm optional

---
 xen_hyper.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
xen_hyper.c +2 -1
index 7c7d3e1..3d56516 100644
@@ -1247,7 +1247,8 @@ xen_hyper_store_domain_context(struct xen_hyper_domain_context *dc,
 		dc->domain_flags = ULONG(dp + XEN_HYPER_OFFSET(domain_domain_flags));
 	else if (XEN_HYPER_VALID_MEMBER(domain_is_shut_down)) {
 		dc->domain_flags = 0;
-		if (*(dp + XEN_HYPER_OFFSET(domain_is_hvm))) {
+                if (XEN_HYPER_VALID_MEMBER(domain_is_hvm) &&
+                    *(dp + XEN_HYPER_OFFSET(domain_is_hvm))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_HVM;
 		} else if (*(dp + XEN_HYPER_OFFSET(domain_is_privileged))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_privileged;
Signature · 1 line
1.8.4
author
#2 lore raw

PATCH 1/4 Make domian.is_hvm optional

In reply to Don Slutz
---
 xen_hyper.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
xen_hyper.c +2 -1
index 7c7d3e1..3d56516 100644
@@ -1247,7 +1247,8 @@ xen_hyper_store_domain_context(struct xen_hyper_domain_context *dc,
 		dc->domain_flags = ULONG(dp + XEN_HYPER_OFFSET(domain_domain_flags));
 	else if (XEN_HYPER_VALID_MEMBER(domain_is_shut_down)) {
 		dc->domain_flags = 0;
-		if (*(dp + XEN_HYPER_OFFSET(domain_is_hvm))) {
+                if (XEN_HYPER_VALID_MEMBER(domain_is_hvm) &&
+                    *(dp + XEN_HYPER_OFFSET(domain_is_hvm))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_HVM;
 		} else if (*(dp + XEN_HYPER_OFFSET(domain_is_privileged))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_privileged;
Signature · 7 lines
1.8.4


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
#3 lore raw

Re: [PATCH 1/4] Make domian.is_hvm optional

On Sat, Jan 04, 2014 at 02:11:23PM -0500, Don Slutz wrote:

You title should say 'domain'.

Quoted 26 lines
---
 xen_hyper.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
xen_hyper.c +2 -1
index 7c7d3e1..3d56516 100644
@@ -1247,7 +1247,8 @@ xen_hyper_store_domain_context(struct xen_hyper_domain_context *dc,
 		dc->domain_flags = ULONG(dp + XEN_HYPER_OFFSET(domain_domain_flags));
 	else if (XEN_HYPER_VALID_MEMBER(domain_is_shut_down)) {
 		dc->domain_flags = 0;
-		if (*(dp + XEN_HYPER_OFFSET(domain_is_hvm))) {
+                if (XEN_HYPER_VALID_MEMBER(domain_is_hvm) &&
+                    *(dp + XEN_HYPER_OFFSET(domain_is_hvm))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_HVM;
 		} else if (*(dp + XEN_HYPER_OFFSET(domain_is_privileged))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_privileged;
Signature · 7 lines
1.8.4


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#4 lore raw

Re: [Xen-devel] [PATCH 1/4] Make domian.is_hvm optional

In reply to Don Slutz

On Sat, Jan 04, 2014 at 02:11:23PM -0500, Don Slutz wrote:

You title should say 'domain'.

Quoted 26 lines
---
 xen_hyper.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
xen_hyper.c +2 -1
index 7c7d3e1..3d56516 100644
@@ -1247,7 +1247,8 @@ xen_hyper_store_domain_context(struct xen_hyper_domain_context *dc,
 		dc->domain_flags = ULONG(dp + XEN_HYPER_OFFSET(domain_domain_flags));
 	else if (XEN_HYPER_VALID_MEMBER(domain_is_shut_down)) {
 		dc->domain_flags = 0;
-		if (*(dp + XEN_HYPER_OFFSET(domain_is_hvm))) {
+                if (XEN_HYPER_VALID_MEMBER(domain_is_hvm) &&
+                    *(dp + XEN_HYPER_OFFSET(domain_is_hvm))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_HVM;
 		} else if (*(dp + XEN_HYPER_OFFSET(domain_is_privileged))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_privileged;
Signature · 7 lines
1.8.4


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

author
#5 lore raw

Re: [PATCH 1/4] Make domian.is_hvm optional

Quoted 4 lines · Konrad Rzeszutek Wilk

On Sat, Jan 04, 2014 at 02:11:23PM -0500, Don Slutz wrote:

You title should say 'domain'.

Will fix.
-Don Slutz

Quoted 26 lines
Quoted 26 lines
---
  xen_hyper.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
xen_hyper.c +2 -1
index 7c7d3e1..3d56516 100644
@@ -1247,7 +1247,8 @@ xen_hyper_store_domain_context(struct xen_hyper_domain_context *dc,
  		dc->domain_flags = ULONG(dp + XEN_HYPER_OFFSET(domain_domain_flags));
  	else if (XEN_HYPER_VALID_MEMBER(domain_is_shut_down)) {
  		dc->domain_flags = 0;
-		if (*(dp + XEN_HYPER_OFFSET(domain_is_hvm))) {
+                if (XEN_HYPER_VALID_MEMBER(domain_is_hvm) &&
+                    *(dp + XEN_HYPER_OFFSET(domain_is_hvm))) {
  			dc->domain_flags |= XEN_HYPER_DOMS_HVM;
  		} else if (*(dp + XEN_HYPER_OFFSET(domain_is_privileged))) {
  			dc->domain_flags |= XEN_HYPER_DOMS_privileged;
Signature · 7 lines
1.8.4


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
author
#6 lore raw

Re: [Xen-devel] [PATCH 1/4] Make domian.is_hvm optional

In reply to Konrad Rzeszutek Wilk
Quoted 4 lines · Konrad Rzeszutek Wilk

On Sat, Jan 04, 2014 at 02:11:23PM -0500, Don Slutz wrote:

You title should say 'domain'.

Will fix.
-Don Slutz

Quoted 22 lines
Quoted 22 lines
---
  xen_hyper.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
xen_hyper.c +2 -1
index 7c7d3e1..3d56516 100644
@@ -1247,7 +1247,8 @@ xen_hyper_store_domain_context(struct xen_hyper_domain_context *dc,
  		dc->domain_flags = ULONG(dp + XEN_HYPER_OFFSET(domain_domain_flags));
  	else if (XEN_HYPER_VALID_MEMBER(domain_is_shut_down)) {
  		dc->domain_flags = 0;
-		if (*(dp + XEN_HYPER_OFFSET(domain_is_hvm))) {
+                if (XEN_HYPER_VALID_MEMBER(domain_is_hvm) &&
+                    *(dp + XEN_HYPER_OFFSET(domain_is_hvm))) {
  			dc->domain_flags |= XEN_HYPER_DOMS_HVM;
  		} else if (*(dp + XEN_HYPER_OFFSET(domain_is_privileged))) {
  			dc->domain_flags |= XEN_HYPER_DOMS_privileged;
Signature · 1 line
1.8.4
Quoted 4 lines
Quoted 4 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

author
#7 lore raw

PATCH 2/4 xen: Fix offset output to be decimal.

In reply to Don Slutz
---
 xen_hyper_dump_tables.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen_hyper_dump_tables.c +1 -1
index 0582159..38558d5 100644
@@ -767,7 +767,7 @@ xen_hyper_dump_xen_hyper_offset_table(char *spec, ulong makestruct)
 	XEN_HYPER_PRI(fp, len, "domain_next_in_list: ", buf, flag,
 		(buf, "%ld\n", xen_hyper_offset_table.domain_next_in_list));
 	XEN_HYPER_PRI(fp, len, "domain_domain_flags: ", buf, flag,
-		(buf, "%lx\n", xen_hyper_offset_table.domain_domain_flags));
+		(buf, "%ld\n", xen_hyper_offset_table.domain_domain_flags));
 	XEN_HYPER_PRI(fp, len, "domain_evtchn: ", buf, flag,
 		(buf, "%ld\n", xen_hyper_offset_table.domain_evtchn));
 	XEN_HYPER_PRI(fp, len, "domain_is_hvm: ", buf, flag,
Signature · 1 line
1.8.4
author
#8 lore raw

PATCH 2/4 xen: Fix offset output to be decimal.

In reply to Don Slutz
---
 xen_hyper_dump_tables.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen_hyper_dump_tables.c +1 -1
index 0582159..38558d5 100644
@@ -767,7 +767,7 @@ xen_hyper_dump_xen_hyper_offset_table(char *spec, ulong makestruct)
 	XEN_HYPER_PRI(fp, len, "domain_next_in_list: ", buf, flag,
 		(buf, "%ld\n", xen_hyper_offset_table.domain_next_in_list));
 	XEN_HYPER_PRI(fp, len, "domain_domain_flags: ", buf, flag,
-		(buf, "%lx\n", xen_hyper_offset_table.domain_domain_flags));
+		(buf, "%ld\n", xen_hyper_offset_table.domain_domain_flags));
 	XEN_HYPER_PRI(fp, len, "domain_evtchn: ", buf, flag,
 		(buf, "%ld\n", xen_hyper_offset_table.domain_evtchn));
 	XEN_HYPER_PRI(fp, len, "domain_is_hvm: ", buf, flag,
Signature · 7 lines
1.8.4


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
author
#9 lore raw

PATCH 3/4 xen: set all domain_flags, not just the 1st.

In reply to Don Slutz
---
 xen_hyper.c | 21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)
xen_hyper.c +14 -7
index 3d56516..00a0e2c 100644
@@ -1250,20 +1250,27 @@ xen_hyper_store_domain_context(struct xen_hyper_domain_context *dc,
                 if (XEN_HYPER_VALID_MEMBER(domain_is_hvm) &&
                     *(dp + XEN_HYPER_OFFSET(domain_is_hvm))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_HVM;
-		} else if (*(dp + XEN_HYPER_OFFSET(domain_is_privileged))) {
+		}
+		if (*(dp + XEN_HYPER_OFFSET(domain_is_privileged))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_privileged;
-		} else if (*(dp + XEN_HYPER_OFFSET(domain_debugger_attached))) {
+		}
+		if (*(dp + XEN_HYPER_OFFSET(domain_debugger_attached))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_debugging;
-		} else if (XEN_HYPER_VALID_MEMBER(domain_is_polling) &&
+		}
+		if (XEN_HYPER_VALID_MEMBER(domain_is_polling) &&
 				*(dp + XEN_HYPER_OFFSET(domain_is_polling))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_polling;
-		} else if (*(dp + XEN_HYPER_OFFSET(domain_is_paused_by_controller))) {
+		}
+		if (*(dp + XEN_HYPER_OFFSET(domain_is_paused_by_controller))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_ctrl_pause;
-		} else if (*(dp + XEN_HYPER_OFFSET(domain_is_dying))) {
+		}
+		if (*(dp + XEN_HYPER_OFFSET(domain_is_dying))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_dying;
-		} else if (*(dp + XEN_HYPER_OFFSET(domain_is_shutting_down))) {
+		}
+		if (*(dp + XEN_HYPER_OFFSET(domain_is_shutting_down))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_shuttingdown;
-		} else if (*(dp + XEN_HYPER_OFFSET(domain_is_shut_down))) {
+		}
+		if (*(dp + XEN_HYPER_OFFSET(domain_is_shut_down))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_shutdown;
 		}
 	} else {
Signature · 1 line
1.8.4
author
#10 lore raw

PATCH 3/4 xen: set all domain_flags, not just the 1st.

In reply to Don Slutz
---
 xen_hyper.c | 21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)
xen_hyper.c +14 -7
index 3d56516..00a0e2c 100644
@@ -1250,20 +1250,27 @@ xen_hyper_store_domain_context(struct xen_hyper_domain_context *dc,
                 if (XEN_HYPER_VALID_MEMBER(domain_is_hvm) &&
                     *(dp + XEN_HYPER_OFFSET(domain_is_hvm))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_HVM;
-		} else if (*(dp + XEN_HYPER_OFFSET(domain_is_privileged))) {
+		}
+		if (*(dp + XEN_HYPER_OFFSET(domain_is_privileged))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_privileged;
-		} else if (*(dp + XEN_HYPER_OFFSET(domain_debugger_attached))) {
+		}
+		if (*(dp + XEN_HYPER_OFFSET(domain_debugger_attached))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_debugging;
-		} else if (XEN_HYPER_VALID_MEMBER(domain_is_polling) &&
+		}
+		if (XEN_HYPER_VALID_MEMBER(domain_is_polling) &&
 				*(dp + XEN_HYPER_OFFSET(domain_is_polling))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_polling;
-		} else if (*(dp + XEN_HYPER_OFFSET(domain_is_paused_by_controller))) {
+		}
+		if (*(dp + XEN_HYPER_OFFSET(domain_is_paused_by_controller))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_ctrl_pause;
-		} else if (*(dp + XEN_HYPER_OFFSET(domain_is_dying))) {
+		}
+		if (*(dp + XEN_HYPER_OFFSET(domain_is_dying))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_dying;
-		} else if (*(dp + XEN_HYPER_OFFSET(domain_is_shutting_down))) {
+		}
+		if (*(dp + XEN_HYPER_OFFSET(domain_is_shutting_down))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_shuttingdown;
-		} else if (*(dp + XEN_HYPER_OFFSET(domain_is_shut_down))) {
+		}
+		if (*(dp + XEN_HYPER_OFFSET(domain_is_shut_down))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_shutdown;
 		}
 	} else {
Signature · 7 lines
1.8.4


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
author
#11 lore raw

PATCH 4/4 Add basic domain.guest_type support.

In reply to Don Slutz
---
 xen_hyper.c             | 8 ++++++++
 xen_hyper_defs.h        | 1 +
 xen_hyper_dump_tables.c | 2 ++
 3 files changed, 11 insertions(+)
xen_hyper.c +8 -0
index 00a0e2c..c18e815 100644
@@ -207,6 +207,7 @@ xen_hyper_domain_init(void)
 	XEN_HYPER_MEMBER_OFFSET_INIT(domain_domain_flags, "domain", "domain_flags");
 	XEN_HYPER_MEMBER_OFFSET_INIT(domain_evtchn, "domain", "evtchn");
 	XEN_HYPER_MEMBER_OFFSET_INIT(domain_is_hvm, "domain", "is_hvm");
+	XEN_HYPER_MEMBER_OFFSET_INIT(domain_guest_type, "domain", "guest_type");
 	XEN_HYPER_MEMBER_OFFSET_INIT(domain_is_privileged, "domain", "is_privileged");
 	XEN_HYPER_MEMBER_OFFSET_INIT(domain_debugger_attached, "domain", "debugger_attached");
 
@@ -1251,6 +1252,13 @@ xen_hyper_store_domain_context(struct xen_hyper_domain_context *dc,
                     *(dp + XEN_HYPER_OFFSET(domain_is_hvm))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_HVM;
 		}
+                if (XEN_HYPER_VALID_MEMBER(domain_guest_type) &&
+                    *(dp + XEN_HYPER_OFFSET(domain_guest_type))) {
+			/* For now PVH and HVM are the same for crash.
+			 * and 0 is PV.
+			 */
+			dc->domain_flags |= XEN_HYPER_DOMS_HVM;
+		}
 		if (*(dp + XEN_HYPER_OFFSET(domain_is_privileged))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_privileged;
 		}
xen_hyper_defs.h +1 -0
index 1f5b0ba..abc9a07 100644
@@ -673,6 +673,7 @@ struct xen_hyper_offset_table {
 	long domain_domain_flags;
 	long domain_evtchn;
 	long domain_is_hvm;
+	long domain_guest_type;
 	long domain_is_privileged;
 	long domain_debugger_attached;
 	long domain_is_polling;
xen_hyper_dump_tables.c +2 -0
index 38558d5..337eb25 100644
@@ -772,6 +772,8 @@ xen_hyper_dump_xen_hyper_offset_table(char *spec, ulong makestruct)
 		(buf, "%ld\n", xen_hyper_offset_table.domain_evtchn));
 	XEN_HYPER_PRI(fp, len, "domain_is_hvm: ", buf, flag,
 		(buf, "%ld\n", xen_hyper_offset_table.domain_is_hvm));
+	XEN_HYPER_PRI(fp, len, "domain_guest_type: ", buf, flag,
+		(buf, "%ld\n", xen_hyper_offset_table.domain_guest_type));
 	XEN_HYPER_PRI(fp, len, "domain_is_privileged: ", buf, flag,
 		(buf, "%ld\n", xen_hyper_offset_table.domain_is_privileged));
 	XEN_HYPER_PRI(fp, len, "domain_debugger_attached: ", buf, flag,
Signature · 1 line
1.8.4
author
#12 lore raw

PATCH 4/4 Add basic domain.guest_type support.

In reply to Don Slutz
---
 xen_hyper.c             | 8 ++++++++
 xen_hyper_defs.h        | 1 +
 xen_hyper_dump_tables.c | 2 ++
 3 files changed, 11 insertions(+)
xen_hyper.c +8 -0
index 00a0e2c..c18e815 100644
@@ -207,6 +207,7 @@ xen_hyper_domain_init(void)
 	XEN_HYPER_MEMBER_OFFSET_INIT(domain_domain_flags, "domain", "domain_flags");
 	XEN_HYPER_MEMBER_OFFSET_INIT(domain_evtchn, "domain", "evtchn");
 	XEN_HYPER_MEMBER_OFFSET_INIT(domain_is_hvm, "domain", "is_hvm");
+	XEN_HYPER_MEMBER_OFFSET_INIT(domain_guest_type, "domain", "guest_type");
 	XEN_HYPER_MEMBER_OFFSET_INIT(domain_is_privileged, "domain", "is_privileged");
 	XEN_HYPER_MEMBER_OFFSET_INIT(domain_debugger_attached, "domain", "debugger_attached");
 
@@ -1251,6 +1252,13 @@ xen_hyper_store_domain_context(struct xen_hyper_domain_context *dc,
                     *(dp + XEN_HYPER_OFFSET(domain_is_hvm))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_HVM;
 		}
+                if (XEN_HYPER_VALID_MEMBER(domain_guest_type) &&
+                    *(dp + XEN_HYPER_OFFSET(domain_guest_type))) {
+			/* For now PVH and HVM are the same for crash.
+			 * and 0 is PV.
+			 */
+			dc->domain_flags |= XEN_HYPER_DOMS_HVM;
+		}
 		if (*(dp + XEN_HYPER_OFFSET(domain_is_privileged))) {
 			dc->domain_flags |= XEN_HYPER_DOMS_privileged;
 		}
xen_hyper_defs.h +1 -0
index 1f5b0ba..abc9a07 100644
@@ -673,6 +673,7 @@ struct xen_hyper_offset_table {
 	long domain_domain_flags;
 	long domain_evtchn;
 	long domain_is_hvm;
+	long domain_guest_type;
 	long domain_is_privileged;
 	long domain_debugger_attached;
 	long domain_is_polling;
xen_hyper_dump_tables.c +2 -0
index 38558d5..337eb25 100644
@@ -772,6 +772,8 @@ xen_hyper_dump_xen_hyper_offset_table(char *spec, ulong makestruct)
 		(buf, "%ld\n", xen_hyper_offset_table.domain_evtchn));
 	XEN_HYPER_PRI(fp, len, "domain_is_hvm: ", buf, flag,
 		(buf, "%ld\n", xen_hyper_offset_table.domain_is_hvm));
+	XEN_HYPER_PRI(fp, len, "domain_guest_type: ", buf, flag,
+		(buf, "%ld\n", xen_hyper_offset_table.domain_guest_type));
 	XEN_HYPER_PRI(fp, len, "domain_is_privileged: ", buf, flag,
 		(buf, "%ld\n", xen_hyper_offset_table.domain_is_privileged));
 	XEN_HYPER_PRI(fp, len, "domain_debugger_attached: ", buf, flag,
Signature · 7 lines
1.8.4


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
#13 lore raw
In reply to Don Slutz

----- Original Message -----

Quoted 5 lines

With the addition on PVH code to xen 4.4, domain.is_hvm no longer exists. This prevents crash from using a xen 4.4.0 vmcore.

Patch 1 "fixes" this.

Quoted 7 lines

Patch 2 is a minor fix in that outputing the offset in hex for domain_domain_flags is different.

Patch 3 is a bug fix to get all "domain_flags" set, not just the 1st one found.

Patch 4 is a quick way to add domain.guest_type support.

Hi Don,

The patch looks good to me. But for the crash.changelog, can you show what happens when you attempt to look at one of these PVH dumps without your patches?

Thanks,
Dave

Quoted 20 lines

Don Slutz (4):
Make domian.is_hvm optional
xen: Fix offset output to be decimal.
xen: set all domain_flags, not just the 1st.
Add basic domain.guest_type support.

 xen_hyper.c             | 32 ++++++++++++++++++++++++--------
 xen_hyper_defs.h        |  1 +
 xen_hyper_dump_tables.c |  4 +++-
 3 files changed, 28 insertions(+), 9 deletions(-)

--
1.8.4

--
Crash-utility mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/crash-utility

#14 lore raw
In reply to Don Slutz

----- Original Message -----

Quoted 5 lines

With the addition on PVH code to xen 4.4, domain.is_hvm no longer exists. This prevents crash from using a xen 4.4.0 vmcore.

Patch 1 "fixes" this.

Quoted 7 lines

Patch 2 is a minor fix in that outputing the offset in hex for domain_domain_flags is different.

Patch 3 is a bug fix to get all "domain_flags" set, not just the 1st one found.

Patch 4 is a quick way to add domain.guest_type support.

Hi Don,

The patch looks good to me. But for the crash.changelog, can you show what happens when you attempt to look at one of these PVH dumps without your patches?

Thanks,
Dave

Quoted 12 lines

Don Slutz (4):
Make domian.is_hvm optional
xen: Fix offset output to be decimal.
xen: set all domain_flags, not just the 1st.
Add basic domain.guest_type support.

 xen_hyper.c             | 32 ++++++++++++++++++++++++--------
 xen_hyper_defs.h        |  1 +
 xen_hyper_dump_tables.c |  4 +++-
 3 files changed, 28 insertions(+), 9 deletions(-)
Quoted 8 lines

--
1.8.4

--
Crash-utility mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/crash-utility

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

author
#15 lore raw
Quoted 14 lines · Dave Anderson

----- Original Message -----

Quoted 5 lines

With the addition on PVH code to xen 4.4, domain.is_hvm no longer exists. This prevents crash from using a xen 4.4.0 vmcore.

Patch 1 "fixes" this.

Quoted 7 lines

Patch 2 is a minor fix in that outputing the offset in hex for domain_domain_flags is different.

Patch 3 is a bug fix to get all "domain_flags" set, not just the 1st one found.

Patch 4 is a quick way to add domain.guest_type support.

Quoted 8 lines

Hi Don,

The patch looks good to me. But for the crash.changelog, can you show what happens when you attempt to look at one of these PVH dumps without your patches?

Thanks,
Dave

Before patch 1:

dcs-xen-54:/big/crash/vmcore-hang-0>~/crash-7.0/crash vmcore xen-syms-4.4-unstable

crash 7.0.4
Copyright (C) 2002-2013 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. This program is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Enter "help copying" to see the conditions. This program has absolutely no warranty. Enter "help warranty" for details.

GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...

crash: invalid structure member offset: domain_is_hvm
FILE: xen_hyper.c LINE: 1250 FUNCTION: xen_hyper_store_domain_context()

[/home/don/crash-7.0/crash] error trace: 54c307 => 54ba5f => 51823b => 460895

460895: OFFSET_verify.part.25+67
51823b: OFFSET_verify+43
54ba5f: xen_hyper_store_domain_context+639 54c307: xen_hyper_refresh_domain_context_space+151

After patch 1:

dcs-xen-54:/big/crash/vmcore-hang-0>~/crash-7.0/crash vmcore xen-syms-4.4-unstable

crash 7.0.4
Copyright (C) 2002-2013 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. This program is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Enter "help copying" to see the conditions. This program has absolutely no warranty. Enter "help warranty" for details.

GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...

KERNEL: xen-syms-4.4-unstable
DUMPFILE: vmcore

     CPUS: 8
  DOMAINS: 5
   UPTIME: --:--:--
  MACHINE: Intel(R) Xeon(R) CPU E31265L @ 2.40GHz  (2400 Mhz)
   MEMORY: 32 GB
  PCPU-ID: 0
     PCPU: ffff82d0802bff18
  VCPU-ID: 0
     VCPU: ffff8300bf2fe000  (VCPU_RUNNING)

DOMAIN-ID: 32767
DOMAIN: ffff83083a163000 (DOMAIN_RUNNING)
STATE: CRASH

crash> doms
DID DOMAIN ST T MAXPAGE TOTPAGE VCPU SHARED_I P2M_MFN

  32753 ffff83083a1a7000 RU O     0        0      0 0              ----
  32754 ffff83083a164000 RU X     0        0      0 0              ----
>*32767 ffff83083a163000 RU I     0        0      8 0              ----
>     0 ffff830823fb7000 RU 0 ffffffff   80000    8 ffff8300bf504000      81df80
      2 ffff83083f12e000 RU U  100100    fd043    2 ffff8300bf4b6000         0
crash> help -X ofs
                       ELF_Prstatus_pr_info: 0
                     ELF_Prstatus_pr_cursig: 12
                    ELF_Prstatus_pr_sigpend: 16
                    ELF_Prstatus_pr_sighold: 24
                        ELF_Prstatus_pr_pid: 32
                       ELF_Prstatus_pr_ppid: 36
                       ELF_Prstatus_pr_pgrp: 40
                        ELF_Prstatus_pr_sid: 44
                      ELF_Prstatus_pr_stime: 64
                     ELF_Prstatus_pr_cutime: 80
                     ELF_Prstatus_pr_cstime: 96
                        ELF_Prstatus_pr_reg: 112
                    ELF_Prstatus_pr_fpvalid: 328
                         ELF_Timeval_tv_sec: 0
                        ELF_Timeval_tv_usec: 8
                   arch_shared_info_max_pfn: 0
arch_shared_info_pfn_to_mfn_frame_list_list: 8
                arch_shared_info_nmi_reason: 16
               cpu_info_guest_cpu_user_regs: 0
                      cpu_info_processor_id: 200
                      cpu_info_current_vcpu: 208
                   cpu_time_local_tsc_stamp: 0
                 cpu_time_stime_local_stamp: 0
                cpu_time_stime_master_stamp: 0
                         cpu_time_tsc_scale: 0
                 cpu_time_calibration_timer: 0
                          crash_note_t_core: -1
                           crash_note_t_xen: -1
                      crash_note_t_xen_regs: -1
                      crash_note_t_xen_info: -1
                     crash_note_core_t_note: -1
                     crash_note_core_t_desc: -1
                      crash_note_xen_t_note: -1
                      crash_note_xen_t_desc: -1
                 crash_note_xen_core_t_note: -1
                 crash_note_xen_core_t_desc: -1
                 crash_note_xen_info_t_note: -1
                 crash_note_xen_info_t_desc: -1
                           domain_page_list: 0
                        domain_xenpage_list: 0
                           domain_domain_id: 0
                           domain_tot_pages: 56
                           domain_max_pages: 64
                       domain_xenheap_pages: 76
                         domain_shared_info: 8
                          domain_sched_priv: 88
                        domain_next_in_list: 104
                        domain_domain_flags: ffffffffffffffff
                              domain_evtchn: 144
                              domain_is_hvm: -1
                       domain_is_privileged: 278
                   domain_debugger_attached: 288
                            domain_is_dying: 292
             domain_is_paused_by_controller: 296
                    domain_is_shutting_down: 316
                        domain_is_shut_down: 317
                                domain_vcpu: 352
                                domain_arch: 384
                schedule_data_schedule_lock: 0
                         schedule_data_curr: 16
                         schedule_data_idle: 0
                   schedule_data_sched_priv: 24
                      schedule_data_s_timer: 32
                         schedule_data_tick: -1
                             scheduler_name: 0
                         scheduler_opt_name: 8
                         scheduler_sched_id: 16
                             scheduler_init: 40
                             scheduler_tick: -1
                        scheduler_init_vcpu: -1
                   scheduler_destroy_domain: 112
                            scheduler_sleep: 136
                             scheduler_wake: 144
                     scheduler_set_affinity: -1
                      scheduler_do_schedule: 168
                           scheduler_adjust: 192
                    scheduler_dump_settings: 216
                   scheduler_dump_cpu_state: 224
                      shared_info_vcpu_info: 0
                 shared_info_evtchn_pending: 2048
                    shared_info_evtchn_mask: 2560
                           shared_info_arch: 3088
                              timer_expires: 0
                                  timer_cpu: 40
                             timer_function: 24
                                 timer_data: 32
                          timer_heap_offset: -1
                               timer_killed: -1
                            tss_struct_rsp0: 4
                            tss_struct_esp0: 0
                               vcpu_vcpu_id: 0
                             vcpu_processor: 4
                             vcpu_vcpu_info: 8
                                vcpu_domain: 16
                          vcpu_next_in_list: 24
                                 vcpu_timer: -1
                            vcpu_sleep_tick: -1
                            vcpu_poll_timer: 144
                            vcpu_sched_priv: 192
                              vcpu_runstate: 200
                        vcpu_runstate_guest: 248
                            vcpu_vcpu_flags: -1
                           vcpu_pause_count: 296
                        vcpu_virq_to_evtchn: 300
                          vcpu_cpu_affinity: 352
                              vcpu_nmi_addr: -1
                    vcpu_vcpu_dirty_cpumask: 376
                                  vcpu_arch: 640
                   vcpu_runstate_info_state: 0
        vcpu_runstate_info_state_entry_time: 8
                    vcpu_runstate_info_time: 16

After patch 2:

dcs-xen-54:/big/crash/vmcore-hang-0>~/crash-7.0/crash vmcore xen-syms-4.4-unstable

crash 7.0.4
Copyright (C) 2002-2013 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. This program is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Enter "help copying" to see the conditions. This program has absolutely no warranty. Enter "help warranty" for details.

GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...

KERNEL: xen-syms-4.4-unstable
DUMPFILE: vmcore

     CPUS: 8
  DOMAINS: 5
   UPTIME: --:--:--
  MACHINE: Intel(R) Xeon(R) CPU E31265L @ 2.40GHz  (2400 Mhz)
   MEMORY: 32 GB
  PCPU-ID: 0
     PCPU: ffff82d0802bff18
  VCPU-ID: 0
     VCPU: ffff8300bf2fe000  (VCPU_RUNNING)

DOMAIN-ID: 32767
DOMAIN: ffff83083a163000 (DOMAIN_RUNNING)
STATE: CRASH

crash> doms
DID DOMAIN ST T MAXPAGE TOTPAGE VCPU SHARED_I P2M_MFN

  32753 ffff83083a1a7000 RU O     0        0      0 0              ----
  32754 ffff83083a164000 RU X     0        0      0 0              ----
>*32767 ffff83083a163000 RU I     0        0      8 0              ----
>     0 ffff830823fb7000 RU 0 ffffffff   80000    8 ffff8300bf504000      81df80
      2 ffff83083f12e000 RU U  100100    fd043    2 ffff8300bf4b6000         0
crash> help -X ofs
                       ELF_Prstatus_pr_info: 0
                     ELF_Prstatus_pr_cursig: 12
                    ELF_Prstatus_pr_sigpend: 16
                    ELF_Prstatus_pr_sighold: 24
                        ELF_Prstatus_pr_pid: 32
                       ELF_Prstatus_pr_ppid: 36
                       ELF_Prstatus_pr_pgrp: 40
                        ELF_Prstatus_pr_sid: 44
                      ELF_Prstatus_pr_stime: 64
                     ELF_Prstatus_pr_cutime: 80
                     ELF_Prstatus_pr_cstime: 96
                        ELF_Prstatus_pr_reg: 112
                    ELF_Prstatus_pr_fpvalid: 328
                         ELF_Timeval_tv_sec: 0
                        ELF_Timeval_tv_usec: 8
                   arch_shared_info_max_pfn: 0
arch_shared_info_pfn_to_mfn_frame_list_list: 8
                arch_shared_info_nmi_reason: 16
               cpu_info_guest_cpu_user_regs: 0
                      cpu_info_processor_id: 200
                      cpu_info_current_vcpu: 208
                   cpu_time_local_tsc_stamp: 0
                 cpu_time_stime_local_stamp: 0
                cpu_time_stime_master_stamp: 0
                         cpu_time_tsc_scale: 0
                 cpu_time_calibration_timer: 0
                          crash_note_t_core: -1
                           crash_note_t_xen: -1
                      crash_note_t_xen_regs: -1
                      crash_note_t_xen_info: -1
                     crash_note_core_t_note: -1
                     crash_note_core_t_desc: -1
                      crash_note_xen_t_note: -1
                      crash_note_xen_t_desc: -1
                 crash_note_xen_core_t_note: -1
                 crash_note_xen_core_t_desc: -1
                 crash_note_xen_info_t_note: -1
                 crash_note_xen_info_t_desc: -1
                           domain_page_list: 0
                        domain_xenpage_list: 0
                           domain_domain_id: 0
                           domain_tot_pages: 56
                           domain_max_pages: 64
                       domain_xenheap_pages: 76
                         domain_shared_info: 8
                          domain_sched_priv: 88
                        domain_next_in_list: 104
                        domain_domain_flags: -1
                              domain_evtchn: 144
                              domain_is_hvm: -1
                       domain_is_privileged: 278
                   domain_debugger_attached: 288
                            domain_is_dying: 292
             domain_is_paused_by_controller: 296
                    domain_is_shutting_down: 316
                        domain_is_shut_down: 317
                                domain_vcpu: 352
                                domain_arch: 384
                schedule_data_schedule_lock: 0
                         schedule_data_curr: 16
                         schedule_data_idle: 0
                   schedule_data_sched_priv: 24
                      schedule_data_s_timer: 32
                         schedule_data_tick: -1
                             scheduler_name: 0
                         scheduler_opt_name: 8
                         scheduler_sched_id: 16
                             scheduler_init: 40
                             scheduler_tick: -1
                        scheduler_init_vcpu: -1
                   scheduler_destroy_domain: 112
                            scheduler_sleep: 136
                             scheduler_wake: 144
                     scheduler_set_affinity: -1
                      scheduler_do_schedule: 168
                           scheduler_adjust: 192
                    scheduler_dump_settings: 216
                   scheduler_dump_cpu_state: 224
                      shared_info_vcpu_info: 0
                 shared_info_evtchn_pending: 2048
                    shared_info_evtchn_mask: 2560
                           shared_info_arch: 3088
                              timer_expires: 0
                                  timer_cpu: 40
                             timer_function: 24
                                 timer_data: 32
                          timer_heap_offset: -1
                               timer_killed: -1
                            tss_struct_rsp0: 4
                            tss_struct_esp0: 0
                               vcpu_vcpu_id: 0
                             vcpu_processor: 4
                             vcpu_vcpu_info: 8
                                vcpu_domain: 16
                          vcpu_next_in_list: 24
                                 vcpu_timer: -1
                            vcpu_sleep_tick: -1
                            vcpu_poll_timer: 144
                            vcpu_sched_priv: 192
                              vcpu_runstate: 200
                        vcpu_runstate_guest: 248
                            vcpu_vcpu_flags: -1
                           vcpu_pause_count: 296
                        vcpu_virq_to_evtchn: 300
                          vcpu_cpu_affinity: 352
                              vcpu_nmi_addr: -1
                    vcpu_vcpu_dirty_cpumask: 376
                                  vcpu_arch: 640
                   vcpu_runstate_info_state: 0
        vcpu_runstate_info_state_entry_time: 8
                    vcpu_runstate_info_time: 16

After patch 3:

dcs-xen-54:/big/crash/vmcore-hang-0>~/crash-7.0/crash vmcore xen-syms-4.4-unstable

crash 7.0.4
Copyright (C) 2002-2013 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. This program is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Enter "help copying" to see the conditions. This program has absolutely no warranty. Enter "help warranty" for details.

GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...

KERNEL: xen-syms-4.4-unstable
DUMPFILE: vmcore

     CPUS: 8
  DOMAINS: 5
   UPTIME: --:--:--
  MACHINE: Intel(R) Xeon(R) CPU E31265L @ 2.40GHz  (2400 Mhz)
   MEMORY: 32 GB
  PCPU-ID: 0
     PCPU: ffff82d0802bff18
  VCPU-ID: 0
     VCPU: ffff8300bf2fe000  (VCPU_RUNNING)

DOMAIN-ID: 32767
DOMAIN: ffff83083a163000 (DOMAIN_RUNNING)
STATE: CRASH

crash> doms
DID DOMAIN ST T MAXPAGE TOTPAGE VCPU SHARED_I P2M_MFN

  32753 ffff83083a1a7000 RU O     0        0      0 0              ----
  32754 ffff83083a164000 RU X     0        0      0 0              ----
>*32767 ffff83083a163000 RU I     0        0      8 0              ----
>     0 ffff830823fb7000 RU 0 ffffffff   80000    8 ffff8300bf504000      81df80
      2 ffff83083f12e000 CP U  100100    fd043    2 ffff8300bf4b6000         0

After patch 4:

dcs-xen-54:/big/crash/vmcore-hang-0>~/crash-7.0/crash vmcore xen-syms-4.4-unstable

crash 7.0.4
Copyright (C) 2002-2013 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. This program is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Enter "help copying" to see the conditions. This program has absolutely no warranty. Enter "help warranty" for details.

GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...

KERNEL: xen-syms-4.4-unstable
DUMPFILE: vmcore

     CPUS: 8
  DOMAINS: 5
   UPTIME: --:--:--
  MACHINE: Intel(R) Xeon(R) CPU E31265L @ 2.40GHz  (2400 Mhz)
   MEMORY: 32 GB
  PCPU-ID: 0
     PCPU: ffff82d0802bff18
  VCPU-ID: 0
     VCPU: ffff8300bf2fe000  (VCPU_RUNNING)

DOMAIN-ID: 32767
DOMAIN: ffff83083a163000 (DOMAIN_RUNNING)
STATE: CRASH

crash> doms
DID DOMAIN ST T MAXPAGE TOTPAGE VCPU SHARED_I P2M_MFN

  32753 ffff83083a1a7000 RU O     0        0      0 0              ----
  32754 ffff83083a164000 RU X     0        0      0 0              ----
>*32767 ffff83083a163000 RU I     0        0      8 0              ----
>     0 ffff830823fb7000 RU 0 ffffffff   80000    8 ffff8300bf504000      81df80
      2 ffff83083f12e000 CP U  100100    fd043    2 ffff8300bf4b6000         0
crash> help -X ofs
                       ELF_Prstatus_pr_info: 0
                     ELF_Prstatus_pr_cursig: 12
                    ELF_Prstatus_pr_sigpend: 16
                    ELF_Prstatus_pr_sighold: 24
                        ELF_Prstatus_pr_pid: 32
                       ELF_Prstatus_pr_ppid: 36
                       ELF_Prstatus_pr_pgrp: 40
                        ELF_Prstatus_pr_sid: 44
                      ELF_Prstatus_pr_stime: 64
                     ELF_Prstatus_pr_cutime: 80
                     ELF_Prstatus_pr_cstime: 96
                        ELF_Prstatus_pr_reg: 112
                    ELF_Prstatus_pr_fpvalid: 328
                         ELF_Timeval_tv_sec: 0
                        ELF_Timeval_tv_usec: 8
                   arch_shared_info_max_pfn: 0
arch_shared_info_pfn_to_mfn_frame_list_list: 8
                arch_shared_info_nmi_reason: 16
               cpu_info_guest_cpu_user_regs: 0
                      cpu_info_processor_id: 200
                      cpu_info_current_vcpu: 208
                   cpu_time_local_tsc_stamp: 0
                 cpu_time_stime_local_stamp: 0
                cpu_time_stime_master_stamp: 0
                         cpu_time_tsc_scale: 0
                 cpu_time_calibration_timer: 0
                          crash_note_t_core: -1
                           crash_note_t_xen: -1
                      crash_note_t_xen_regs: -1
                      crash_note_t_xen_info: -1
                     crash_note_core_t_note: -1
                     crash_note_core_t_desc: -1
                      crash_note_xen_t_note: -1
                      crash_note_xen_t_desc: -1
                 crash_note_xen_core_t_note: -1
                 crash_note_xen_core_t_desc: -1
                 crash_note_xen_info_t_note: -1
                 crash_note_xen_info_t_desc: -1
                           domain_page_list: 0
                        domain_xenpage_list: 0
                           domain_domain_id: 0
                           domain_tot_pages: 56
                           domain_max_pages: 64
                       domain_xenheap_pages: 76
                         domain_shared_info: 8
                          domain_sched_priv: 88
                        domain_next_in_list: 104
                        domain_domain_flags: -1
                              domain_evtchn: 144
                              domain_is_hvm: -1
                          domain_guest_type: 272
                       domain_is_privileged: 278
                   domain_debugger_attached: 288
                            domain_is_dying: 292
             domain_is_paused_by_controller: 296
                    domain_is_shutting_down: 316
                        domain_is_shut_down: 317
                                domain_vcpu: 352
                                domain_arch: 384
                schedule_data_schedule_lock: 0
                         schedule_data_curr: 16
                         schedule_data_idle: 0
                   schedule_data_sched_priv: 24
                      schedule_data_s_timer: 32
                         schedule_data_tick: -1
                             scheduler_name: 0
                         scheduler_opt_name: 8
                         scheduler_sched_id: 16
                             scheduler_init: 40
                             scheduler_tick: -1
                        scheduler_init_vcpu: -1
                   scheduler_destroy_domain: 112
                            scheduler_sleep: 136
                             scheduler_wake: 144
                     scheduler_set_affinity: -1
                      scheduler_do_schedule: 168
                           scheduler_adjust: 192
                    scheduler_dump_settings: 216
                   scheduler_dump_cpu_state: 224
                      shared_info_vcpu_info: 0
                 shared_info_evtchn_pending: 2048
                    shared_info_evtchn_mask: 2560
                           shared_info_arch: 3088
                              timer_expires: 0
                                  timer_cpu: 40
                             timer_function: 24
                                 timer_data: 32
                          timer_heap_offset: -1
                               timer_killed: -1
                            tss_struct_rsp0: 4
                            tss_struct_esp0: 0
                               vcpu_vcpu_id: 0
                             vcpu_processor: 4
                             vcpu_vcpu_info: 8
                                vcpu_domain: 16
                          vcpu_next_in_list: 24
                                 vcpu_timer: -1
                            vcpu_sleep_tick: -1
                            vcpu_poll_timer: 144
                            vcpu_sched_priv: 192
                              vcpu_runstate: 200
                        vcpu_runstate_guest: 248
                            vcpu_vcpu_flags: -1
                           vcpu_pause_count: 296
                        vcpu_virq_to_evtchn: 300
                          vcpu_cpu_affinity: 352
                              vcpu_nmi_addr: -1
                    vcpu_vcpu_dirty_cpumask: 376
                                  vcpu_arch: 640
                   vcpu_runstate_info_state: 0
        vcpu_runstate_info_state_entry_time: 8
                    vcpu_runstate_info_time: 16

-Don Slutz

Quoted 23 lines
Quoted 11 lines

Don Slutz (4):
Make domian.is_hvm optional
xen: Fix offset output to be decimal.
xen: set all domain_flags, not just the 1st.
Add basic domain.guest_type support.

  xen_hyper.c             | 32 ++++++++++++++++++++++++--------
  xen_hyper_defs.h        |  1 +
  xen_hyper_dump_tables.c |  4 +++-
  3 files changed, 28 insertions(+), 9 deletions(-)
Quoted 8 lines

--
1.8.4

--
Crash-utility mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/crash-utility

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

author
#16 lore raw
In reply to Dave Anderson
Quoted 14 lines · Dave Anderson

----- Original Message -----

Quoted 5 lines

With the addition on PVH code to xen 4.4, domain.is_hvm no longer exists. This prevents crash from using a xen 4.4.0 vmcore.

Patch 1 "fixes" this.

Quoted 7 lines

Patch 2 is a minor fix in that outputing the offset in hex for domain_domain_flags is different.

Patch 3 is a bug fix to get all "domain_flags" set, not just the 1st one found.

Patch 4 is a quick way to add domain.guest_type support.

Quoted 8 lines

Hi Don,

The patch looks good to me. But for the crash.changelog, can you show what happens when you attempt to look at one of these PVH dumps without your patches?

Thanks,
Dave

Before patch 1:

dcs-xen-54:/big/crash/vmcore-hang-0>~/crash-7.0/crash vmcore xen-syms-4.4-unstable

crash 7.0.4
Copyright (C) 2002-2013 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. This program is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Enter "help copying" to see the conditions. This program has absolutely no warranty. Enter "help warranty" for details.

GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...

crash: invalid structure member offset: domain_is_hvm
FILE: xen_hyper.c LINE: 1250 FUNCTION: xen_hyper_store_domain_context()

[/home/don/crash-7.0/crash] error trace: 54c307 => 54ba5f => 51823b => 460895

460895: OFFSET_verify.part.25+67
51823b: OFFSET_verify+43
54ba5f: xen_hyper_store_domain_context+639 54c307: xen_hyper_refresh_domain_context_space+151

After patch 1:

dcs-xen-54:/big/crash/vmcore-hang-0>~/crash-7.0/crash vmcore xen-syms-4.4-unstable

crash 7.0.4
Copyright (C) 2002-2013 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. This program is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Enter "help copying" to see the conditions. This program has absolutely no warranty. Enter "help warranty" for details.

GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...

KERNEL: xen-syms-4.4-unstable
DUMPFILE: vmcore

     CPUS: 8
  DOMAINS: 5
   UPTIME: --:--:--
  MACHINE: Intel(R) Xeon(R) CPU E31265L @ 2.40GHz  (2400 Mhz)
   MEMORY: 32 GB
  PCPU-ID: 0
     PCPU: ffff82d0802bff18
  VCPU-ID: 0
     VCPU: ffff8300bf2fe000  (VCPU_RUNNING)

DOMAIN-ID: 32767
DOMAIN: ffff83083a163000 (DOMAIN_RUNNING)
STATE: CRASH

crash> doms
DID DOMAIN ST T MAXPAGE TOTPAGE VCPU SHARED_I P2M_MFN

  32753 ffff83083a1a7000 RU O     0        0      0 0              ----
  32754 ffff83083a164000 RU X     0        0      0 0              ----
>*32767 ffff83083a163000 RU I     0        0      8 0              ----
>     0 ffff830823fb7000 RU 0 ffffffff   80000    8 ffff8300bf504000      81df80
      2 ffff83083f12e000 RU U  100100    fd043    2 ffff8300bf4b6000         0
crash> help -X ofs
                       ELF_Prstatus_pr_info: 0
                     ELF_Prstatus_pr_cursig: 12
                    ELF_Prstatus_pr_sigpend: 16
                    ELF_Prstatus_pr_sighold: 24
                        ELF_Prstatus_pr_pid: 32
                       ELF_Prstatus_pr_ppid: 36
                       ELF_Prstatus_pr_pgrp: 40
                        ELF_Prstatus_pr_sid: 44
                      ELF_Prstatus_pr_stime: 64
                     ELF_Prstatus_pr_cutime: 80
                     ELF_Prstatus_pr_cstime: 96
                        ELF_Prstatus_pr_reg: 112
                    ELF_Prstatus_pr_fpvalid: 328
                         ELF_Timeval_tv_sec: 0
                        ELF_Timeval_tv_usec: 8
                   arch_shared_info_max_pfn: 0
arch_shared_info_pfn_to_mfn_frame_list_list: 8
                arch_shared_info_nmi_reason: 16
               cpu_info_guest_cpu_user_regs: 0
                      cpu_info_processor_id: 200
                      cpu_info_current_vcpu: 208
                   cpu_time_local_tsc_stamp: 0
                 cpu_time_stime_local_stamp: 0
                cpu_time_stime_master_stamp: 0
                         cpu_time_tsc_scale: 0
                 cpu_time_calibration_timer: 0
                          crash_note_t_core: -1
                           crash_note_t_xen: -1
                      crash_note_t_xen_regs: -1
                      crash_note_t_xen_info: -1
                     crash_note_core_t_note: -1
                     crash_note_core_t_desc: -1
                      crash_note_xen_t_note: -1
                      crash_note_xen_t_desc: -1
                 crash_note_xen_core_t_note: -1
                 crash_note_xen_core_t_desc: -1
                 crash_note_xen_info_t_note: -1
                 crash_note_xen_info_t_desc: -1
                           domain_page_list: 0
                        domain_xenpage_list: 0
                           domain_domain_id: 0
                           domain_tot_pages: 56
                           domain_max_pages: 64
                       domain_xenheap_pages: 76
                         domain_shared_info: 8
                          domain_sched_priv: 88
                        domain_next_in_list: 104
                        domain_domain_flags: ffffffffffffffff
                              domain_evtchn: 144
                              domain_is_hvm: -1
                       domain_is_privileged: 278
                   domain_debugger_attached: 288
                            domain_is_dying: 292
             domain_is_paused_by_controller: 296
                    domain_is_shutting_down: 316
                        domain_is_shut_down: 317
                                domain_vcpu: 352
                                domain_arch: 384
                schedule_data_schedule_lock: 0
                         schedule_data_curr: 16
                         schedule_data_idle: 0
                   schedule_data_sched_priv: 24
                      schedule_data_s_timer: 32
                         schedule_data_tick: -1
                             scheduler_name: 0
                         scheduler_opt_name: 8
                         scheduler_sched_id: 16
                             scheduler_init: 40
                             scheduler_tick: -1
                        scheduler_init_vcpu: -1
                   scheduler_destroy_domain: 112
                            scheduler_sleep: 136
                             scheduler_wake: 144
                     scheduler_set_affinity: -1
                      scheduler_do_schedule: 168
                           scheduler_adjust: 192
                    scheduler_dump_settings: 216
                   scheduler_dump_cpu_state: 224
                      shared_info_vcpu_info: 0
                 shared_info_evtchn_pending: 2048
                    shared_info_evtchn_mask: 2560
                           shared_info_arch: 3088
                              timer_expires: 0
                                  timer_cpu: 40
                             timer_function: 24
                                 timer_data: 32
                          timer_heap_offset: -1
                               timer_killed: -1
                            tss_struct_rsp0: 4
                            tss_struct_esp0: 0
                               vcpu_vcpu_id: 0
                             vcpu_processor: 4
                             vcpu_vcpu_info: 8
                                vcpu_domain: 16
                          vcpu_next_in_list: 24
                                 vcpu_timer: -1
                            vcpu_sleep_tick: -1
                            vcpu_poll_timer: 144
                            vcpu_sched_priv: 192
                              vcpu_runstate: 200
                        vcpu_runstate_guest: 248
                            vcpu_vcpu_flags: -1
                           vcpu_pause_count: 296
                        vcpu_virq_to_evtchn: 300
                          vcpu_cpu_affinity: 352
                              vcpu_nmi_addr: -1
                    vcpu_vcpu_dirty_cpumask: 376
                                  vcpu_arch: 640
                   vcpu_runstate_info_state: 0
        vcpu_runstate_info_state_entry_time: 8
                    vcpu_runstate_info_time: 16

After patch 2:

dcs-xen-54:/big/crash/vmcore-hang-0>~/crash-7.0/crash vmcore xen-syms-4.4-unstable

crash 7.0.4
Copyright (C) 2002-2013 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. This program is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Enter "help copying" to see the conditions. This program has absolutely no warranty. Enter "help warranty" for details.

GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...

KERNEL: xen-syms-4.4-unstable
DUMPFILE: vmcore

     CPUS: 8
  DOMAINS: 5
   UPTIME: --:--:--
  MACHINE: Intel(R) Xeon(R) CPU E31265L @ 2.40GHz  (2400 Mhz)
   MEMORY: 32 GB
  PCPU-ID: 0
     PCPU: ffff82d0802bff18
  VCPU-ID: 0
     VCPU: ffff8300bf2fe000  (VCPU_RUNNING)

DOMAIN-ID: 32767
DOMAIN: ffff83083a163000 (DOMAIN_RUNNING)
STATE: CRASH

crash> doms
DID DOMAIN ST T MAXPAGE TOTPAGE VCPU SHARED_I P2M_MFN

  32753 ffff83083a1a7000 RU O     0        0      0 0              ----
  32754 ffff83083a164000 RU X     0        0      0 0              ----
>*32767 ffff83083a163000 RU I     0        0      8 0              ----
>     0 ffff830823fb7000 RU 0 ffffffff   80000    8 ffff8300bf504000      81df80
      2 ffff83083f12e000 RU U  100100    fd043    2 ffff8300bf4b6000         0
crash> help -X ofs
                       ELF_Prstatus_pr_info: 0
                     ELF_Prstatus_pr_cursig: 12
                    ELF_Prstatus_pr_sigpend: 16
                    ELF_Prstatus_pr_sighold: 24
                        ELF_Prstatus_pr_pid: 32
                       ELF_Prstatus_pr_ppid: 36
                       ELF_Prstatus_pr_pgrp: 40
                        ELF_Prstatus_pr_sid: 44
                      ELF_Prstatus_pr_stime: 64
                     ELF_Prstatus_pr_cutime: 80
                     ELF_Prstatus_pr_cstime: 96
                        ELF_Prstatus_pr_reg: 112
                    ELF_Prstatus_pr_fpvalid: 328
                         ELF_Timeval_tv_sec: 0
                        ELF_Timeval_tv_usec: 8
                   arch_shared_info_max_pfn: 0
arch_shared_info_pfn_to_mfn_frame_list_list: 8
                arch_shared_info_nmi_reason: 16
               cpu_info_guest_cpu_user_regs: 0
                      cpu_info_processor_id: 200
                      cpu_info_current_vcpu: 208
                   cpu_time_local_tsc_stamp: 0
                 cpu_time_stime_local_stamp: 0
                cpu_time_stime_master_stamp: 0
                         cpu_time_tsc_scale: 0
                 cpu_time_calibration_timer: 0
                          crash_note_t_core: -1
                           crash_note_t_xen: -1
                      crash_note_t_xen_regs: -1
                      crash_note_t_xen_info: -1
                     crash_note_core_t_note: -1
                     crash_note_core_t_desc: -1
                      crash_note_xen_t_note: -1
                      crash_note_xen_t_desc: -1
                 crash_note_xen_core_t_note: -1
                 crash_note_xen_core_t_desc: -1
                 crash_note_xen_info_t_note: -1
                 crash_note_xen_info_t_desc: -1
                           domain_page_list: 0
                        domain_xenpage_list: 0
                           domain_domain_id: 0
                           domain_tot_pages: 56
                           domain_max_pages: 64
                       domain_xenheap_pages: 76
                         domain_shared_info: 8
                          domain_sched_priv: 88
                        domain_next_in_list: 104
                        domain_domain_flags: -1
                              domain_evtchn: 144
                              domain_is_hvm: -1
                       domain_is_privileged: 278
                   domain_debugger_attached: 288
                            domain_is_dying: 292
             domain_is_paused_by_controller: 296
                    domain_is_shutting_down: 316
                        domain_is_shut_down: 317
                                domain_vcpu: 352
                                domain_arch: 384
                schedule_data_schedule_lock: 0
                         schedule_data_curr: 16
                         schedule_data_idle: 0
                   schedule_data_sched_priv: 24
                      schedule_data_s_timer: 32
                         schedule_data_tick: -1
                             scheduler_name: 0
                         scheduler_opt_name: 8
                         scheduler_sched_id: 16
                             scheduler_init: 40
                             scheduler_tick: -1
                        scheduler_init_vcpu: -1
                   scheduler_destroy_domain: 112
                            scheduler_sleep: 136
                             scheduler_wake: 144
                     scheduler_set_affinity: -1
                      scheduler_do_schedule: 168
                           scheduler_adjust: 192
                    scheduler_dump_settings: 216
                   scheduler_dump_cpu_state: 224
                      shared_info_vcpu_info: 0
                 shared_info_evtchn_pending: 2048
                    shared_info_evtchn_mask: 2560
                           shared_info_arch: 3088
                              timer_expires: 0
                                  timer_cpu: 40
                             timer_function: 24
                                 timer_data: 32
                          timer_heap_offset: -1
                               timer_killed: -1
                            tss_struct_rsp0: 4
                            tss_struct_esp0: 0
                               vcpu_vcpu_id: 0
                             vcpu_processor: 4
                             vcpu_vcpu_info: 8
                                vcpu_domain: 16
                          vcpu_next_in_list: 24
                                 vcpu_timer: -1
                            vcpu_sleep_tick: -1
                            vcpu_poll_timer: 144
                            vcpu_sched_priv: 192
                              vcpu_runstate: 200
                        vcpu_runstate_guest: 248
                            vcpu_vcpu_flags: -1
                           vcpu_pause_count: 296
                        vcpu_virq_to_evtchn: 300
                          vcpu_cpu_affinity: 352
                              vcpu_nmi_addr: -1
                    vcpu_vcpu_dirty_cpumask: 376
                                  vcpu_arch: 640
                   vcpu_runstate_info_state: 0
        vcpu_runstate_info_state_entry_time: 8
                    vcpu_runstate_info_time: 16

After patch 3:

dcs-xen-54:/big/crash/vmcore-hang-0>~/crash-7.0/crash vmcore xen-syms-4.4-unstable

crash 7.0.4
Copyright (C) 2002-2013 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. This program is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Enter "help copying" to see the conditions. This program has absolutely no warranty. Enter "help warranty" for details.

GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...

KERNEL: xen-syms-4.4-unstable
DUMPFILE: vmcore

     CPUS: 8
  DOMAINS: 5
   UPTIME: --:--:--
  MACHINE: Intel(R) Xeon(R) CPU E31265L @ 2.40GHz  (2400 Mhz)
   MEMORY: 32 GB
  PCPU-ID: 0
     PCPU: ffff82d0802bff18
  VCPU-ID: 0
     VCPU: ffff8300bf2fe000  (VCPU_RUNNING)

DOMAIN-ID: 32767
DOMAIN: ffff83083a163000 (DOMAIN_RUNNING)
STATE: CRASH

crash> doms
DID DOMAIN ST T MAXPAGE TOTPAGE VCPU SHARED_I P2M_MFN

  32753 ffff83083a1a7000 RU O     0        0      0 0              ----
  32754 ffff83083a164000 RU X     0        0      0 0              ----
>*32767 ffff83083a163000 RU I     0        0      8 0              ----
>     0 ffff830823fb7000 RU 0 ffffffff   80000    8 ffff8300bf504000      81df80
      2 ffff83083f12e000 CP U  100100    fd043    2 ffff8300bf4b6000         0

After patch 4:

dcs-xen-54:/big/crash/vmcore-hang-0>~/crash-7.0/crash vmcore xen-syms-4.4-unstable

crash 7.0.4
Copyright (C) 2002-2013 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. This program is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Enter "help copying" to see the conditions. This program has absolutely no warranty. Enter "help warranty" for details.

GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...

KERNEL: xen-syms-4.4-unstable
DUMPFILE: vmcore

     CPUS: 8
  DOMAINS: 5
   UPTIME: --:--:--
  MACHINE: Intel(R) Xeon(R) CPU E31265L @ 2.40GHz  (2400 Mhz)
   MEMORY: 32 GB
  PCPU-ID: 0
     PCPU: ffff82d0802bff18
  VCPU-ID: 0
     VCPU: ffff8300bf2fe000  (VCPU_RUNNING)

DOMAIN-ID: 32767
DOMAIN: ffff83083a163000 (DOMAIN_RUNNING)
STATE: CRASH

crash> doms
DID DOMAIN ST T MAXPAGE TOTPAGE VCPU SHARED_I P2M_MFN

  32753 ffff83083a1a7000 RU O     0        0      0 0              ----
  32754 ffff83083a164000 RU X     0        0      0 0              ----
>*32767 ffff83083a163000 RU I     0        0      8 0              ----
>     0 ffff830823fb7000 RU 0 ffffffff   80000    8 ffff8300bf504000      81df80
      2 ffff83083f12e000 CP U  100100    fd043    2 ffff8300bf4b6000         0
crash> help -X ofs
                       ELF_Prstatus_pr_info: 0
                     ELF_Prstatus_pr_cursig: 12
                    ELF_Prstatus_pr_sigpend: 16
                    ELF_Prstatus_pr_sighold: 24
                        ELF_Prstatus_pr_pid: 32
                       ELF_Prstatus_pr_ppid: 36
                       ELF_Prstatus_pr_pgrp: 40
                        ELF_Prstatus_pr_sid: 44
                      ELF_Prstatus_pr_stime: 64
                     ELF_Prstatus_pr_cutime: 80
                     ELF_Prstatus_pr_cstime: 96
                        ELF_Prstatus_pr_reg: 112
                    ELF_Prstatus_pr_fpvalid: 328
                         ELF_Timeval_tv_sec: 0
                        ELF_Timeval_tv_usec: 8
                   arch_shared_info_max_pfn: 0
arch_shared_info_pfn_to_mfn_frame_list_list: 8
                arch_shared_info_nmi_reason: 16
               cpu_info_guest_cpu_user_regs: 0
                      cpu_info_processor_id: 200
                      cpu_info_current_vcpu: 208
                   cpu_time_local_tsc_stamp: 0
                 cpu_time_stime_local_stamp: 0
                cpu_time_stime_master_stamp: 0
                         cpu_time_tsc_scale: 0
                 cpu_time_calibration_timer: 0
                          crash_note_t_core: -1
                           crash_note_t_xen: -1
                      crash_note_t_xen_regs: -1
                      crash_note_t_xen_info: -1
                     crash_note_core_t_note: -1
                     crash_note_core_t_desc: -1
                      crash_note_xen_t_note: -1
                      crash_note_xen_t_desc: -1
                 crash_note_xen_core_t_note: -1
                 crash_note_xen_core_t_desc: -1
                 crash_note_xen_info_t_note: -1
                 crash_note_xen_info_t_desc: -1
                           domain_page_list: 0
                        domain_xenpage_list: 0
                           domain_domain_id: 0
                           domain_tot_pages: 56
                           domain_max_pages: 64
                       domain_xenheap_pages: 76
                         domain_shared_info: 8
                          domain_sched_priv: 88
                        domain_next_in_list: 104
                        domain_domain_flags: -1
                              domain_evtchn: 144
                              domain_is_hvm: -1
                          domain_guest_type: 272
                       domain_is_privileged: 278
                   domain_debugger_attached: 288
                            domain_is_dying: 292
             domain_is_paused_by_controller: 296
                    domain_is_shutting_down: 316
                        domain_is_shut_down: 317
                                domain_vcpu: 352
                                domain_arch: 384
                schedule_data_schedule_lock: 0
                         schedule_data_curr: 16
                         schedule_data_idle: 0
                   schedule_data_sched_priv: 24
                      schedule_data_s_timer: 32
                         schedule_data_tick: -1
                             scheduler_name: 0
                         scheduler_opt_name: 8
                         scheduler_sched_id: 16
                             scheduler_init: 40
                             scheduler_tick: -1
                        scheduler_init_vcpu: -1
                   scheduler_destroy_domain: 112
                            scheduler_sleep: 136
                             scheduler_wake: 144
                     scheduler_set_affinity: -1
                      scheduler_do_schedule: 168
                           scheduler_adjust: 192
                    scheduler_dump_settings: 216
                   scheduler_dump_cpu_state: 224
                      shared_info_vcpu_info: 0
                 shared_info_evtchn_pending: 2048
                    shared_info_evtchn_mask: 2560
                           shared_info_arch: 3088
                              timer_expires: 0
                                  timer_cpu: 40
                             timer_function: 24
                                 timer_data: 32
                          timer_heap_offset: -1
                               timer_killed: -1
                            tss_struct_rsp0: 4
                            tss_struct_esp0: 0
                               vcpu_vcpu_id: 0
                             vcpu_processor: 4
                             vcpu_vcpu_info: 8
                                vcpu_domain: 16
                          vcpu_next_in_list: 24
                                 vcpu_timer: -1
                            vcpu_sleep_tick: -1
                            vcpu_poll_timer: 144
                            vcpu_sched_priv: 192
                              vcpu_runstate: 200
                        vcpu_runstate_guest: 248
                            vcpu_vcpu_flags: -1
                           vcpu_pause_count: 296
                        vcpu_virq_to_evtchn: 300
                          vcpu_cpu_affinity: 352
                              vcpu_nmi_addr: -1
                    vcpu_vcpu_dirty_cpumask: 376
                                  vcpu_arch: 640
                   vcpu_runstate_info_state: 0
        vcpu_runstate_info_state_entry_time: 8
                    vcpu_runstate_info_time: 16

-Don Slutz

Quoted 19 lines
Quoted 11 lines

Don Slutz (4):
Make domian.is_hvm optional
xen: Fix offset output to be decimal.
xen: set all domain_flags, not just the 1st.
Add basic domain.guest_type support.

  xen_hyper.c             | 32 ++++++++++++++++++++++++--------
  xen_hyper_defs.h        |  1 +
  xen_hyper_dump_tables.c |  4 +++-
  3 files changed, 28 insertions(+), 9 deletions(-)
Quoted 8 lines

--
1.8.4

--
Crash-utility mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/crash-utility

Quoted 4 lines

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#17 lore raw

----- Original Message -----

Quoted 56 lines · Dave Anderson
Quoted 14 lines

----- Original Message -----

Quoted 5 lines

With the addition on PVH code to xen 4.4, domain.is_hvm no longer exists. This prevents crash from using a xen 4.4.0 vmcore.

Patch 1 "fixes" this.

Quoted 7 lines

Patch 2 is a minor fix in that outputing the offset in hex for domain_domain_flags is different.

Patch 3 is a bug fix to get all "domain_flags" set, not just the 1st one found.

Patch 4 is a quick way to add domain.guest_type support.

Quoted 8 lines

Hi Don,

The patch looks good to me. But for the crash.changelog, can you show what happens when you attempt to look at one of these PVH dumps without your patches?

Thanks,
Dave

Before patch 1:

dcs-xen-54:/big/crash/vmcore-hang-0>~/crash-7.0/crash vmcore xen-syms-4.4-unstable

crash 7.0.4
Copyright (C) 2002-2013 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. This program is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Enter "help copying" to see the conditions. This program has absolutely no warranty. Enter "help warranty" for details.

GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...

crash: invalid structure member offset: domain_is_hvm
FILE: xen_hyper.c LINE: 1250 FUNCTION: xen_hyper_store_domain_context()

Quoted 6 lines

[/home/don/crash-7.0/crash] error trace: 54c307 => 54ba5f => 51823b => 460895

   460895: OFFSET_verify.part.25+67
   51823b: OFFSET_verify+43
   54ba5f: xen_hyper_store_domain_context+639
   54c307: xen_hyper_refresh_domain_context_space+151

OK good, that's what I'm looking for -- queued for crash-7.0.5.

Thanks,
Dave

Quoted 589 lines

After patch 1:

dcs-xen-54:/big/crash/vmcore-hang-0>~/crash-7.0/crash vmcore xen-syms-4.4-unstable

crash 7.0.4
Copyright (C) 2002-2013 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. This program is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Enter "help copying" to see the conditions. This program has absolutely no warranty. Enter "help warranty" for details.

GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...

KERNEL: xen-syms-4.4-unstable
DUMPFILE: vmcore

      CPUS: 8
   DOMAINS: 5
    UPTIME: --:--:--
   MACHINE: Intel(R) Xeon(R) CPU E31265L @ 2.40GHz  (2400 Mhz)
    MEMORY: 32 GB
   PCPU-ID: 0
      PCPU: ffff82d0802bff18
   VCPU-ID: 0
      VCPU: ffff8300bf2fe000  (VCPU_RUNNING)
DOMAIN-ID: 32767
    DOMAIN: ffff83083a163000  (DOMAIN_RUNNING)
     STATE: CRASH

crash> doms
DID DOMAIN ST T MAXPAGE TOTPAGE VCPU SHARED_I
P2M_MFN

   32753 ffff83083a1a7000 RU O     0        0      0 0              ----
   32754 ffff83083a164000 RU X     0        0      0 0              ----
 >*32767 ffff83083a163000 RU I     0        0      8 0              ----
 >     0 ffff830823fb7000 RU 0 ffffffff   80000    8 ffff8300bf504000
Quoted 1 line
    81df80
       2 ffff83083f12e000 RU U  100100    fd043    2 ffff8300bf4b6000
       0
crash> help -X ofs
                        ELF_Prstatus_pr_info: 0
                      ELF_Prstatus_pr_cursig: 12
                     ELF_Prstatus_pr_sigpend: 16
                     ELF_Prstatus_pr_sighold: 24
                         ELF_Prstatus_pr_pid: 32
                        ELF_Prstatus_pr_ppid: 36
                        ELF_Prstatus_pr_pgrp: 40
                         ELF_Prstatus_pr_sid: 44
                       ELF_Prstatus_pr_stime: 64
                      ELF_Prstatus_pr_cutime: 80
                      ELF_Prstatus_pr_cstime: 96
                         ELF_Prstatus_pr_reg: 112
                     ELF_Prstatus_pr_fpvalid: 328
                          ELF_Timeval_tv_sec: 0
                         ELF_Timeval_tv_usec: 8
                    arch_shared_info_max_pfn: 0
arch_shared_info_pfn_to_mfn_frame_list_list: 8
                 arch_shared_info_nmi_reason: 16
                cpu_info_guest_cpu_user_regs: 0
                       cpu_info_processor_id: 200
                       cpu_info_current_vcpu: 208
                    cpu_time_local_tsc_stamp: 0
                  cpu_time_stime_local_stamp: 0
                 cpu_time_stime_master_stamp: 0
                          cpu_time_tsc_scale: 0
                  cpu_time_calibration_timer: 0
                           crash_note_t_core: -1
                            crash_note_t_xen: -1
                       crash_note_t_xen_regs: -1
                       crash_note_t_xen_info: -1
                      crash_note_core_t_note: -1
                      crash_note_core_t_desc: -1
                       crash_note_xen_t_note: -1
                       crash_note_xen_t_desc: -1
                  crash_note_xen_core_t_note: -1
                  crash_note_xen_core_t_desc: -1
                  crash_note_xen_info_t_note: -1
                  crash_note_xen_info_t_desc: -1
                            domain_page_list: 0
                         domain_xenpage_list: 0
                            domain_domain_id: 0
                            domain_tot_pages: 56
                            domain_max_pages: 64
                        domain_xenheap_pages: 76
                          domain_shared_info: 8
                           domain_sched_priv: 88
                         domain_next_in_list: 104
                         domain_domain_flags: ffffffffffffffff
                               domain_evtchn: 144
                               domain_is_hvm: -1
                        domain_is_privileged: 278
                    domain_debugger_attached: 288
                             domain_is_dying: 292
              domain_is_paused_by_controller: 296
                     domain_is_shutting_down: 316
                         domain_is_shut_down: 317
                                 domain_vcpu: 352
                                 domain_arch: 384
                 schedule_data_schedule_lock: 0
                          schedule_data_curr: 16
                          schedule_data_idle: 0
                    schedule_data_sched_priv: 24
                       schedule_data_s_timer: 32
                          schedule_data_tick: -1
                              scheduler_name: 0
                          scheduler_opt_name: 8
                          scheduler_sched_id: 16
                              scheduler_init: 40
                              scheduler_tick: -1
                         scheduler_init_vcpu: -1
                    scheduler_destroy_domain: 112
                             scheduler_sleep: 136
                              scheduler_wake: 144
                      scheduler_set_affinity: -1
                       scheduler_do_schedule: 168
                            scheduler_adjust: 192
                     scheduler_dump_settings: 216
                    scheduler_dump_cpu_state: 224
                       shared_info_vcpu_info: 0
                  shared_info_evtchn_pending: 2048
                     shared_info_evtchn_mask: 2560
                            shared_info_arch: 3088
                               timer_expires: 0
                                   timer_cpu: 40
                              timer_function: 24
                                  timer_data: 32
                           timer_heap_offset: -1
                                timer_killed: -1
                             tss_struct_rsp0: 4
                             tss_struct_esp0: 0
                                vcpu_vcpu_id: 0
                              vcpu_processor: 4
                              vcpu_vcpu_info: 8
                                 vcpu_domain: 16
                           vcpu_next_in_list: 24
                                  vcpu_timer: -1
                             vcpu_sleep_tick: -1
                             vcpu_poll_timer: 144
                             vcpu_sched_priv: 192
                               vcpu_runstate: 200
                         vcpu_runstate_guest: 248
                             vcpu_vcpu_flags: -1
                            vcpu_pause_count: 296
                         vcpu_virq_to_evtchn: 300
                           vcpu_cpu_affinity: 352
                               vcpu_nmi_addr: -1
                     vcpu_vcpu_dirty_cpumask: 376
                                   vcpu_arch: 640
                    vcpu_runstate_info_state: 0
         vcpu_runstate_info_state_entry_time: 8
                     vcpu_runstate_info_time: 16

After patch 2:

dcs-xen-54:/big/crash/vmcore-hang-0>~/crash-7.0/crash vmcore xen-syms-4.4-unstable

crash 7.0.4
Copyright (C) 2002-2013 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. This program is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Enter "help copying" to see the conditions. This program has absolutely no warranty. Enter "help warranty" for details.

GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...

KERNEL: xen-syms-4.4-unstable
DUMPFILE: vmcore

      CPUS: 8
   DOMAINS: 5
    UPTIME: --:--:--
   MACHINE: Intel(R) Xeon(R) CPU E31265L @ 2.40GHz  (2400 Mhz)
    MEMORY: 32 GB
   PCPU-ID: 0
      PCPU: ffff82d0802bff18
   VCPU-ID: 0
      VCPU: ffff8300bf2fe000  (VCPU_RUNNING)
DOMAIN-ID: 32767
    DOMAIN: ffff83083a163000  (DOMAIN_RUNNING)
     STATE: CRASH

crash> doms
DID DOMAIN ST T MAXPAGE TOTPAGE VCPU SHARED_I
P2M_MFN

   32753 ffff83083a1a7000 RU O     0        0      0 0              ----
   32754 ffff83083a164000 RU X     0        0      0 0              ----
 >*32767 ffff83083a163000 RU I     0        0      8 0              ----
 >     0 ffff830823fb7000 RU 0 ffffffff   80000    8 ffff8300bf504000
Quoted 1 line
    81df80
       2 ffff83083f12e000 RU U  100100    fd043    2 ffff8300bf4b6000
       0
crash> help -X ofs
                        ELF_Prstatus_pr_info: 0
                      ELF_Prstatus_pr_cursig: 12
                     ELF_Prstatus_pr_sigpend: 16
                     ELF_Prstatus_pr_sighold: 24
                         ELF_Prstatus_pr_pid: 32
                        ELF_Prstatus_pr_ppid: 36
                        ELF_Prstatus_pr_pgrp: 40
                         ELF_Prstatus_pr_sid: 44
                       ELF_Prstatus_pr_stime: 64
                      ELF_Prstatus_pr_cutime: 80
                      ELF_Prstatus_pr_cstime: 96
                         ELF_Prstatus_pr_reg: 112
                     ELF_Prstatus_pr_fpvalid: 328
                          ELF_Timeval_tv_sec: 0
                         ELF_Timeval_tv_usec: 8
                    arch_shared_info_max_pfn: 0
arch_shared_info_pfn_to_mfn_frame_list_list: 8
                 arch_shared_info_nmi_reason: 16
                cpu_info_guest_cpu_user_regs: 0
                       cpu_info_processor_id: 200
                       cpu_info_current_vcpu: 208
                    cpu_time_local_tsc_stamp: 0
                  cpu_time_stime_local_stamp: 0
                 cpu_time_stime_master_stamp: 0
                          cpu_time_tsc_scale: 0
                  cpu_time_calibration_timer: 0
                           crash_note_t_core: -1
                            crash_note_t_xen: -1
                       crash_note_t_xen_regs: -1
                       crash_note_t_xen_info: -1
                      crash_note_core_t_note: -1
                      crash_note_core_t_desc: -1
                       crash_note_xen_t_note: -1
                       crash_note_xen_t_desc: -1
                  crash_note_xen_core_t_note: -1
                  crash_note_xen_core_t_desc: -1
                  crash_note_xen_info_t_note: -1
                  crash_note_xen_info_t_desc: -1
                            domain_page_list: 0
                         domain_xenpage_list: 0
                            domain_domain_id: 0
                            domain_tot_pages: 56
                            domain_max_pages: 64
                        domain_xenheap_pages: 76
                          domain_shared_info: 8
                           domain_sched_priv: 88
                         domain_next_in_list: 104
                         domain_domain_flags: -1
                               domain_evtchn: 144
                               domain_is_hvm: -1
                        domain_is_privileged: 278
                    domain_debugger_attached: 288
                             domain_is_dying: 292
              domain_is_paused_by_controller: 296
                     domain_is_shutting_down: 316
                         domain_is_shut_down: 317
                                 domain_vcpu: 352
                                 domain_arch: 384
                 schedule_data_schedule_lock: 0
                          schedule_data_curr: 16
                          schedule_data_idle: 0
                    schedule_data_sched_priv: 24
                       schedule_data_s_timer: 32
                          schedule_data_tick: -1
                              scheduler_name: 0
                          scheduler_opt_name: 8
                          scheduler_sched_id: 16
                              scheduler_init: 40
                              scheduler_tick: -1
                         scheduler_init_vcpu: -1
                    scheduler_destroy_domain: 112
                             scheduler_sleep: 136
                              scheduler_wake: 144
                      scheduler_set_affinity: -1
                       scheduler_do_schedule: 168
                            scheduler_adjust: 192
                     scheduler_dump_settings: 216
                    scheduler_dump_cpu_state: 224
                       shared_info_vcpu_info: 0
                  shared_info_evtchn_pending: 2048
                     shared_info_evtchn_mask: 2560
                            shared_info_arch: 3088
                               timer_expires: 0
                                   timer_cpu: 40
                              timer_function: 24
                                  timer_data: 32
                           timer_heap_offset: -1
                                timer_killed: -1
                             tss_struct_rsp0: 4
                             tss_struct_esp0: 0
                                vcpu_vcpu_id: 0
                              vcpu_processor: 4
                              vcpu_vcpu_info: 8
                                 vcpu_domain: 16
                           vcpu_next_in_list: 24
                                  vcpu_timer: -1
                             vcpu_sleep_tick: -1
                             vcpu_poll_timer: 144
                             vcpu_sched_priv: 192
                               vcpu_runstate: 200
                         vcpu_runstate_guest: 248
                             vcpu_vcpu_flags: -1
                            vcpu_pause_count: 296
                         vcpu_virq_to_evtchn: 300
                           vcpu_cpu_affinity: 352
                               vcpu_nmi_addr: -1
                     vcpu_vcpu_dirty_cpumask: 376
                                   vcpu_arch: 640
                    vcpu_runstate_info_state: 0
         vcpu_runstate_info_state_entry_time: 8
                     vcpu_runstate_info_time: 16

After patch 3:

dcs-xen-54:/big/crash/vmcore-hang-0>~/crash-7.0/crash vmcore xen-syms-4.4-unstable

crash 7.0.4
Copyright (C) 2002-2013 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. This program is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Enter "help copying" to see the conditions. This program has absolutely no warranty. Enter "help warranty" for details.

GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...

KERNEL: xen-syms-4.4-unstable
DUMPFILE: vmcore

      CPUS: 8
   DOMAINS: 5
    UPTIME: --:--:--
   MACHINE: Intel(R) Xeon(R) CPU E31265L @ 2.40GHz  (2400 Mhz)
    MEMORY: 32 GB
   PCPU-ID: 0
      PCPU: ffff82d0802bff18
   VCPU-ID: 0
      VCPU: ffff8300bf2fe000  (VCPU_RUNNING)
DOMAIN-ID: 32767
    DOMAIN: ffff83083a163000  (DOMAIN_RUNNING)
     STATE: CRASH

crash> doms
DID DOMAIN ST T MAXPAGE TOTPAGE VCPU SHARED_I
P2M_MFN

   32753 ffff83083a1a7000 RU O     0        0      0 0              ----
   32754 ffff83083a164000 RU X     0        0      0 0              ----
 >*32767 ffff83083a163000 RU I     0        0      8 0              ----
 >     0 ffff830823fb7000 RU 0 ffffffff   80000    8 ffff8300bf504000
Quoted 1 line
    81df80
       2 ffff83083f12e000 CP U  100100    fd043    2 ffff8300bf4b6000
       0

After patch 4:

dcs-xen-54:/big/crash/vmcore-hang-0>~/crash-7.0/crash vmcore xen-syms-4.4-unstable

crash 7.0.4
Copyright (C) 2002-2013 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. This program is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Enter "help copying" to see the conditions. This program has absolutely no warranty. Enter "help warranty" for details.

GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...

KERNEL: xen-syms-4.4-unstable
DUMPFILE: vmcore

      CPUS: 8
   DOMAINS: 5
    UPTIME: --:--:--
   MACHINE: Intel(R) Xeon(R) CPU E31265L @ 2.40GHz  (2400 Mhz)
    MEMORY: 32 GB
   PCPU-ID: 0
      PCPU: ffff82d0802bff18
   VCPU-ID: 0
      VCPU: ffff8300bf2fe000  (VCPU_RUNNING)
DOMAIN-ID: 32767
    DOMAIN: ffff83083a163000  (DOMAIN_RUNNING)
     STATE: CRASH

crash> doms
DID DOMAIN ST T MAXPAGE TOTPAGE VCPU SHARED_I
P2M_MFN

   32753 ffff83083a1a7000 RU O     0        0      0 0              ----
   32754 ffff83083a164000 RU X     0        0      0 0              ----
 >*32767 ffff83083a163000 RU I     0        0      8 0              ----
 >     0 ffff830823fb7000 RU 0 ffffffff   80000    8 ffff8300bf504000
Quoted 1 line
    81df80
       2 ffff83083f12e000 CP U  100100    fd043    2 ffff8300bf4b6000
       0
crash> help -X ofs
                        ELF_Prstatus_pr_info: 0
                      ELF_Prstatus_pr_cursig: 12
                     ELF_Prstatus_pr_sigpend: 16
                     ELF_Prstatus_pr_sighold: 24
                         ELF_Prstatus_pr_pid: 32
                        ELF_Prstatus_pr_ppid: 36
                        ELF_Prstatus_pr_pgrp: 40
                         ELF_Prstatus_pr_sid: 44
                       ELF_Prstatus_pr_stime: 64
                      ELF_Prstatus_pr_cutime: 80
                      ELF_Prstatus_pr_cstime: 96
                         ELF_Prstatus_pr_reg: 112
                     ELF_Prstatus_pr_fpvalid: 328
                          ELF_Timeval_tv_sec: 0
                         ELF_Timeval_tv_usec: 8
                    arch_shared_info_max_pfn: 0
arch_shared_info_pfn_to_mfn_frame_list_list: 8
                 arch_shared_info_nmi_reason: 16
                cpu_info_guest_cpu_user_regs: 0
                       cpu_info_processor_id: 200
                       cpu_info_current_vcpu: 208
                    cpu_time_local_tsc_stamp: 0
                  cpu_time_stime_local_stamp: 0
                 cpu_time_stime_master_stamp: 0
                          cpu_time_tsc_scale: 0
                  cpu_time_calibration_timer: 0
                           crash_note_t_core: -1
                            crash_note_t_xen: -1
                       crash_note_t_xen_regs: -1
                       crash_note_t_xen_info: -1
                      crash_note_core_t_note: -1
                      crash_note_core_t_desc: -1
                       crash_note_xen_t_note: -1
                       crash_note_xen_t_desc: -1
                  crash_note_xen_core_t_note: -1
                  crash_note_xen_core_t_desc: -1
                  crash_note_xen_info_t_note: -1
                  crash_note_xen_info_t_desc: -1
                            domain_page_list: 0
                         domain_xenpage_list: 0
                            domain_domain_id: 0
                            domain_tot_pages: 56
                            domain_max_pages: 64
                        domain_xenheap_pages: 76
                          domain_shared_info: 8
                           domain_sched_priv: 88
                         domain_next_in_list: 104
                         domain_domain_flags: -1
                               domain_evtchn: 144
                               domain_is_hvm: -1
                           domain_guest_type: 272
                        domain_is_privileged: 278
                    domain_debugger_attached: 288
                             domain_is_dying: 292
              domain_is_paused_by_controller: 296
                     domain_is_shutting_down: 316
                         domain_is_shut_down: 317
                                 domain_vcpu: 352
                                 domain_arch: 384
                 schedule_data_schedule_lock: 0
                          schedule_data_curr: 16
                          schedule_data_idle: 0
                    schedule_data_sched_priv: 24
                       schedule_data_s_timer: 32
                          schedule_data_tick: -1
                              scheduler_name: 0
                          scheduler_opt_name: 8
                          scheduler_sched_id: 16
                              scheduler_init: 40
                              scheduler_tick: -1
                         scheduler_init_vcpu: -1
                    scheduler_destroy_domain: 112
                             scheduler_sleep: 136
                              scheduler_wake: 144
                      scheduler_set_affinity: -1
                       scheduler_do_schedule: 168
                            scheduler_adjust: 192
                     scheduler_dump_settings: 216
                    scheduler_dump_cpu_state: 224
                       shared_info_vcpu_info: 0
                  shared_info_evtchn_pending: 2048
                     shared_info_evtchn_mask: 2560
                            shared_info_arch: 3088
                               timer_expires: 0
                                   timer_cpu: 40
                              timer_function: 24
                                  timer_data: 32
                           timer_heap_offset: -1
                                timer_killed: -1
                             tss_struct_rsp0: 4
                             tss_struct_esp0: 0
                                vcpu_vcpu_id: 0
                              vcpu_processor: 4
                              vcpu_vcpu_info: 8
                                 vcpu_domain: 16
                           vcpu_next_in_list: 24
                                  vcpu_timer: -1
                             vcpu_sleep_tick: -1
                             vcpu_poll_timer: 144
                             vcpu_sched_priv: 192
                               vcpu_runstate: 200
                         vcpu_runstate_guest: 248
                             vcpu_vcpu_flags: -1
                            vcpu_pause_count: 296
                         vcpu_virq_to_evtchn: 300
                           vcpu_cpu_affinity: 352
                               vcpu_nmi_addr: -1
                     vcpu_vcpu_dirty_cpumask: 376
                                   vcpu_arch: 640
                    vcpu_runstate_info_state: 0
         vcpu_runstate_info_state_entry_time: 8
                     vcpu_runstate_info_time: 16


    -Don Slutz
Quoted 23 lines
Quoted 11 lines

Don Slutz (4):
Make domian.is_hvm optional
xen: Fix offset output to be decimal.
xen: set all domain_flags, not just the 1st.
Add basic domain.guest_type support.

  xen_hyper.c             | 32 ++++++++++++++++++++++++--------
  xen_hyper_defs.h        |  1 +
  xen_hyper_dump_tables.c |  4 +++-
  3 files changed, 28 insertions(+), 9 deletions(-)
Quoted 8 lines

--
1.8.4

--
Crash-utility mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/crash-utility

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#18 lore raw
In reply to Don Slutz

----- Original Message -----

Quoted 56 lines · Dave Anderson
Quoted 14 lines

----- Original Message -----

Quoted 5 lines

With the addition on PVH code to xen 4.4, domain.is_hvm no longer exists. This prevents crash from using a xen 4.4.0 vmcore.

Patch 1 "fixes" this.

Quoted 7 lines

Patch 2 is a minor fix in that outputing the offset in hex for domain_domain_flags is different.

Patch 3 is a bug fix to get all "domain_flags" set, not just the 1st one found.

Patch 4 is a quick way to add domain.guest_type support.

Quoted 8 lines

Hi Don,

The patch looks good to me. But for the crash.changelog, can you show what happens when you attempt to look at one of these PVH dumps without your patches?

Thanks,
Dave

Before patch 1:

dcs-xen-54:/big/crash/vmcore-hang-0>~/crash-7.0/crash vmcore xen-syms-4.4-unstable

crash 7.0.4
Copyright (C) 2002-2013 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. This program is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Enter "help copying" to see the conditions. This program has absolutely no warranty. Enter "help warranty" for details.

GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...

crash: invalid structure member offset: domain_is_hvm
FILE: xen_hyper.c LINE: 1250 FUNCTION: xen_hyper_store_domain_context()

Quoted 6 lines

[/home/don/crash-7.0/crash] error trace: 54c307 => 54ba5f => 51823b => 460895

   460895: OFFSET_verify.part.25+67
   51823b: OFFSET_verify+43
   54ba5f: xen_hyper_store_domain_context+639
   54c307: xen_hyper_refresh_domain_context_space+151

OK good, that's what I'm looking for -- queued for crash-7.0.5.

Thanks,
Dave

Quoted 554 lines

After patch 1:

dcs-xen-54:/big/crash/vmcore-hang-0>~/crash-7.0/crash vmcore xen-syms-4.4-unstable

crash 7.0.4
Copyright (C) 2002-2013 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. This program is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Enter "help copying" to see the conditions. This program has absolutely no warranty. Enter "help warranty" for details.

GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...

KERNEL: xen-syms-4.4-unstable
DUMPFILE: vmcore

      CPUS: 8
   DOMAINS: 5
    UPTIME: --:--:--
   MACHINE: Intel(R) Xeon(R) CPU E31265L @ 2.40GHz  (2400 Mhz)
    MEMORY: 32 GB
   PCPU-ID: 0
      PCPU: ffff82d0802bff18
   VCPU-ID: 0
      VCPU: ffff8300bf2fe000  (VCPU_RUNNING)
DOMAIN-ID: 32767
    DOMAIN: ffff83083a163000  (DOMAIN_RUNNING)
     STATE: CRASH

crash> doms
DID DOMAIN ST T MAXPAGE TOTPAGE VCPU SHARED_I
P2M_MFN

   32753 ffff83083a1a7000 RU O     0        0      0 0              ----
   32754 ffff83083a164000 RU X     0        0      0 0              ----
 >*32767 ffff83083a163000 RU I     0        0      8 0              ----
 >     0 ffff830823fb7000 RU 0 ffffffff   80000    8 ffff8300bf504000
Quoted 1 line
    81df80
       2 ffff83083f12e000 RU U  100100    fd043    2 ffff8300bf4b6000
       0
crash> help -X ofs
                        ELF_Prstatus_pr_info: 0
                      ELF_Prstatus_pr_cursig: 12
                     ELF_Prstatus_pr_sigpend: 16
                     ELF_Prstatus_pr_sighold: 24
                         ELF_Prstatus_pr_pid: 32
                        ELF_Prstatus_pr_ppid: 36
                        ELF_Prstatus_pr_pgrp: 40
                         ELF_Prstatus_pr_sid: 44
                       ELF_Prstatus_pr_stime: 64
                      ELF_Prstatus_pr_cutime: 80
                      ELF_Prstatus_pr_cstime: 96
                         ELF_Prstatus_pr_reg: 112
                     ELF_Prstatus_pr_fpvalid: 328
                          ELF_Timeval_tv_sec: 0
                         ELF_Timeval_tv_usec: 8
                    arch_shared_info_max_pfn: 0
arch_shared_info_pfn_to_mfn_frame_list_list: 8
                 arch_shared_info_nmi_reason: 16
                cpu_info_guest_cpu_user_regs: 0
                       cpu_info_processor_id: 200
                       cpu_info_current_vcpu: 208
                    cpu_time_local_tsc_stamp: 0
                  cpu_time_stime_local_stamp: 0
                 cpu_time_stime_master_stamp: 0
                          cpu_time_tsc_scale: 0
                  cpu_time_calibration_timer: 0
                           crash_note_t_core: -1
                            crash_note_t_xen: -1
                       crash_note_t_xen_regs: -1
                       crash_note_t_xen_info: -1
                      crash_note_core_t_note: -1
                      crash_note_core_t_desc: -1
                       crash_note_xen_t_note: -1
                       crash_note_xen_t_desc: -1
                  crash_note_xen_core_t_note: -1
                  crash_note_xen_core_t_desc: -1
                  crash_note_xen_info_t_note: -1
                  crash_note_xen_info_t_desc: -1
                            domain_page_list: 0
                         domain_xenpage_list: 0
                            domain_domain_id: 0
                            domain_tot_pages: 56
                            domain_max_pages: 64
                        domain_xenheap_pages: 76
                          domain_shared_info: 8
                           domain_sched_priv: 88
                         domain_next_in_list: 104
                         domain_domain_flags: ffffffffffffffff
                               domain_evtchn: 144
                               domain_is_hvm: -1
                        domain_is_privileged: 278
                    domain_debugger_attached: 288
                             domain_is_dying: 292
              domain_is_paused_by_controller: 296
                     domain_is_shutting_down: 316
                         domain_is_shut_down: 317
                                 domain_vcpu: 352
                                 domain_arch: 384
                 schedule_data_schedule_lock: 0
                          schedule_data_curr: 16
                          schedule_data_idle: 0
                    schedule_data_sched_priv: 24
                       schedule_data_s_timer: 32
                          schedule_data_tick: -1
                              scheduler_name: 0
                          scheduler_opt_name: 8
                          scheduler_sched_id: 16
                              scheduler_init: 40
                              scheduler_tick: -1
                         scheduler_init_vcpu: -1
                    scheduler_destroy_domain: 112
                             scheduler_sleep: 136
                              scheduler_wake: 144
                      scheduler_set_affinity: -1
                       scheduler_do_schedule: 168
                            scheduler_adjust: 192
                     scheduler_dump_settings: 216
                    scheduler_dump_cpu_state: 224
                       shared_info_vcpu_info: 0
                  shared_info_evtchn_pending: 2048
                     shared_info_evtchn_mask: 2560
                            shared_info_arch: 3088
                               timer_expires: 0
                                   timer_cpu: 40
                              timer_function: 24
                                  timer_data: 32
                           timer_heap_offset: -1
                                timer_killed: -1
                             tss_struct_rsp0: 4
                             tss_struct_esp0: 0
                                vcpu_vcpu_id: 0
                              vcpu_processor: 4
                              vcpu_vcpu_info: 8
                                 vcpu_domain: 16
                           vcpu_next_in_list: 24
                                  vcpu_timer: -1
                             vcpu_sleep_tick: -1
                             vcpu_poll_timer: 144
                             vcpu_sched_priv: 192
                               vcpu_runstate: 200
                         vcpu_runstate_guest: 248
                             vcpu_vcpu_flags: -1
                            vcpu_pause_count: 296
                         vcpu_virq_to_evtchn: 300
                           vcpu_cpu_affinity: 352
                               vcpu_nmi_addr: -1
                     vcpu_vcpu_dirty_cpumask: 376
                                   vcpu_arch: 640
                    vcpu_runstate_info_state: 0
         vcpu_runstate_info_state_entry_time: 8
                     vcpu_runstate_info_time: 16

After patch 2:

dcs-xen-54:/big/crash/vmcore-hang-0>~/crash-7.0/crash vmcore xen-syms-4.4-unstable

crash 7.0.4
Copyright (C) 2002-2013 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. This program is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Enter "help copying" to see the conditions. This program has absolutely no warranty. Enter "help warranty" for details.

GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...

KERNEL: xen-syms-4.4-unstable
DUMPFILE: vmcore

      CPUS: 8
   DOMAINS: 5
    UPTIME: --:--:--
   MACHINE: Intel(R) Xeon(R) CPU E31265L @ 2.40GHz  (2400 Mhz)
    MEMORY: 32 GB
   PCPU-ID: 0
      PCPU: ffff82d0802bff18
   VCPU-ID: 0
      VCPU: ffff8300bf2fe000  (VCPU_RUNNING)
DOMAIN-ID: 32767
    DOMAIN: ffff83083a163000  (DOMAIN_RUNNING)
     STATE: CRASH

crash> doms
DID DOMAIN ST T MAXPAGE TOTPAGE VCPU SHARED_I
P2M_MFN

   32753 ffff83083a1a7000 RU O     0        0      0 0              ----
   32754 ffff83083a164000 RU X     0        0      0 0              ----
 >*32767 ffff83083a163000 RU I     0        0      8 0              ----
 >     0 ffff830823fb7000 RU 0 ffffffff   80000    8 ffff8300bf504000
Quoted 1 line
    81df80
       2 ffff83083f12e000 RU U  100100    fd043    2 ffff8300bf4b6000
       0
crash> help -X ofs
                        ELF_Prstatus_pr_info: 0
                      ELF_Prstatus_pr_cursig: 12
                     ELF_Prstatus_pr_sigpend: 16
                     ELF_Prstatus_pr_sighold: 24
                         ELF_Prstatus_pr_pid: 32
                        ELF_Prstatus_pr_ppid: 36
                        ELF_Prstatus_pr_pgrp: 40
                         ELF_Prstatus_pr_sid: 44
                       ELF_Prstatus_pr_stime: 64
                      ELF_Prstatus_pr_cutime: 80
                      ELF_Prstatus_pr_cstime: 96
                         ELF_Prstatus_pr_reg: 112
                     ELF_Prstatus_pr_fpvalid: 328
                          ELF_Timeval_tv_sec: 0
                         ELF_Timeval_tv_usec: 8
                    arch_shared_info_max_pfn: 0
arch_shared_info_pfn_to_mfn_frame_list_list: 8
                 arch_shared_info_nmi_reason: 16
                cpu_info_guest_cpu_user_regs: 0
                       cpu_info_processor_id: 200
                       cpu_info_current_vcpu: 208
                    cpu_time_local_tsc_stamp: 0
                  cpu_time_stime_local_stamp: 0
                 cpu_time_stime_master_stamp: 0
                          cpu_time_tsc_scale: 0
                  cpu_time_calibration_timer: 0
                           crash_note_t_core: -1
                            crash_note_t_xen: -1
                       crash_note_t_xen_regs: -1
                       crash_note_t_xen_info: -1
                      crash_note_core_t_note: -1
                      crash_note_core_t_desc: -1
                       crash_note_xen_t_note: -1
                       crash_note_xen_t_desc: -1
                  crash_note_xen_core_t_note: -1
                  crash_note_xen_core_t_desc: -1
                  crash_note_xen_info_t_note: -1
                  crash_note_xen_info_t_desc: -1
                            domain_page_list: 0
                         domain_xenpage_list: 0
                            domain_domain_id: 0
                            domain_tot_pages: 56
                            domain_max_pages: 64
                        domain_xenheap_pages: 76
                          domain_shared_info: 8
                           domain_sched_priv: 88
                         domain_next_in_list: 104
                         domain_domain_flags: -1
                               domain_evtchn: 144
                               domain_is_hvm: -1
                        domain_is_privileged: 278
                    domain_debugger_attached: 288
                             domain_is_dying: 292
              domain_is_paused_by_controller: 296
                     domain_is_shutting_down: 316
                         domain_is_shut_down: 317
                                 domain_vcpu: 352
                                 domain_arch: 384
                 schedule_data_schedule_lock: 0
                          schedule_data_curr: 16
                          schedule_data_idle: 0
                    schedule_data_sched_priv: 24
                       schedule_data_s_timer: 32
                          schedule_data_tick: -1
                              scheduler_name: 0
                          scheduler_opt_name: 8
                          scheduler_sched_id: 16
                              scheduler_init: 40
                              scheduler_tick: -1
                         scheduler_init_vcpu: -1
                    scheduler_destroy_domain: 112
                             scheduler_sleep: 136
                              scheduler_wake: 144
                      scheduler_set_affinity: -1
                       scheduler_do_schedule: 168
                            scheduler_adjust: 192
                     scheduler_dump_settings: 216
                    scheduler_dump_cpu_state: 224
                       shared_info_vcpu_info: 0
                  shared_info_evtchn_pending: 2048
                     shared_info_evtchn_mask: 2560
                            shared_info_arch: 3088
                               timer_expires: 0
                                   timer_cpu: 40
                              timer_function: 24
                                  timer_data: 32
                           timer_heap_offset: -1
                                timer_killed: -1
                             tss_struct_rsp0: 4
                             tss_struct_esp0: 0
                                vcpu_vcpu_id: 0
                              vcpu_processor: 4
                              vcpu_vcpu_info: 8
                                 vcpu_domain: 16
                           vcpu_next_in_list: 24
                                  vcpu_timer: -1
                             vcpu_sleep_tick: -1
                             vcpu_poll_timer: 144
                             vcpu_sched_priv: 192
                               vcpu_runstate: 200
                         vcpu_runstate_guest: 248
                             vcpu_vcpu_flags: -1
                            vcpu_pause_count: 296
                         vcpu_virq_to_evtchn: 300
                           vcpu_cpu_affinity: 352
                               vcpu_nmi_addr: -1
                     vcpu_vcpu_dirty_cpumask: 376
                                   vcpu_arch: 640
                    vcpu_runstate_info_state: 0
         vcpu_runstate_info_state_entry_time: 8
                     vcpu_runstate_info_time: 16

After patch 3:

dcs-xen-54:/big/crash/vmcore-hang-0>~/crash-7.0/crash vmcore xen-syms-4.4-unstable

crash 7.0.4
Copyright (C) 2002-2013 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. This program is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Enter "help copying" to see the conditions. This program has absolutely no warranty. Enter "help warranty" for details.

GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...

KERNEL: xen-syms-4.4-unstable
DUMPFILE: vmcore

      CPUS: 8
   DOMAINS: 5
    UPTIME: --:--:--
   MACHINE: Intel(R) Xeon(R) CPU E31265L @ 2.40GHz  (2400 Mhz)
    MEMORY: 32 GB
   PCPU-ID: 0
      PCPU: ffff82d0802bff18
   VCPU-ID: 0
      VCPU: ffff8300bf2fe000  (VCPU_RUNNING)
DOMAIN-ID: 32767
    DOMAIN: ffff83083a163000  (DOMAIN_RUNNING)
     STATE: CRASH

crash> doms
DID DOMAIN ST T MAXPAGE TOTPAGE VCPU SHARED_I
P2M_MFN

   32753 ffff83083a1a7000 RU O     0        0      0 0              ----
   32754 ffff83083a164000 RU X     0        0      0 0              ----
 >*32767 ffff83083a163000 RU I     0        0      8 0              ----
 >     0 ffff830823fb7000 RU 0 ffffffff   80000    8 ffff8300bf504000
Quoted 1 line
    81df80
       2 ffff83083f12e000 CP U  100100    fd043    2 ffff8300bf4b6000
       0

After patch 4:

dcs-xen-54:/big/crash/vmcore-hang-0>~/crash-7.0/crash vmcore xen-syms-4.4-unstable

crash 7.0.4
Copyright (C) 2002-2013 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. This program is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Enter "help copying" to see the conditions. This program has absolutely no warranty. Enter "help warranty" for details.

GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...

KERNEL: xen-syms-4.4-unstable
DUMPFILE: vmcore

      CPUS: 8
   DOMAINS: 5
    UPTIME: --:--:--
   MACHINE: Intel(R) Xeon(R) CPU E31265L @ 2.40GHz  (2400 Mhz)
    MEMORY: 32 GB
   PCPU-ID: 0
      PCPU: ffff82d0802bff18
   VCPU-ID: 0
      VCPU: ffff8300bf2fe000  (VCPU_RUNNING)
DOMAIN-ID: 32767
    DOMAIN: ffff83083a163000  (DOMAIN_RUNNING)
     STATE: CRASH

crash> doms
DID DOMAIN ST T MAXPAGE TOTPAGE VCPU SHARED_I
P2M_MFN

   32753 ffff83083a1a7000 RU O     0        0      0 0              ----
   32754 ffff83083a164000 RU X     0        0      0 0              ----
 >*32767 ffff83083a163000 RU I     0        0      8 0              ----
 >     0 ffff830823fb7000 RU 0 ffffffff   80000    8 ffff8300bf504000
Quoted 1 line
    81df80
       2 ffff83083f12e000 CP U  100100    fd043    2 ffff8300bf4b6000
       0
crash> help -X ofs
                        ELF_Prstatus_pr_info: 0
                      ELF_Prstatus_pr_cursig: 12
                     ELF_Prstatus_pr_sigpend: 16
                     ELF_Prstatus_pr_sighold: 24
                         ELF_Prstatus_pr_pid: 32
                        ELF_Prstatus_pr_ppid: 36
                        ELF_Prstatus_pr_pgrp: 40
                         ELF_Prstatus_pr_sid: 44
                       ELF_Prstatus_pr_stime: 64
                      ELF_Prstatus_pr_cutime: 80
                      ELF_Prstatus_pr_cstime: 96
                         ELF_Prstatus_pr_reg: 112
                     ELF_Prstatus_pr_fpvalid: 328
                          ELF_Timeval_tv_sec: 0
                         ELF_Timeval_tv_usec: 8
                    arch_shared_info_max_pfn: 0
arch_shared_info_pfn_to_mfn_frame_list_list: 8
                 arch_shared_info_nmi_reason: 16
                cpu_info_guest_cpu_user_regs: 0
                       cpu_info_processor_id: 200
                       cpu_info_current_vcpu: 208
                    cpu_time_local_tsc_stamp: 0
                  cpu_time_stime_local_stamp: 0
                 cpu_time_stime_master_stamp: 0
                          cpu_time_tsc_scale: 0
                  cpu_time_calibration_timer: 0
                           crash_note_t_core: -1
                            crash_note_t_xen: -1
                       crash_note_t_xen_regs: -1
                       crash_note_t_xen_info: -1
                      crash_note_core_t_note: -1
                      crash_note_core_t_desc: -1
                       crash_note_xen_t_note: -1
                       crash_note_xen_t_desc: -1
                  crash_note_xen_core_t_note: -1
                  crash_note_xen_core_t_desc: -1
                  crash_note_xen_info_t_note: -1
                  crash_note_xen_info_t_desc: -1
                            domain_page_list: 0
                         domain_xenpage_list: 0
                            domain_domain_id: 0
                            domain_tot_pages: 56
                            domain_max_pages: 64
                        domain_xenheap_pages: 76
                          domain_shared_info: 8
                           domain_sched_priv: 88
                         domain_next_in_list: 104
                         domain_domain_flags: -1
                               domain_evtchn: 144
                               domain_is_hvm: -1
                           domain_guest_type: 272
                        domain_is_privileged: 278
                    domain_debugger_attached: 288
                             domain_is_dying: 292
              domain_is_paused_by_controller: 296
                     domain_is_shutting_down: 316
                         domain_is_shut_down: 317
                                 domain_vcpu: 352
                                 domain_arch: 384
                 schedule_data_schedule_lock: 0
                          schedule_data_curr: 16
                          schedule_data_idle: 0
                    schedule_data_sched_priv: 24
                       schedule_data_s_timer: 32
                          schedule_data_tick: -1
                              scheduler_name: 0
                          scheduler_opt_name: 8
                          scheduler_sched_id: 16
                              scheduler_init: 40
                              scheduler_tick: -1
                         scheduler_init_vcpu: -1
                    scheduler_destroy_domain: 112
                             scheduler_sleep: 136
                              scheduler_wake: 144
                      scheduler_set_affinity: -1
                       scheduler_do_schedule: 168
                            scheduler_adjust: 192
                     scheduler_dump_settings: 216
                    scheduler_dump_cpu_state: 224
                       shared_info_vcpu_info: 0
                  shared_info_evtchn_pending: 2048
                     shared_info_evtchn_mask: 2560
                            shared_info_arch: 3088
                               timer_expires: 0
                                   timer_cpu: 40
                              timer_function: 24
                                  timer_data: 32
                           timer_heap_offset: -1
                                timer_killed: -1
                             tss_struct_rsp0: 4
                             tss_struct_esp0: 0
                                vcpu_vcpu_id: 0
                              vcpu_processor: 4
                              vcpu_vcpu_info: 8
                                 vcpu_domain: 16
                           vcpu_next_in_list: 24
                                  vcpu_timer: -1
                             vcpu_sleep_tick: -1
                             vcpu_poll_timer: 144
                             vcpu_sched_priv: 192
                               vcpu_runstate: 200
                         vcpu_runstate_guest: 248
                             vcpu_vcpu_flags: -1
                            vcpu_pause_count: 296
                         vcpu_virq_to_evtchn: 300
                           vcpu_cpu_affinity: 352
                               vcpu_nmi_addr: -1
Quoted 35 lines
                     vcpu_vcpu_dirty_cpumask: 376
                                   vcpu_arch: 640
                    vcpu_runstate_info_state: 0
         vcpu_runstate_info_state_entry_time: 8
                     vcpu_runstate_info_time: 16


    -Don Slutz
Quoted 23 lines
Quoted 11 lines

Don Slutz (4):
Make domian.is_hvm optional
xen: Fix offset output to be decimal.
xen: set all domain_flags, not just the 1st.
Add basic domain.guest_type support.

  xen_hyper.c             | 32 ++++++++++++++++++++++++--------
  xen_hyper_defs.h        |  1 +
  xen_hyper_dump_tables.c |  4 +++-
  3 files changed, 28 insertions(+), 9 deletions(-)
Quoted 8 lines

--
1.8.4

--
Crash-utility mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/crash-utility

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

Reviewed-by Tested-by on the v1 series
#19 lore raw
In reply to Don Slutz
Quoted 5 lines · Don Slutz

With the addition on PVH code to xen 4.4, domain.is_hvm no longer exists. This prevents crash from using a xen 4.4.0 vmcore.

Patch 1 "fixes" this.

Quoted 7 lines

Patch 2 is a minor fix in that outputing the offset in hex for domain_domain_flags is different.

Patch 3 is a bug fix to get all "domain_flags" set, not just the 1st one found.

Patch 4 is a quick way to add domain.guest_type support.

Sorry for late reply but I was on holiday.

Nice work. Thanks. I have done some tests with old and new Xen versions and it looks that it works without any issue.

Daniel

Reviewed-by Tested-by on the v1 series
#20 lore raw
In reply to Don Slutz
Quoted 5 lines · Don Slutz

With the addition on PVH code to xen 4.4, domain.is_hvm no longer exists. This prevents crash from using a xen 4.4.0 vmcore.

Patch 1 "fixes" this.

Quoted 7 lines

Patch 2 is a minor fix in that outputing the offset in hex for domain_domain_flags is different.

Patch 3 is a bug fix to get all "domain_flags" set, not just the 1st one found.

Patch 4 is a quick way to add domain.guest_type support.

Sorry for late reply but I was on holiday.

Nice work. Thanks. I have done some tests with old and new Xen versions and it looks that it works without any issue.

Daniel

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec