当前位置:网站首页>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.
边栏推荐
- 方法重写与Object类
- 2021年11月网络规划设计师上午题知识点(上)
- PHP Skills Assessment
- 深度学习:使用nanodet训练自己制作的数据集并测试模型,通俗易懂,适合小白
- 第十一章 开关级建模
- LiveVideoStackCon 2022 Shanghai Station opens tomorrow!
- Methods commonly used interface automation test framework postman tests
- 亚马逊云科技 + 英特尔 + 中科创达为行业客户构建 AIoT 平台
- Activity Recommendation | Kuaishou StreamLake Brand Launch Conference, witness together on August 10!
- 2022 EdgeX中国挑战赛8月3日即将盛大开幕
猜你喜欢
JWT简单介绍
Transfer Learning - Distant Domain Transfer Learning
Introduction to JVM class loading
新来个技术总监,把DDD落地的那叫一个高级,服气
[Unity Entry Plan] Handling of Occlusion Problems in 2D Games & Pseudo Perspective
自定义线程池
[GYCTF2020]EasyThinking
缺陷检测(图像处理部分)
Log an error encountered when compiling google gn "I could not find a ".gn" file ..."
2022 EdgeX中国挑战赛8月3日即将盛大开幕
随机推荐
Utilities 2021年11月网络规划设计师上午题知识点(上)
如何创建rpm包
Is DDOS attack really unsolvable?Do not!
AI+小核酸药物|Eleven完成2200万美元种子轮融资
[GYCTF2020]EasyThinking
安装oracle11的时候为什么会报这个问题
Interview summary: Why do interviewers in large factories always ask about the underlying principles of Framework?
GCC: paths to header and library files
配置类总结
MySQL3
1349. Maximum number of students taking the exam Status Compression
JZ搜索引擎solr研究-从数据库创建索引
pytorch的使用:使用神经网络进行气温预测
第十四天&postman
缺陷检测(图像处理部分)
详细全面的postman接口测试实战教程
Opencv - video frame skipping processing
If capturable=False, state_steps should not be CUDA tensors
Residential water problems