devnp-vdevpeer-net.so

io-pkt-* driver that provides the hypervisor host with a network interface to connect to a guest's virtio-net vdev.

Note: The devnp-vdevpeer-net.so driver is not a QNX hypervisor component. It is a QNX SDP system component. It is described here for the convenience of hypervisor users.

Syntax:

io-pkt-v6-hc -d vdevpeer-net [peer=path,option[,option...]
	     [,peer=path,option,[,option ...] ...]]

Runs on:

QNX Neutrino

Options:

peer=path
Path to connection ID (coid) to communicate over
mac=XXXXXXXXXXXX
MAC address of this peer
name=peername
Prefix to the name of this peer; default is vp
bind=path
Path to the other node; equals the other peer node's peer option
legacy
Specify to indicate that the peer isn't VirtIO 1.0 compliant; default is that the peer is VirtIO 1.0 compliant

Description:

The devnp-vdevpeer-net.so driver enables an io-pkt-* networking manager running in the host to communicate with virtual network devices configured for guests. It is used for peer-to-peer communications between the hypervisor host and guests, and can be used to facilitate communication between guests and the outside world.

To use the devnp-vdevpeer-net.so driver to set up peer-to-peer communication between nodes in the hypervisor system and with the outside world:

  1. In the hypervisor host, start io-pkt-*, specifying the devnp-vdevpeer-net.so driver (e.g., io-pkt-v6-hc -d vdevpeer), and using the driver options to configure the node in the hypervisor host: the connection path, the MAC address, the path to the node in the guest, and, optionally, a name for the node. For example:

    io-pkt-v6-hc -d vdevpeer-net \
    	peer=/dev/qvm/vt1,bind=/pkt/vp0,mac=a0b0c0d0e0f0
    ifconfig vp0 192.0.2.1

    where /dev/qvm/vt1 is the path to connection ID, /pkt/vp0 is the path to the other peer node, a0b0c0d0e0f0 is this peer node's MAC address, vp0 is this peer node, and 192.0.2.1 is its IP address.

  2. In the qvm configuration file for the VM that will host the guest, configure the virtio-net vdev (see vdev virtio-net in the Virtual Device Reference chapter).

For more information about setting up peer-to-peer communications, see Networking in the “Using a QNX Hypervisor System” chapter.