Il 16/12/2013 16:47, Igor Mammedov ha scritto: > memdev is introduced here: > http://lists.gnu.org/archive/html/qemu-devel/2013-11/msg02532.html > > as for mem-path & mem-prealloc, I was thinking about adding HugePageMem > backend > to handle hugepage specifics. mem-share could be a part of ShareMem backend > or something like this.
We need three backends, something like the following: - anonymous mmap (-object memory-ram,size=128M) - file mmap (-object memory-file,shared=on/off,size=128M,file=FILENAME), creates file if size property provided. - mkstemp + file mmap (-object memory-hugepage,size=128M,path=PATH) I don't think shared=on/off is useful in the third case, but it would be trivial to add. Paolo