All of lore.kernel.org
 help / color / mirror / Atom feed
* Callbacks for domU into dom0
@ 2007-10-31 16:46 Tomáš Kouba
  2007-10-31 19:11 ` Mats Petersson
  0 siblings, 1 reply; 2+ messages in thread
From: Tomáš Kouba @ 2007-10-31 16:46 UTC (permalink / raw)
  To: xen-devel

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?

Thank you very much,

-- 
Tomas Kouba

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

* Re: Callbacks for domU into dom0
  2007-10-31 16:46 Callbacks for domU into dom0 Tomáš Kouba
@ 2007-10-31 19:11 ` Mats Petersson
  0 siblings, 0 replies; 2+ messages in thread
From: Mats Petersson @ 2007-10-31 19:11 UTC (permalink / raw)
  To: xen-devel

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

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

end of thread, other threads:[~2007-10-31 19:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-31 16:46 Callbacks for domU into dom0 Tomáš Kouba
2007-10-31 19:11 ` Mats Petersson

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.