Skip to contentSkip to conversation

How to transfer data between guest and hypervisor?

DISCUSSION Дмитрий Головинов 1 participant 2 messages Feb 23, 2009 – Feb 25, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi! I need an opportunity to transfer some kind of a sched data between hypervisor and guest domain. Is there anything in Xen, that could match that?

Thanx for help.

Best regards,
Golovinov Dmitry

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Maybe you misunderstood. I need to transfer data structure not between domains(dom - to - dom transfer is described in Definitive Guide), but between domain and hypervisor kernel. These are not the same. There are a lot of difficulties on this way, may be these are solved. I thought, studying xm dmesg would help - but, obviously, i found nothing on my study, that can help me. I've tryed to research in hypercalls and found a note, talking bout passing pointers to hypervisor. So I wanna obtain a memory page in, for example, dom0, and pass via hypercall1() a pointer. And from Xen kernel, i wanna obtain it's virtual/physical address of that page (mapped to it's memory space), with which i could easilly access necesarry structure in it.

If someone could give me any idea, it would be great.

Thank you.
Dmitry Golovinov

Quoted 29 lines

You can transfer data between dom0 and domU (or domU to domU)  as you does between two independent physical machine. For example , the socket interface is a good pipe.
If performance is critical to your application, some XEN-feature mechanism , like grant-table,is a better idea.
I suggest to use the share memory function , some detail will be found in xencontrol.
Some project , such as Xway, Xenloop ,Xenaccess and Xensocket etc, have develop some convenient tools to use in userspace ,maybe you need to study them.
2009/2/23 Дмитрий Головинов <[email protected]>

Quoted 16 lines

Hi! I need an opportunity to transfer some kind of a sched data between hypervisor and guest domain. Is there anything in Xen, that could match that?

Thanx for help.

Best regards,
Golovinov Dmitry

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