Hypercall
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?
Thank you,
Carlo
Signature · 3 lines
È molto più bello sapere qualcosa di tutto, che sapere tutto di una cosa. Blaise Pascal
Quoted 7 lines · Carlo Bertoldi
Hi,
I'd like to do some operation every time an hypercall is issued in a
domU kernel. I started modifyinginclude/asm-i386/mach-xen/asm/hypercall.hbut 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
Signature · 5 lines
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:[email protected] PGP Fingerprint: F5A4 1575 4C56 E26A 0B33 3D80 457E 82AE B0D8 735B