当前位置:网站首页>hypervisor相关的知识点
hypervisor相关的知识点
2022-08-05 01:49:00 【追梦-北极星】
1、QNX网站
2、guest os之间的通信方式
Memory sharing
Guests in a hypervisor system can share memory regions through which they can pass data to each other.
In a QNX Hypervisor system, client applications running in guests create and manage shared memory, and can use shared memory regions to share data. If data needs to be shared between a guest or guests and the hypervisor host domain, applications running in the hypervisor host domain can also create shared memory regions, or attach to regions created by guests.
Assuming that all sharing is between guests, and not with the hypervisor host, to set up memory sharing in your hypervisor system:
- Edit the qvm configuration files (*.qvmconf) for the VMs hosting the guests that will share memory to enable shared memory services (see “Configuring the VMs” below).
- Create a client application that runs in the guests and uses shared memory services, and run it on multiple guests.
The hypervisor-shmem-examples-march31.tgz archive available in the QNX Hypervisor package includes source code for example memory sharing programs: ghstest.c for a QNX guest, and for the hypervisor host.
The binaries for a QNX Neutrino OS 7.0 guest are included in the hypervisor files. If you want to try this shared memory program with a QNX Neutrino OS 6.6 guest, you can download and unpack the example program binary files (see “Additional files for QNX Neutrino OS 6.6 guests” in the “Assembling a Hypervisor System and Its Components” chapter).
How shared memory works
To use shared memory, a client (an application running in a guest or in the hypervisor host) needs:
- a mapping of the shared memory region
- a hardware interrupt it can use to signal other users of the shared memory regions that this region has been updated
The hypervisor includes the vdev-shmem vdev, which implements setting up the shared memory mapping and the interrupts you need to use shared memory. This vdev provides additional functionality to simplify using shared memory. These include:
- shared memory region names (a hypervisor system may include multiple named shared regions)
- selective signaling (e.g., signal Guest 0, but not Guest 3)
- signal knowledge (the ability to know which guests have been signaled)
The figure below illustrates memory sharing between two guests. Guest 0 attempts to attach to a 128 MB shared memory area first. Since no such area exists at the specified location, the attempt to attach creates the area and allows the guest to attach to it. Guest 1 can simply attach to the same name to share data memory with Guest 0.
Figure 1. A 128 MB memory allocation shared by Guest 0 and Guest 1
For more information about shared memory regions, see “Factory and control pages” below.
All the connections to a shared memory region are peers. That is, there is no distinction between the guest that creates a shared memory region and the guest that attaches to it. Simply, the first attempt to attach to a shared memory region creates the region. As far as the guest is concerned, it simply attaches to the region.
This design avoids ordering problems where the system designer would have to make sure that one guest always comes up and creates the shared memory region before another guest tries to attach to it.
边栏推荐
- 快速批量修改VOC格式数据集标签的文件名,即快速批量修改.xml文件名
- 开篇-开启全新的.NET现代应用开发体验
- 超越YOLO5-Face | YOLO-FaceV2正式开源Trick+学术点拉满
- 4. PCIe interface timing
- MySQL3
- Exploding the circle of friends, Alibaba produced billion-level concurrent design quick notes are too fragrant
- 第09章 性能分析工具的使用【2.索引及调优篇】【MySQL高级】
- [Machine Learning] 21-day Challenge Study Notes (2)
- 蓝牙Mesh系统开发五 ble mesh设备增加与移除
- Transfer Learning - Joint Geometrical and Statistical Alignment for Visual Domain Adaptation
猜你喜欢
[Unity Entry Plan] Handling of Occlusion Problems in 2D Games & Pseudo Perspective
深度学习:使用nanodet训练自己制作的数据集并测试模型,通俗易懂,适合小白
习题:选择结构(一)
直播回放含 PPT 下载|基于 Flink & DeepRec 构建 Online Deep Learning
Transfer Learning - Distant Domain Transfer Learning
“嘀哩哩,等灯等灯”,工厂安全生产的提示音
[Redis] Redis installation under Linux
Method Overriding and Object Class
Transfer Learning - Joint Geometrical and Statistical Alignment for Visual Domain Adaptation
Utilities
随机推荐
[How to smash wool according to the music the couple listens to during the Qixi Festival] Does the background music affect the couple's choice of wine?
优化Feed流遭遇拦路虎,是谁帮百度打破了“内存墙”?
【Word】Word公式导出PDF后出现井号括号#()错误
领域驱动设计——MDD
SAP ERP和ORACLE ERP的区别是哪些?
Lattice PCIe Learning 1
“配置”是把双刃剑,带你了解各种配置方法
CMS website construction process
执掌图表
手把手基于YOLOv5定制实现FacePose之《YOLO结构解读、YOLO数据格式转换、YOLO过程修改》
习题:选择结构(一)
多线程涉及的其它知识(死锁(等待唤醒机制),内存可见性问题以及定时器)
Live playback including PPT download | Build Online Deep Learning based on Flink & DeepRec
记录谷歌gn编译时碰到的一个错误“I could not find a “.gn“ file ...”
第十一章 开关级建模
蓝牙Mesh系统开发五 ble mesh设备增加与移除
一文看懂推荐系统:召回06:双塔模型——模型结构、训练方法,召回模型是后期融合特征,排序模型是前期融合特征
linux(centOs7)部署mysql(8.0.20)数据库
Why is this problem reported when installing oracle11
【七夕如何根据情侣倾听的音乐进行薅羊毛】背景音乐是否会影响情侣对酒的选择