From: Mats Petersson <mats@planetcatfish.com>
To: xen-devel@lists.xensource.com
Subject: Re: Callbacks for domU into dom0
Date: Wed, 31 Oct 2007 19:11:15 +0000 [thread overview]
Message-ID: <4728d2cf.03e9300a.4735.ffff97cc@mx.google.com> (raw)
In-Reply-To: <4728B183.2050102@jikos.cz>
At 16:46 31/10/2007, Tomá Kouba wrote:
>Hello,
>is there a way how to be informed (called back) in dom0,
>when a specific action is taken in domU?
>
>I would like to react on a system call being issued in domU.
>If this is impossible is there any other action in domU that I can
>hook my function on?
The Xen kernel doesn't know (or care) about Linux (or Windows) system
calls as such.
Some system calls will "do things" that the Xen kernel does care
about, such as update page tables, which will cause an entry into the
Xen kernel.
The only way for Xen to "know" about a system call would be if you
modify the system call itself to perform some sort of operation that
causes the Xen kernel to get involved with that. You could for
example fake a MSR read or write [by "fake" I mean to a unused MSR
number] operation inside the syscall , and then update the MSR read
or write function to detect your system call.
Does this help you?
--
Mats
>Thank you very much,
>
>--
>Tomas Kouba
>
>_______________________________________________
>Xen-devel mailing list
>Xen-devel@lists.xensource.com
>http://lists.xensource.com/xen-devel
prev parent reply other threads:[~2007-10-31 19:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-31 16:46 Callbacks for domU into dom0 Tomáš Kouba
2007-10-31 19:11 ` Mats Petersson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4728d2cf.03e9300a.4735.ffff97cc@mx.google.com \
--to=mats@planetcatfish.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.