xen: fix memory size calculation
authorJijiang Liu <jijiang.liu@intel.com>
Tue, 3 Jun 2014 13:00:15 +0000 (21:00 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 9 Jun 2014 15:50:04 +0000 (17:50 +0200)
commit28dbbd485fcd47738f978022927d3bd768b44256
treeb63690507283b15f33014b3d33f647f9f03ce2e3
parent6f0ce7b9cd490e1efd0b39cbc74e7881327eff77
xen: fix memory size calculation

The unit of allocated_size is MB, so the change below is made.
Otherwise, it will fail to free memory when available memory is not enough.

Signed-off-by: Jijiang Liu <jijiang.liu@intel.com>
Acked-by: Huawei Xie <huawei.xie@intel.com>
Tested-by: Heng Ding <hengx.ding@intel.com>
lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c