aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_core.h
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-08-30 14:58:40 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-08-30 14:58:40 +0100
commit0e0204500eb2bb9499ca6ff0a60ccf7e3612c917 (patch)
treee4a9b4ccfd06b44a1ae9d1e91aedf9ff5eb266c1 /tools/libxc/xc_core.h
parentc5836257128829a52ee816d81b7b2c9cda6a95b9 (diff)
downloadxen-0e0204500eb2bb9499ca6ff0a60ccf7e3612c917.tar.gz
xen-0e0204500eb2bb9499ca6ff0a60ccf7e3612c917.tar.bz2
xen-0e0204500eb2bb9499ca6ff0a60ccf7e3612c917.zip
Optimize xc_core.c implementation.
Optimize out unnecessary map/unmap foreign domain page by moving p2m/pfn talbe after pages array. This patch doesn't change the xm dump-core format. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Diffstat (limited to 'tools/libxc/xc_core.h')
-rw-r--r--tools/libxc/xc_core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/libxc/xc_core.h b/tools/libxc/xc_core.h
index 90d333a05a..278be895dd 100644
--- a/tools/libxc/xc_core.h
+++ b/tools/libxc/xc_core.h
@@ -107,6 +107,8 @@ struct xen_dumpcore_elfnote_format_version {
struct xen_dumpcore_elfnote_format_version_desc format_version;
};
+#define XC_CORE_INVALID_PFN (~(uint64_t)0)
+#define XC_CORE_INVALID_GMFN (~(uint64_t)0)
struct xen_dumpcore_p2m {
uint64_t pfn;
uint64_t gmfn;