All, Attached is a simple patch to fix core dumps for 32-bit guests running on 32-bit HV/dom0. The problem ends up being a cast in the libxc dumping code; basically in xc_core_x86.c, p2m_size is a ulong, and in the case of a 32-bit FV guest 0xFFFFF is returned from xc_memory_op() in nr_gpfns. However, 1 is then added. This means that when we are doing the map->size calculations, we have 0x100000 << 12, which yields 0, which is then stored in the uint64 map->size. The simple fix is to cast p2m_size up to 64-bits first, then do the shift, then store it into map->size. The patch is against xen-3.1, but should apply to current xen-unstable. Signed-off-by: Chris Lalancette