* [Qemu-devel] Mapping Hugepage to Guest
@ 2012-07-18 22:41 Haines, Brent R
2012-07-19 3:03 ` Liu Sheng
0 siblings, 1 reply; 3+ messages in thread
From: Haines, Brent R @ 2012-07-18 22:41 UTC (permalink / raw)
To: qemu-devel@nongnu.org
[-- Attachment #1: Type: text/plain, Size: 266 bytes --]
Hello,
I have a process that allocates a number of hugepages in a /mnt/huge directory on the Linux host. I would like to map those same hugepages when starting the guest in the same /mnt/huge directory. Is there an existing way to do this?
Thanks,
Brent
[-- Attachment #2: Type: text/html, Size: 2173 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Mapping Hugepage to Guest
2012-07-18 22:41 [Qemu-devel] Mapping Hugepage to Guest Haines, Brent R
@ 2012-07-19 3:03 ` Liu Sheng
2012-07-19 15:20 ` Haines, Brent R
0 siblings, 1 reply; 3+ messages in thread
From: Liu Sheng @ 2012-07-19 3:03 UTC (permalink / raw)
To: Haines, Brent R; +Cc: qemu-devel
yes, try '-mem-path <your hugepage dir>'
On Wed, Jul 18, 2012 at 10:41:43PM +0000, Haines, Brent R wrote:
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Mapping Hugepage to Guest
2012-07-19 3:03 ` Liu Sheng
@ 2012-07-19 15:20 ` Haines, Brent R
0 siblings, 0 replies; 3+ messages in thread
From: Haines, Brent R @ 2012-07-19 15:20 UTC (permalink / raw)
To: Liu Sheng; +Cc: qemu-devel@nongnu.org
Thanks for the response. I should have said in the original post that the -mem-path and -mem-prealloc flags do not do what I need them to do. Using the -mem-path flag passes the hugepage to the guest but does not make the hugepage still available to the host. I want to be able to allocate hugepages on the host and then map those into the guest where both the host and guest can access the same memory/hugepage. So making a change on the host will make the same change on the guest. Or, as in my application's need, I run the host application which allocates and initiates memory structures, and I want those structures to be used by the application running in the guest.
-----Original Message-----
From: Liu Sheng [mailto:liusheng@linux.vnet.ibm.com]
Sent: Wednesday, July 18, 2012 8:04 PM
To: Haines, Brent R
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Mapping Hugepage to Guest
yes, try '-mem-path <your hugepage dir>'
On Wed, Jul 18, 2012 at 10:41:43PM +0000, Haines, Brent R wrote:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-07-19 15:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-18 22:41 [Qemu-devel] Mapping Hugepage to Guest Haines, Brent R
2012-07-19 3:03 ` Liu Sheng
2012-07-19 15:20 ` Haines, Brent R
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).