All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore
@ 2014-01-04 19:11 Don Slutz
  2014-01-04 19:11 ` [PATCH 1/4] Make domian.is_hvm optional Don Slutz
                   ` (11 more replies)
  0 siblings, 12 replies; 21+ messages in thread
From: Don Slutz @ 2014-01-04 19:11 UTC (permalink / raw)
  To: crash-utility; +Cc: Andrew Cooper, Daniel Kiper, kexec, Don Slutz, xen-devel

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

-- 
1.8.4


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

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

* [PATCH 1/4] Make domian.is_hvm optional
  2014-01-04 19:11 [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore Don Slutz
  2014-01-04 19:11 ` [PATCH 1/4] Make domian.is_hvm optional Don Slutz
@ 2014-01-04 19:11 ` Don Slutz
  2014-01-04 19:11 ` [PATCH 2/4] xen: Fix offset output to be decimal Don Slutz
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 21+ messages in thread
From: Don Slutz @ 2014-01-04 19:11 UTC (permalink / raw)
  To: crash-utility; +Cc: Andrew Cooper, Daniel Kiper, kexec, Don Slutz, xen-devel

---
 xen_hyper.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/xen_hyper.c b/xen_hyper.c
index 7c7d3e1..3d56516 100644
--- a/xen_hyper.c
+++ b/xen_hyper.c
@@ -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;
-- 
1.8.4

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

* [PATCH 1/4] Make domian.is_hvm optional
  2014-01-04 19:11 [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore Don Slutz
@ 2014-01-04 19:11 ` Don Slutz
  2014-01-04 21:13   ` [Xen-devel] " Konrad Rzeszutek Wilk
  2014-01-04 21:13   ` Konrad Rzeszutek Wilk
  2014-01-04 19:11 ` Don Slutz
                   ` (10 subsequent siblings)
  11 siblings, 2 replies; 21+ messages in thread
From: Don Slutz @ 2014-01-04 19:11 UTC (permalink / raw)
  To: crash-utility; +Cc: Andrew Cooper, Daniel Kiper, kexec, Don Slutz, xen-devel

---
 xen_hyper.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/xen_hyper.c b/xen_hyper.c
index 7c7d3e1..3d56516 100644
--- a/xen_hyper.c
+++ b/xen_hyper.c
@@ -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;
-- 
1.8.4


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

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

* [PATCH 2/4] xen: Fix offset output to be decimal.
  2014-01-04 19:11 [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore Don Slutz
                   ` (2 preceding siblings ...)
  2014-01-04 19:11 ` [PATCH 2/4] xen: Fix offset output to be decimal Don Slutz
@ 2014-01-04 19:11 ` Don Slutz
  2014-01-04 19:11 ` [PATCH 3/4] xen: set all domain_flags, not just the 1st Don Slutz
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 21+ messages in thread
From: Don Slutz @ 2014-01-04 19:11 UTC (permalink / raw)
  To: crash-utility; +Cc: Andrew Cooper, Daniel Kiper, kexec, Don Slutz, xen-devel

---
 xen_hyper_dump_tables.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen_hyper_dump_tables.c b/xen_hyper_dump_tables.c
index 0582159..38558d5 100644
--- a/xen_hyper_dump_tables.c
+++ b/xen_hyper_dump_tables.c
@@ -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,
-- 
1.8.4

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

* [PATCH 2/4] xen: Fix offset output to be decimal.
  2014-01-04 19:11 [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore Don Slutz
  2014-01-04 19:11 ` [PATCH 1/4] Make domian.is_hvm optional Don Slutz
  2014-01-04 19:11 ` Don Slutz
@ 2014-01-04 19:11 ` Don Slutz
  2014-01-04 19:11 ` Don Slutz
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 21+ messages in thread
From: Don Slutz @ 2014-01-04 19:11 UTC (permalink / raw)
  To: crash-utility; +Cc: Andrew Cooper, Daniel Kiper, kexec, Don Slutz, xen-devel

---
 xen_hyper_dump_tables.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen_hyper_dump_tables.c b/xen_hyper_dump_tables.c
index 0582159..38558d5 100644
--- a/xen_hyper_dump_tables.c
+++ b/xen_hyper_dump_tables.c
@@ -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,
-- 
1.8.4


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

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

* [PATCH 3/4] xen: set all domain_flags, not just the 1st.
  2014-01-04 19:11 [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore Don Slutz
                   ` (3 preceding siblings ...)
  2014-01-04 19:11 ` Don Slutz
@ 2014-01-04 19:11 ` Don Slutz
  2014-01-04 19:11 ` Don Slutz
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 21+ messages in thread
From: Don Slutz @ 2014-01-04 19:11 UTC (permalink / raw)
  To: crash-utility; +Cc: Andrew Cooper, Daniel Kiper, kexec, Don Slutz, xen-devel

---
 xen_hyper.c | 21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)

diff --git a/xen_hyper.c b/xen_hyper.c
index 3d56516..00a0e2c 100644
--- a/xen_hyper.c
+++ b/xen_hyper.c
@@ -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 {
-- 
1.8.4

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

* [PATCH 3/4] xen: set all domain_flags, not just the 1st.
  2014-01-04 19:11 [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore Don Slutz
                   ` (4 preceding siblings ...)
  2014-01-04 19:11 ` [PATCH 3/4] xen: set all domain_flags, not just the 1st Don Slutz
@ 2014-01-04 19:11 ` Don Slutz
  2014-01-04 19:11 ` [PATCH 4/4] Add basic domain.guest_type support Don Slutz
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 21+ messages in thread
From: Don Slutz @ 2014-01-04 19:11 UTC (permalink / raw)
  To: crash-utility; +Cc: Andrew Cooper, Daniel Kiper, kexec, Don Slutz, xen-devel

---
 xen_hyper.c | 21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)

diff --git a/xen_hyper.c b/xen_hyper.c
index 3d56516..00a0e2c 100644
--- a/xen_hyper.c
+++ b/xen_hyper.c
@@ -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 {
-- 
1.8.4


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

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

* [PATCH 4/4] Add basic domain.guest_type support.
  2014-01-04 19:11 [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore Don Slutz
                   ` (6 preceding siblings ...)
  2014-01-04 19:11 ` [PATCH 4/4] Add basic domain.guest_type support Don Slutz
@ 2014-01-04 19:11 ` Don Slutz
  2014-01-06 17:05 ` [Crash-utility] [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore Dave Anderson
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 21+ messages in thread
From: Don Slutz @ 2014-01-04 19:11 UTC (permalink / raw)
  To: crash-utility; +Cc: Andrew Cooper, Daniel Kiper, kexec, Don Slutz, xen-devel

Signed-off-by: Don Slutz <dslutz@verizon.com>
---
 xen_hyper.c             | 8 ++++++++
 xen_hyper_defs.h        | 1 +
 xen_hyper_dump_tables.c | 2 ++
 3 files changed, 11 insertions(+)

diff --git a/xen_hyper.c b/xen_hyper.c
index 00a0e2c..c18e815 100644
--- a/xen_hyper.c
+++ b/xen_hyper.c
@@ -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;
 		}
diff --git a/xen_hyper_defs.h b/xen_hyper_defs.h
index 1f5b0ba..abc9a07 100644
--- a/xen_hyper_defs.h
+++ b/xen_hyper_defs.h
@@ -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;
diff --git a/xen_hyper_dump_tables.c b/xen_hyper_dump_tables.c
index 38558d5..337eb25 100644
--- a/xen_hyper_dump_tables.c
+++ b/xen_hyper_dump_tables.c
@@ -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,
-- 
1.8.4

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

* [PATCH 4/4] Add basic domain.guest_type support.
  2014-01-04 19:11 [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore Don Slutz
                   ` (5 preceding siblings ...)
  2014-01-04 19:11 ` Don Slutz
@ 2014-01-04 19:11 ` Don Slutz
  2014-01-04 19:11 ` Don Slutz
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 21+ messages in thread
From: Don Slutz @ 2014-01-04 19:11 UTC (permalink / raw)
  To: crash-utility; +Cc: Andrew Cooper, Daniel Kiper, kexec, Don Slutz, xen-devel

Signed-off-by: Don Slutz <dslutz@verizon.com>
---
 xen_hyper.c             | 8 ++++++++
 xen_hyper_defs.h        | 1 +
 xen_hyper_dump_tables.c | 2 ++
 3 files changed, 11 insertions(+)

diff --git a/xen_hyper.c b/xen_hyper.c
index 00a0e2c..c18e815 100644
--- a/xen_hyper.c
+++ b/xen_hyper.c
@@ -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;
 		}
diff --git a/xen_hyper_defs.h b/xen_hyper_defs.h
index 1f5b0ba..abc9a07 100644
--- a/xen_hyper_defs.h
+++ b/xen_hyper_defs.h
@@ -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;
diff --git a/xen_hyper_dump_tables.c b/xen_hyper_dump_tables.c
index 38558d5..337eb25 100644
--- a/xen_hyper_dump_tables.c
+++ b/xen_hyper_dump_tables.c
@@ -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,
-- 
1.8.4


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

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

* Re: [PATCH 1/4] Make domian.is_hvm optional
  2014-01-04 19:11 ` [PATCH 1/4] Make domian.is_hvm optional Don Slutz
  2014-01-04 21:13   ` [Xen-devel] " Konrad Rzeszutek Wilk
@ 2014-01-04 21:13   ` Konrad Rzeszutek Wilk
  1 sibling, 0 replies; 21+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-01-04 21:13 UTC (permalink / raw)
  To: Don Slutz; +Cc: Andrew Cooper, Daniel Kiper, xen-devel, kexec, crash-utility

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

You title should say 'domain'.

> ---
>  xen_hyper.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/xen_hyper.c b/xen_hyper.c
> index 7c7d3e1..3d56516 100644
> --- a/xen_hyper.c
> +++ b/xen_hyper.c
> @@ -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;
> -- 
> 1.8.4
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

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

* Re: [Xen-devel] [PATCH 1/4] Make domian.is_hvm optional
  2014-01-04 19:11 ` [PATCH 1/4] Make domian.is_hvm optional Don Slutz
@ 2014-01-04 21:13   ` Konrad Rzeszutek Wilk
  2014-01-04 21:26     ` Don Slutz
  2014-01-04 21:26     ` Don Slutz
  2014-01-04 21:13   ` Konrad Rzeszutek Wilk
  1 sibling, 2 replies; 21+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-01-04 21:13 UTC (permalink / raw)
  To: Don Slutz; +Cc: Andrew Cooper, Daniel Kiper, xen-devel, kexec, crash-utility

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

You title should say 'domain'.

> ---
>  xen_hyper.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/xen_hyper.c b/xen_hyper.c
> index 7c7d3e1..3d56516 100644
> --- a/xen_hyper.c
> +++ b/xen_hyper.c
> @@ -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;
> -- 
> 1.8.4
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

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

* Re: [PATCH 1/4] Make domian.is_hvm optional
  2014-01-04 21:13   ` [Xen-devel] " Konrad Rzeszutek Wilk
  2014-01-04 21:26     ` Don Slutz
@ 2014-01-04 21:26     ` Don Slutz
  1 sibling, 0 replies; 21+ messages in thread
From: Don Slutz @ 2014-01-04 21:26 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk
  Cc: Andrew Cooper, Daniel Kiper, kexec, Don Slutz, xen-devel, crash-utility

On 01/04/14 16:13, Konrad Rzeszutek Wilk wrote:
> On Sat, Jan 04, 2014 at 02:11:23PM -0500, Don Slutz wrote:
>
> You title should say 'domain'.
>
Will fix.
     -Don Slutz
>> ---
>>   xen_hyper.c | 3 ++-
>>   1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/xen_hyper.c b/xen_hyper.c
>> index 7c7d3e1..3d56516 100644
>> --- a/xen_hyper.c
>> +++ b/xen_hyper.c
>> @@ -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;
>> -- 
>> 1.8.4
>>
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xen.org
>> http://lists.xen.org/xen-devel

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

* Re: [Xen-devel] [PATCH 1/4] Make domian.is_hvm optional
  2014-01-04 21:13   ` [Xen-devel] " Konrad Rzeszutek Wilk
@ 2014-01-04 21:26     ` Don Slutz
  2014-01-04 21:26     ` Don Slutz
  1 sibling, 0 replies; 21+ messages in thread
From: Don Slutz @ 2014-01-04 21:26 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk
  Cc: Andrew Cooper, Daniel Kiper, kexec, Don Slutz, xen-devel, crash-utility

On 01/04/14 16:13, Konrad Rzeszutek Wilk wrote:
> On Sat, Jan 04, 2014 at 02:11:23PM -0500, Don Slutz wrote:
>
> You title should say 'domain'.
>
Will fix.
     -Don Slutz
>> ---
>>   xen_hyper.c | 3 ++-
>>   1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/xen_hyper.c b/xen_hyper.c
>> index 7c7d3e1..3d56516 100644
>> --- a/xen_hyper.c
>> +++ b/xen_hyper.c
>> @@ -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;
>> -- 
>> 1.8.4
>>
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xen.org
>> http://lists.xen.org/xen-devel


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

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

* Re: [Crash-utility] [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore
  2014-01-04 19:11 [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore Don Slutz
                   ` (7 preceding siblings ...)
  2014-01-04 19:11 ` Don Slutz
@ 2014-01-06 17:05 ` Dave Anderson
  2014-01-06 17:05 ` Dave Anderson
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 21+ messages in thread
From: Dave Anderson @ 2014-01-06 17:05 UTC (permalink / raw)
  To: Discussion list for crash utility usage, maintenance and development
  Cc: Andrew Cooper, kexec, xen-devel



----- Original Message -----
> 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.

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

> 
> 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
> Crash-utility@redhat.com
> https://www.redhat.com/mailman/listinfo/crash-utility
> 

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

* Re: [Crash-utility] [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore
  2014-01-04 19:11 [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore Don Slutz
                   ` (8 preceding siblings ...)
  2014-01-06 17:05 ` [Crash-utility] [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore Dave Anderson
@ 2014-01-06 17:05 ` Dave Anderson
  2014-01-06 19:45   ` Don Slutz
  2014-01-06 19:45   ` Don Slutz
  2014-01-08 20:16 ` Daniel Kiper
  2014-01-08 20:16 ` Daniel Kiper
  11 siblings, 2 replies; 21+ messages in thread
From: Dave Anderson @ 2014-01-06 17:05 UTC (permalink / raw)
  To: Discussion list for crash utility usage, maintenance and development
  Cc: Andrew Cooper, kexec, xen-devel



----- Original Message -----
> 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.

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

> 
> 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
> Crash-utility@redhat.com
> https://www.redhat.com/mailman/listinfo/crash-utility
> 

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

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

* Re: [Crash-utility] [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore
  2014-01-06 17:05 ` Dave Anderson
  2014-01-06 19:45   ` Don Slutz
@ 2014-01-06 19:45   ` Don Slutz
  1 sibling, 0 replies; 21+ messages in thread
From: Don Slutz @ 2014-01-06 19:45 UTC (permalink / raw)
  To: Dave Anderson, Discussion list for crash utility usage,
	maintenance and development
  Cc: Andrew Cooper, kexec, xen-devel

On 01/06/14 12:05, Dave Anderson wrote:
>
> ----- Original Message -----
>> 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.
> 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


>> 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
>> Crash-utility@redhat.com
>> https://www.redhat.com/mailman/listinfo/crash-utility
>>
> _______________________________________________
> kexec mailing list
> kexec@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/kexec

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

* Re: [Crash-utility] [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore
  2014-01-06 17:05 ` Dave Anderson
@ 2014-01-06 19:45   ` Don Slutz
  2014-01-06 20:28     ` Dave Anderson
  2014-01-06 20:28     ` Dave Anderson
  2014-01-06 19:45   ` Don Slutz
  1 sibling, 2 replies; 21+ messages in thread
From: Don Slutz @ 2014-01-06 19:45 UTC (permalink / raw)
  To: Dave Anderson, Discussion list for crash utility usage,
	maintenance and development
  Cc: Andrew Cooper, kexec, xen-devel

On 01/06/14 12:05, Dave Anderson wrote:
>
> ----- Original Message -----
>> 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.
> 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


>> 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
>> Crash-utility@redhat.com
>> https://www.redhat.com/mailman/listinfo/crash-utility
>>
> _______________________________________________
> kexec mailing list
> kexec@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/kexec


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

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

* Re: [Crash-utility] [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore
  2014-01-06 19:45   ` Don Slutz
@ 2014-01-06 20:28     ` Dave Anderson
  2014-01-06 20:28     ` Dave Anderson
  1 sibling, 0 replies; 21+ messages in thread
From: Dave Anderson @ 2014-01-06 20:28 UTC (permalink / raw)
  To: Don Slutz
  Cc: Andrew Cooper, xen-devel, kexec,
	Discussion list for crash utility usage,
	maintenance and development



----- Original Message -----
> On 01/06/14 12:05, Dave Anderson wrote:
> >
> > ----- Original Message -----
> >> 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.
> > 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

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

Thanks,
  Dave

> 
> 
> 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
> 
> 
> >> 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
> >> Crash-utility@redhat.com
> >> https://www.redhat.com/mailman/listinfo/crash-utility
> >>
> > _______________________________________________
> > kexec mailing list
> > kexec@lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/kexec
> 
> 

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

* Re: [Crash-utility] [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore
  2014-01-06 19:45   ` Don Slutz
  2014-01-06 20:28     ` Dave Anderson
@ 2014-01-06 20:28     ` Dave Anderson
  1 sibling, 0 replies; 21+ messages in thread
From: Dave Anderson @ 2014-01-06 20:28 UTC (permalink / raw)
  To: Don Slutz
  Cc: Andrew Cooper, xen-devel, kexec,
	Discussion list for crash utility usage,
	maintenance and development



----- Original Message -----
> On 01/06/14 12:05, Dave Anderson wrote:
> >
> > ----- Original Message -----
> >> 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.
> > 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

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

Thanks,
  Dave

> 
> 
> 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
> 
> 
> >> 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
> >> Crash-utility@redhat.com
> >> https://www.redhat.com/mailman/listinfo/crash-utility
> >>
> > _______________________________________________
> > kexec mailing list
> > kexec@lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/kexec
> 
> 

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

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

* Re: [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore
  2014-01-04 19:11 [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore Don Slutz
                   ` (10 preceding siblings ...)
  2014-01-08 20:16 ` Daniel Kiper
@ 2014-01-08 20:16 ` Daniel Kiper
  11 siblings, 0 replies; 21+ messages in thread
From: Daniel Kiper @ 2014-01-08 20:16 UTC (permalink / raw)
  To: Don Slutz; +Cc: Andrew Cooper, xen-devel, kexec, crash-utility

On Sat, Jan 04, 2014 at 02:11:22PM -0500, Don Slutz wrote:
> 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.

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.

Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Tested-by: Daniel Kiper <daniel.kiper@oracle.com>

Daniel

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

* Re: [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore
  2014-01-04 19:11 [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore Don Slutz
                   ` (9 preceding siblings ...)
  2014-01-06 17:05 ` Dave Anderson
@ 2014-01-08 20:16 ` Daniel Kiper
  2014-01-08 20:16 ` Daniel Kiper
  11 siblings, 0 replies; 21+ messages in thread
From: Daniel Kiper @ 2014-01-08 20:16 UTC (permalink / raw)
  To: Don Slutz; +Cc: Andrew Cooper, xen-devel, kexec, crash-utility

On Sat, Jan 04, 2014 at 02:11:22PM -0500, Don Slutz wrote:
> 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.

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.

Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Tested-by: Daniel Kiper <daniel.kiper@oracle.com>

Daniel

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

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

end of thread, other threads:[~2014-01-08 20:17 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-04 19:11 [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore Don Slutz
2014-01-04 19:11 ` [PATCH 1/4] Make domian.is_hvm optional Don Slutz
2014-01-04 21:13   ` [Xen-devel] " Konrad Rzeszutek Wilk
2014-01-04 21:26     ` Don Slutz
2014-01-04 21:26     ` Don Slutz
2014-01-04 21:13   ` Konrad Rzeszutek Wilk
2014-01-04 19:11 ` Don Slutz
2014-01-04 19:11 ` [PATCH 2/4] xen: Fix offset output to be decimal Don Slutz
2014-01-04 19:11 ` Don Slutz
2014-01-04 19:11 ` [PATCH 3/4] xen: set all domain_flags, not just the 1st Don Slutz
2014-01-04 19:11 ` Don Slutz
2014-01-04 19:11 ` [PATCH 4/4] Add basic domain.guest_type support Don Slutz
2014-01-04 19:11 ` Don Slutz
2014-01-06 17:05 ` [Crash-utility] [PATCH 0/4] Enable use of crash on xen 4.4.0 vmcore Dave Anderson
2014-01-06 17:05 ` Dave Anderson
2014-01-06 19:45   ` Don Slutz
2014-01-06 20:28     ` Dave Anderson
2014-01-06 20:28     ` Dave Anderson
2014-01-06 19:45   ` Don Slutz
2014-01-08 20:16 ` Daniel Kiper
2014-01-08 20:16 ` Daniel Kiper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.