search for: wujiamin_tyut

Displaying 6 results from an estimated 6 matches for "wujiamin_tyut".

2008 Jul 10
2
question about mapping memory from Dom0 to domU
Hi: I wanna write code about sharing memory between dom0 and domU, and I decide to use void *xc_map_foreign_range(int xc_handle, unint32_t dom, int size, int port, unsigned long mfn) (this is a function in xenctl.h). My question is : If I wanna map a range of memory in dom0 to domU, how can I get the value of mfn? and I do not know the port here. Can anybody help me ? Thanks .
2008 Jul 11
1
Question about using xenctl
Hi: I wanna domU to map dom0''s page, so that these two domain can receive/send data between them in the future. But when I run my code , it told me that "Could not open grant table interface(22=invalid argument)". Can anybody know what the problem is ? Thanks . Danius Wu. ====== The Result of running my codes: [root@vm1 program]# gcc -g -Wall
2008 Jun 23
0
Help! How to use event channel and Shared Memory in Xen!
Hi: I am now using shared memory( through xenstore) and event channel to communicate and send/receive data between Dom0 and DomU in my work. Though I read the Xen Developer''s Interface Manual so many times, I still do not know how to write the code. Can anybody show me the sample code or teach how to write it? Thanks a lot!
2008 Jun 24
1
How to mask an event channel?
In <Xen In seterface Manual>, chapter 5 Event Channels, they say that:"Event Notifications can be masked by setting a flag; this is equivalent to disabling interrupts and can be used to ensure atomicity of certain operation in the guest kernel". My question is : I know that we can use ''xc_evtchn_unmask(xcehandle, port)'' to unmask an event channel , but I can not
2008 Jun 26
1
Could anybody send me some code samples about event channel and shared memory in C language?
Hi, Could anybody send me some code samples about how to use event channel (Dom0 and DomU, xenstore) and shared memory(grant table)? thanks a lot. Danius ========================================================================= _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com
2008 Jul 11
1
Question about Using Grant Table
Hi: There is a code sample in <The Definite Guide to the Xen Hypervisor>, chapter 4, "Using Grant Tables". The code sample is as following: #include <public/xen.h> extern void * shared_page; extern grant_entry_t * grant_table; void offer_page() { uint16_t flags; /* create the grant table*/ gnttab_setup_table_t setup_op;