>> I'm making a patch to watch the security of DomU. >> i've done a patch that print to the xm dmesg the result of some interception >> of SystemCall and Hypercall.
>> with "printk". >> I want to send some data outside Xen in real-time, to a device or any port. >> Which is the best way to send data >> from the hypervision to a deamon running on Dom0?
>There are a number of programs in the tools/ directory which >communicate directly with Xen. It generally involves: >* Xen setting up a page to write data into. A ring structure with >producer/consumer pointers is pretty standard
>* A way for dom0 to find out the page and map it >* An event channel to wake the guest program up when there's data in the ring. >You can look at tools/xentrace.c and xen/common/trace.c for an example.
I've looked to the files and the "definitive" standard guide to the xen Hypervision, and i'm a bit confused.
The standard way to exchange data makes a device_channel from domX to domY. so we have a page in the shared memory.
but I've to send messages from xend to a daemon running on the same machine (dom0). maybe i've to start step by step, how can i set up the ring?
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|