[Qemu-devel] [PATCH v1] vhost-user: fix not send all hugepage files to vhost-user

2014-12-16 Thread haifeng.lin
From: linhaifeng If we create VM with two or more numa nodes qemu will create two or more hugepage files but qemu only send one hugepage file fd to vhost-user when VM's memory size is 2G and with two numa nodes. Signed-off-by: linhaifeng --- hw/virtio/vhost-user.c | 78 +++

[Qemu-devel] [PATCH] fix the memory leak for share hugepage

2014-10-17 Thread haifeng.lin
From: linhaifeng The VM start with share hugepage should close the hugefile fd when exit.Because the hugepage fd may be send to other process e.g vhost-user If qemu not close the fd the other process can not free the hugepage otherwise exit process,this is ugly,so qemu should close all shared fd