当前位置:网站首页>Hypervisor related knowledge points
Hypervisor related knowledge points
2022-08-05 01:53:00 【Chasing Dreams - Polaris】
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.
边栏推荐
猜你喜欢
![[GYCTF2020]EasyThinking](/img/40/973411c69d1e4766d22f6a4a7c7c01.png)
[GYCTF2020]EasyThinking

IJCAI2022 | DictBert:采用对比学习的字典描述知识增强的预训练语言模型

测试工作这么难找吗?今年32,失业2个月,大龄测试工程师接下来该拿什么养家?

高数_复习_第1章:函数、极限、连续

软件测试技术之最有效的七大性能测试技术

英特尔 XDC 2022 精彩回顾:共建开放生态,释放“基建”潜能

Activity Recommendation | Kuaishou StreamLake Brand Launch Conference, witness together on August 10!

迅睿cms网站搬迁换了服务器后网站不能正常显示

自定义线程池

LPQ(局部相位量化)学习笔记
随机推荐
MySQL3
迁移学习——Joint Geometrical and Statistical Alignment for Visual Domain Adaptation
LPQ(局部相位量化)学习笔记
【TA-霜狼_may-《百人计划》】图形4.3 实时阴影介绍
LPQ (local phase quantization) study notes
如何发现一个有价值的 GameFi?
Methods commonly used interface automation test framework postman tests
A new technical director, who calls DDD a senior, is convinced
JZ搜索引擎solr研究-从数据库创建索引
蓝牙Mesh系统开发五 ble mesh设备增加与移除
Greenplum数据库故障分析——能对数据库base文件夹进行软连接嘛?
如何基于OpenVINO POT工具简单实现对模型的量化压缩
数仓4.0(三)------数据仓库系统
Chapter 09 Use of Performance Analysis Tools [2. Index and Tuning] [MySQL Advanced]
记录谷歌gn编译时碰到的一个错误“I could not find a “.gn“ file ...”
KingbaseES V8 GIS数据迁移方案(2. Kingbase GIS能力介绍)
Xunrui cms website cannot be displayed normally after relocation and server change
为什么他们选择和AI恋爱?
[Redis] Redis installation under Linux
hypervisor相关的知识点
