当前位置:网站首页>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.
边栏推荐
- linux(centOs7)部署mysql(8.0.20)数据库
- 缺陷检测(图像处理部分)
- 英特尔 XDC 2022 精彩回顾:共建开放生态,释放“基建”潜能
- 数仓4.0(三)------数据仓库系统
- Jincang database KingbaseES V8 GIS data migration solution (3. Data migration based on ArcGIS platform to KES)
- 接口自动化测试框架postman tests常用方法
- Live playback including PPT download | Build Online Deep Learning based on Flink & DeepRec
- [Redis] Redis installation under Linux
- Tree search (bintree)
- CMS建站流程
猜你喜欢

source program in assembly language

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

Tree search (bintree)

Getting Started with Kubernetes Networking

【七夕如何根据情侣倾听的音乐进行薅羊毛】背景音乐是否会影响情侣对酒的选择

2022 EdgeX中国挑战赛8月3日即将盛大开幕

【MySQL系列】- LIKE查询 以%开头一定会让索引失效吗

第十一章 开关级建模

The use of pytorch: temperature prediction using neural networks

【Unity入门计划】2D游戏中遮挡问题的处理方法&伪透视
随机推荐
如何创建rpm包
原生js实现多选框全部选中和取消效果
CNI (Container Network Plugin)
Short domain name bypass and xss related knowledge
Greenplum数据库故障分析——版本升级后gpstart -a为何返回失败
Activity Recommendation | Kuaishou StreamLake Brand Launch Conference, witness together on August 10!
【TA-霜狼_may-《百人计划》】图形4.3 实时阴影介绍
迁移学习——Distant Domain Transfer Learning
亚马逊云科技携手中科创达为行业客户构建AIoT平台
[parameters of PyQT5 binding functions]
CMS建站流程
领域驱动设计——MDD
安装oracle11的时候为什么会报这个问题
跨域解决方案
如何发现一个有价值的 GameFi?
第十四天&postman
新唐NUC980使用记录:在用户应用中使用GPIO
基于OpenVINO工具套件简单实现YOLOv7预训练模型的部署
新来个技术总监,把DDD落地的那叫一个高级,服气
iNFTnews | What can NFTs bring to the sports industry and fans?
