Fix restore crash with certain guest memory sizes
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 14 Aug 2008 09:18:08 +0000 (10:18 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 14 Aug 2008 09:18:08 +0000 (10:18 +0100)
commitf6c2c609f7ca5109c3871798ebb9966d0b08cdc0
tree39f1d1518760288909e4328af9b8ec616f4e96dc
parent32b397b0b4b18f4a723b730e94777af129b0d807
Fix restore crash with certain guest memory sizes

This fixes a crash when restoring guests with certain memory sizes (eg
223MB).  The ROUNDUP in the call to memcpy, was the main offender, but
I didn't care for the inplace resizing of the p2m entries either.

Signed-off-by: Bruce Rogers <brogers@novell.com>
tools/libxc/xc_domain_restore.c