xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* run time memory trap question
@ 2014-02-17 11:33 Andrii Tseglytskyi
  2014-02-17 12:02 ` Julien Grall
  0 siblings, 1 reply; 11+ messages in thread
From: Andrii Tseglytskyi @ 2014-02-17 11:33 UTC (permalink / raw)
  To: xen-devel

Hi,

Can anyone clarify - is it possible to make a run time memory trap in
Xen hypervisor?

To be more specific - I see the following function:
*int handle_mmio(mmio_info_t *info)*, which is called from *static
void do_trap_data_abort_guest(struct cpu_user_regs *regs, union hsr
hsr)*
Using these calls I can define memory region and create a trap for it.
But in current implementation I can do it only during compile time.
Is there any way to do similar in runtime - i.e. calculate memory
region value in code and add an entry to mmio_handlers[] ?
Is it a good idea - just to modify/extend existing code in
xen/arch/arm/io.c file to make it possible ?

regards,
Andrii

-- 

Andrii Tseglytskyi | Embedded Dev
GlobalLogic
www.globallogic.comxen/arch/arm/io.c

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-02-18 17:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-17 11:33 run time memory trap question Andrii Tseglytskyi
2014-02-17 12:02 ` Julien Grall
2014-02-17 14:06   ` Andrii Tseglytskyi
2014-02-17 14:16     ` Julien Grall
2014-02-17 15:01       ` Andrii Tseglytskyi
2014-02-17 15:02         ` Stefano Stabellini
2014-02-17 15:19         ` Julien Grall
2014-02-17 15:38           ` Andrii Tseglytskyi
2014-02-17 15:56             ` Julien Grall
2014-02-18 11:05             ` Ian Campbell
2014-02-18 17:52               ` Andrii Tseglytskyi

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).