Hi,
How can I map memory from the guest S2E VM into the virtual address space of the host process (an S2E plugin), similar to what xc_map_foreign_pages() allows in Xen? I see there are potentially a couple of different options:
exec.c::emu_get_ram_ptr() - There's a note in S2EExecutionState.cpp that says this shouldn't be used directly, because "mapping of IO memory can be modified"
exec.c::cpu_physical_memory_map() - You guys made some modifications to this function so it would work with S2E, but I don't see it actually being used anywhere in the S2E code. Does it work?
I suspect cpu_physical_memory_map() is what I'm looking for. Are there any dangers in its usage I should be aware of?
Thanks for any info,
Craig