* [dpdk-dev] ivshmem mmap to specific address
@ 2015-12-09 6:52 Eli Britstein
2015-12-09 10:38 ` Burakov, Anatoly
0 siblings, 1 reply; 2+ messages in thread
From: Eli Britstein @ 2015-12-09 6:52 UTC (permalink / raw)
To: dev
Hello,
In librte_eal, in eal_ivshmem.c, in function map_all_segments, there is mapping of segments from the metadata to the same virtual address as written in the metadata.
Is there a method to guarantee that this mapping won't fail, even for different processes, that might have large code or constructors running even before main?
Thanks,
Eli
-------------------------------------------------------------------------------------------------------------------------------------------------
This email and any files transmitted and/or attachments with it are confidential and proprietary information of
Toga Networks Ltd., and intended solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager. This message contains confidential
information of Toga Networks Ltd., and is intended only for the individual named. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately
by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not
the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on
the contents of this information is strictly prohibited.
------------------------------------------------------------------------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] ivshmem mmap to specific address
2015-12-09 6:52 [dpdk-dev] ivshmem mmap to specific address Eli Britstein
@ 2015-12-09 10:38 ` Burakov, Anatoly
0 siblings, 0 replies; 2+ messages in thread
From: Burakov, Anatoly @ 2015-12-09 10:38 UTC (permalink / raw)
To: Eli Britstein, dev
Hi Eli
> Is there a method to guarantee that this mapping won't fail, even for
> different processes, that might have large code or constructors running even
> before main?
I'm afraid there is none. That's the nature of the beast. The best you can do is map stuff into a different address range using --base-virtaddr flag in the primary process and hope that this time your "large code or constructors running before main" won't tread into that virtual address space. But even that is not a guarantee by any means.
Thanks,
Anatoly
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-12-09 10:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-09 6:52 [dpdk-dev] ivshmem mmap to specific address Eli Britstein
2015-12-09 10:38 ` Burakov, Anatoly
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).