qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 1/7] Add -mem-share option


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v3 1/7] Add -mem-share option
Date: Tue, 17 Dec 2013 12:11:58 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130923 Thunderbird/17.0.9

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]