Skip to contentSkip to conversation

DomU to Dom0 Communication in Xen HVM?

DISCUSSION Larry White 2 participants 2 messages Jul 18, 2012

lore
Share & tools
lore
#0 lore raw

I am new to Xen and want to provide simple communication between my DomU and Dom0 environments. I just need to be able to pass a few bytes of information back and forth between DomU and Dom0 while using some form of event management to know when an update occurs so I can act on it. At first, it appeared that using XenBus and XenStore might be the right solution for this. However, after looking over the documentation, it seems that XenBus and XenStore should only be used in a PVM Xen configuration, not a HVM model like mine. Is this true?

What would be the best way to accomplish this? Is there any sample code which demonstrates this for a HVM Xen environment?

Any information regarding this would be greatly apprecated.

Larry

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

#1 lore raw
Quoted 8 lines · Larry White

I am new to Xen and want to provide simple communication between my DomU and Dom0 environments. I just need to be able to pass a few bytes of information back and forth between DomU and Dom0 while using some form of event management to know when an update occurs so I can act on it. At first, it appeared that using XenBus and XenStore might be the right solution for this. However, after looking over the documentation, it seems that XenBus and XenStore should only be used in a PVM Xen configuration, not a HVM model like mine. Is this true?

It can be done in HVM.

Quoted 5 lines

What would be the best way to accomplish this? Is there any sample code which demonstrates this for a HVM Xen environment?

libvchan is your best bet.

Quoted 16 lines

Any information regarding this would be greatly apprecated.

Larry

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