* Hypercall
@ 2008-04-09 8:44 Carlo Bertoldi
2008-04-09 17:25 ` Hypercall Daniel Stodden
0 siblings, 1 reply; 3+ messages in thread
From: Carlo Bertoldi @ 2008-04-09 8:44 UTC (permalink / raw)
To: xen-devel
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
--
È molto più bello sapere qualcosa di tutto, che sapere tutto di una cosa.
Blaise Pascal
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Hypercall
2008-04-09 8:44 Hypercall Carlo Bertoldi
@ 2008-04-09 17:25 ` Daniel Stodden
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Stodden @ 2008-04-09 17:25 UTC (permalink / raw)
To: Carlo Bertoldi; +Cc: xen-devel
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@cs.tum.edu
PGP Fingerprint: F5A4 1575 4C56 E26A 0B33 3D80 457E 82AE B0D8 735B
^ permalink raw reply [flat|nested] 3+ messages in thread
* Hypercall
@ 2008-03-06 3:31 john bryant
0 siblings, 0 replies; 3+ messages in thread
From: john bryant @ 2008-03-06 3:31 UTC (permalink / raw)
To: xen-users@lists.xensource.com, xen-devel@lists.xensource.com
[-- Attachment #1.1: Type: text/plain, Size: 82 bytes --]
I need to implement Hypercall in Xen. Is there any pointers to start with.
-John
[-- Attachment #1.2: Type: text/html, Size: 92 bytes --]
[-- Attachment #2: Type: text/plain, Size: 137 bytes --]
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-04-09 17:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-09 8:44 Hypercall Carlo Bertoldi
2008-04-09 17:25 ` Hypercall Daniel Stodden
-- strict thread matches above, loose matches on Subject: below --
2008-03-06 3:31 Hypercall john bryant
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.