diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-02-13 10:43:13 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-02-13 10:43:13 +0000 |
commit | cbd2de39520605f71f07f303ae592a816f6bbcb0 (patch) | |
tree | bdd3e5eccc5c5381bb5c992a3a2d614a66cd418c /tools/libxc/xg_private.h | |
parent | 5ffec49444facf629f9cb4eab0cefa4433428d6e (diff) | |
download | xen-cbd2de39520605f71f07f303ae592a816f6bbcb0.tar.gz xen-cbd2de39520605f71f07f303ae592a816f6bbcb0.tar.bz2 xen-cbd2de39520605f71f07f303ae592a816f6bbcb0.zip |
Tools: fix save/restore of 32-bit PV guests with 64-bit tools
by removing some obvious typos, handling CR3 folding and hvirt_start
based on guest word-size, and understanding 32-bit INVALID_MFN.
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Diffstat (limited to 'tools/libxc/xg_private.h')
-rw-r--r-- | tools/libxc/xg_private.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/libxc/xg_private.h b/tools/libxc/xg_private.h index 679c31896c..2ed3f55849 100644 --- a/tools/libxc/xg_private.h +++ b/tools/libxc/xg_private.h @@ -155,7 +155,9 @@ typedef l4_pgentry_64_t l4_pgentry_t; #define P2M_FL_ENTRIES (((p2m_size)+FPP-1)/FPP) /* Size in bytes of the pfn_to_mfn_frame_list */ -#define P2M_FL_SIZE ((P2M_FL_ENTRIES)*(guest_width)) +#define P2M_GUEST_FL_SIZE ((P2M_FL_ENTRIES) * (guest_width)) +#define P2M_TOOLS_FL_SIZE ((P2M_FL_ENTRIES) * \ + MAX((sizeof (xen_pfn_t)), guest_width)) /* Masks for PTE<->PFN conversions */ #define MADDR_BITS_X86 ((guest_width == 8) ? 52 : 44) |