当前位置:网站首页>[QNX Hypervisor 2.2用户手册]6.2.3 Guest与外部之间通信

[QNX Hypervisor 2.2用户手册]6.2.3 Guest与外部之间通信

2022-06-30 12:03:00 高桐@BILL

本节描述了Guest通过Hypervisor Host中的网络驱动与外部通信的配置。

下图为我们展示了guest-to-world的通信使用了Guest中的virtio-net虚拟设备和Hypervisor Host中的devnp-vdevpeer-net.so驱动以及在Host中作为桥梁的以太网驱动。

 一、配置virtio-net vdev

在托管Guest的VM的配置中,配置virtio-net虚拟设备,以建立与devnp-vdevpeer-net.so驱动的点对点通信。以ARM开发板上的QNX Guest为例:

system qnx71-arm-guest
...
# The loc and intr gic options are for ARM only. The guest will see the
# virtio-net vdev as a memory-mapped I/O device at the specified location.

vdev virtio-net
	loc 0x1c0c0000
	intr gic:40
	mac aa:aa:aa:aa:aa:aa
	name p2p
	peer /dev/vdevpeers/vp0

 这个很像“Guest-to-host”中的 virtio-net虚拟设备的配置。

二、使能Host中的服务

在Host中,你必须启动

原网站

版权声明
本文为[高桐@BILL]所创,转载请带上原文链接,感谢
https://bill-huang.blog.csdn.net/article/details/125532977