* [Qemu-devel] Integrating a Memory Simulator
@ 2016-02-22 0:26 Hao Bai
2016-02-23 12:15 ` KONRAD Frederic
0 siblings, 1 reply; 2+ messages in thread
From: Hao Bai @ 2016-02-22 0:26 UTC (permalink / raw)
To: qemu-devel, qemu-discuss
[-- Attachment #1: Type: text/plain, Size: 437 bytes --]
Hi All,
I was trying to integrate the DRAMSim2 memory simulator [1] into QEMU.
Basically I wanted to modify the current memory interface of QEMU so that
all memory accesses will be directed to DRAMSim2. Can anyone give me
hints/comments/thoughts on how to do this? I am targeting x86-64
architecture in user mode.
[1] Repository: https://github.com/dramninjasUMD/DRAMSim2
Paper: https://www.ece.umd.edu/~blj/papers/cal10-1.pdf
Cheers
[-- Attachment #2: Type: text/html, Size: 668 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] Integrating a Memory Simulator
2016-02-22 0:26 [Qemu-devel] Integrating a Memory Simulator Hao Bai
@ 2016-02-23 12:15 ` KONRAD Frederic
0 siblings, 0 replies; 2+ messages in thread
From: KONRAD Frederic @ 2016-02-23 12:15 UTC (permalink / raw)
To: Hao Bai; +Cc: qemu-devel, qemu-discuss
Hi,
Why do you target the user mode for that?
I think it might be easier with the softmmu.
But depending on what you want to do it won't be so easy.
I don't think there are any transaction to read the code basically the
RAM MemoryRegion works with pointer.
You can create a MemoryRegion which will just create a transaction and
passes that to your model but you won't
be able to execute code from it. So you would need to modify that.
But at the end you won't have the same access like in the real HW
because cache are not modelled in QEMU and
it will be really slow :).
Fred
Le 22/02/2016 01:26, Hao Bai a écrit :
> Hi All,
>
> I was trying to integrate the DRAMSim2 memory simulator [1] into QEMU.
> Basically I wanted to modify the current memory interface of QEMU so
> that all memory accesses will be directed to DRAMSim2. Can anyone give
> me hints/comments/thoughts on how to do this? I am targeting x86-64
> architecture in user mode.
>
> [1] Repository: https://github.com/dramninjasUMD/DRAMSim2
> Paper: https://www.ece.umd.edu/~blj/papers/cal10-1.pdf
> <https://www.ece.umd.edu/%7Eblj/papers/cal10-1.pdf>
>
> Cheers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-23 12:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-22 0:26 [Qemu-devel] Integrating a Memory Simulator Hao Bai
2016-02-23 12:15 ` KONRAD Frederic
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).