* [Qemu-devel] Running code from IO memory
@ 2006-01-28 0:14 G Portokalidis
2006-01-29 10:25 ` Paul Brook
0 siblings, 1 reply; 2+ messages in thread
From: G Portokalidis @ 2006-01-28 0:14 UTC (permalink / raw)
To: qemu-devel
I've been hacking Qemu for Argos, and i was wondering whether it is
possible to execute code from a virtual peripherals memory.
To be more explicit, i have coded a virtual peripheral that does
nothing, but register some physical memory for memory io. This
physical address is mapped into a process's address space. I would
like to place code to be executed into that memory space.
Can qemu's JIT handle such cases?
I point eip to the corresponding virtual address, but everything crashes.
Anyone?
Cheers,
Giorgos
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] Running code from IO memory
2006-01-28 0:14 [Qemu-devel] Running code from IO memory G Portokalidis
@ 2006-01-29 10:25 ` Paul Brook
0 siblings, 0 replies; 2+ messages in thread
From: Paul Brook @ 2006-01-29 10:25 UTC (permalink / raw)
To: qemu-devel
On Saturday 28 January 2006 00:14, G Portokalidis wrote:
> I've been hacking Qemu for Argos, and i was wondering whether it is
> possible to execute code from a virtual peripherals memory.
Short answer is no.
The basic problem is because qemu uses dynamic translation, code is read once
in a big block, then executed an arbitrary number of times.
You could maybe hack qemu to make execution from volatile memory work, but it
certainly doesn't work out the box.
Paul
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-29 10:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-28 0:14 [Qemu-devel] Running code from IO memory G Portokalidis
2006-01-29 10:25 ` Paul Brook
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).