From: Don Slutz <dslutz@verizon.com>
To: crash-utility@redhat.com
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
Daniel Kiper <daniel.kiper@oracle.com>,
kexec@lists.infradead.org, Don Slutz <dslutz@verizon.com>,
xen-devel@lists.xen.org
Subject: [PATCH 4/4] Add basic domain.guest_type support.
Date: Sat, 4 Jan 2014 14:11:26 -0500 [thread overview]
Message-ID: <1388862686-1832-5-git-send-email-dslutz@verizon.com> (raw)
In-Reply-To: <1388862686-1832-1-git-send-email-dslutz@verizon.com>
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
next prev parent reply other threads:[~2014-01-04 19:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
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 19:11 ` [PATCH 2/4] xen: Fix offset output to be decimal 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 [this message]
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 19:45 ` Don Slutz
2014-01-06 20:28 ` Dave Anderson
2014-01-08 20:16 ` Daniel Kiper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1388862686-1832-5-git-send-email-dslutz@verizon.com \
--to=dslutz@verizon.com \
--cc=andrew.cooper3@citrix.com \
--cc=crash-utility@redhat.com \
--cc=daniel.kiper@oracle.com \
--cc=kexec@lists.infradead.org \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox