power: vm communication channels in guest
authorAlan Carew <alan.carew@intel.com>
Tue, 25 Nov 2014 16:18:07 +0000 (16:18 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 26 Nov 2014 16:27:03 +0000 (17:27 +0100)
commitcd0d5547e873c06386231d6fdae381d5c4f9f9bd
treef5764ebf19d1b77e76047d5fe0678e258d0f4b97
parentf5e5c3347ae3eab86b4e0bd0cf269ef577bf5f92
power: vm communication channels in guest

Allows for the opening of Virtio-Serial devices on a VM, where a DPDK
application can send packets to the host based monitor. The packet formatted is
specified in channel_commands.h
Each device appears as a serial device in path
/dev/virtio-ports/virtio.serial.port.<agent_type>.<lcore_num> where each lcore
in a DPDK application has exclusive to a device/channel.
Each channel is opened in non-blocking mode, after a successful open a test
packet is send to the host to ensure the host side is monitoring.

Signed-off-by: Alan Carew <alan.carew@intel.com>
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
lib/librte_power/guest_channel.c [new file with mode: 0644]
lib/librte_power/guest_channel.h [new file with mode: 0644]