Skip to contentSkip to conversation

system calls

DISCUSSION jaikumar Ganesh 2 participants 2 messages Nov 15, 2005

lore
Share & tools
lore
#0 lore raw

Hi
I am pretty new to Xen and so any help would be appreciated.
Say a user level process make a "write" system call on a VM running on
domain 1. Can anyone tell me the control flow (with the respect to the exact functions that will called in Xen) to make this sytem call work?
Thanks
Jaikumar

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 4 lines

I am pretty new to Xen and so any help would be appreciated.
Say a user level process make a "write" system call on a VM running on
domain 1. Can anyone tell me the control flow (with the respect to the exact functions that will called in Xen) to make this sytem call work?

The guest is allowed to install its own trap handler, so the write() system call invokes the normal syscall handler as in normal Linux.

The difference is only at the block device layer: instead of talking directly to a disk, the domU will queue IO requests in shared memory, which are then handled by the backend driver (usually in dom0).

There are no calls within Xen required to make write() itself work. The block device driver will use grant tables and event channel calls in order to transfer the data.

Cheers,
Mark