[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Hypercall
On Wed, 2008-04-09 at 10:44 +0200, Carlo Bertoldi wrote: > Hi, > I'd like to do some operation every time an hypercall is issued in a > domU kernel. I started modifying > include/asm-i386/mach-xen/asm/hypercall.h but I don't think it's such a > great idea, so I think that, as a last chance, I'll have to substitute > all of the hypercall function call with some wrapper function of my own. > Can anyone tell me if there's a cleaner approach? It'll take some assembly. All hypercalls enter the VMM through the same trap handler in arch//entry.S (e.g. syscall_enter on x86_64). A good point to catch these entries would be somewhere shortly after the SAVE_ALL macro. Note that you'll have to carefully restore register arguments clobbered after return [depending on individual calling conventions]. Mail me if you get stuck with that. kind regards, Daniel -- Daniel Stodden LRR - Lehrstuhl fÃr Rechnertechnik und Rechnerorganisation Institut fÃr Informatik der TU MÃnchen D-85748 Garching http://www.lrr.in.tum.de/~stodden mailto:stodden@xxxxxxxxxx PGP Fingerprint: F5A4 1575 4C56 E26A 0B33 3D80 457E 82AE B0D8 735B _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |