* [PATCH]xen:fix an issue about memory size caculation in Dom0 driver
@ 2014-06-03 13:00 Jijiang Liu
[not found] ` <1401800415-6840-1-git-send-email-jijiang.liu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Jijiang Liu @ 2014-06-03 13:00 UTC (permalink / raw)
To: dev-VfR2kkLFssw
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-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Acked-by: Huawei Xie <huawei.xie-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Tested-by: Heng Ding <hengx.ding-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c b/lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c
index a91c7ec..0f87905 100644
--- a/lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c
+++ b/lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c
@@ -447,7 +447,7 @@ dom0_memory_reserve(uint32_t rsv_size)
return -ENOMEM;
}
- allocated_size += DOM0_MEMBLOCK_SIZE;
+ allocated_size += SIZE_PER_BLOCK;
size = DOM0_MEMBLOCK_SIZE;
vaddr = vstart;
--
1.7.7.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH]xen:fix an issue about memory size caculation in Dom0 driver
[not found] ` <1401800415-6840-1-git-send-email-jijiang.liu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
@ 2014-06-09 15:55 ` Thomas Monjalon
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2014-06-09 15:55 UTC (permalink / raw)
To: Jijiang Liu; +Cc: dev-VfR2kkLFssw
2014-06-03 21:00, Jijiang Liu:
> 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-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> Acked-by: Huawei Xie <huawei.xie-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> Tested-by: Heng Ding <hengx.ding-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Applied for version 1.7.0.
Thanks
--
Thomas
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-09 15:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-03 13:00 [PATCH]xen:fix an issue about memory size caculation in Dom0 driver Jijiang Liu
[not found] ` <1401800415-6840-1-git-send-email-jijiang.liu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2014-06-09 15:55 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).