当前位置:网站首页>[QNX Hypervisor 2.2用户手册]6.3.1 工厂页和控制页
[QNX Hypervisor 2.2用户手册]6.3.1 工厂页和控制页
2022-07-04 18:32:00 【高桐@BILL】
QNX Hypervisor的共享内存通过使用工厂页和控制页(Factory pages and Control Pages)实现。
工厂和控制页保存着shmem虚拟设备的虚拟机寄存器(参考“Virtual registers (guest_shm.h)”)。Guest中的驱动可以访问guest-physical内存中的这些寄存器,并与之交互,就像是在和物理寄存器交互一样,以指定的偏移量进行读写。
工厂和控制页的页大小与QNX Hypervisor 内核页相同(4KB)。
一、工厂页
因为qvm进程会为vm创建一个工厂页,则需要在托管Guest的VM的qvm配置中包含shmem虚拟设备。典型地,每个qvm配置文件中仅包含一个shmem虚拟设备,因此每个VM只有一个工厂页。
一个工厂页包含共享内存的信息,其中包括一个存有每个共享内存区域的控制页guest-physical地址的区域。且该区域的值会在Guest创建或附加(attach)不同的共享内存区域的时候发生改变。
一个工厂页可能位于Guest可访问的未分配内存的任何位置。例如,假设还未分配其他内存,如果我们分配192MB的内存(在qvm配置中设置了ram 192M),我们可以将工厂页放在此分配之外位于at 0x10000000 (256 MB)。这个地址时guest-physical地址,并不是硬件中的实际物理地址。shmem 虚拟设备会为VM虚拟化工厂页。且不会有其他设备会使用这个位置。
当Guest中的一个应用程序想要
边栏推荐
- 长城证券开户安全吗 买股票怎么开户
- The page element is vertically and horizontally centered, realizing the vertical and horizontal centering of known or unknown width.
- Functional interface
- JVM系列之对象的创建
- BCG 使用之CBCGPProgressDlg进度条使用
- 测试工程师如何“攻城”(下)
- Comment utiliser async awati asynchrone Task Handling au lieu de backgroundworker?
- 如何使用Async-Awati异步任务处理代替BackgroundWorker?
- Stream stream
- Is it safe to open an account at Great Wall Securities? How to open an account when buying stocks
猜你喜欢
How to use async Awati asynchronous task processing instead of backgroundworker?
92.(cesium篇)cesium楼栋分层
There are multiple divs in the large div, which are displayed on the same line. After overflow, scroll bars are generated without line breaks
联想首次详解绿色智城数字孪生平台 破解城市双碳升级难点
勾股数规律(任意三个数能够满足勾股定理需要满足的条件)
FPGA时序约束分享01_四大步骤简述
Online sql to excel (xls/xlsx) tool
MySQL数据库基本操作-DDL | 黑马程序员
HMM隐马尔可夫模型最详细讲解与代码实现
Lm10 cosine wave homeopathic grid strategy
随机推荐
How test engineers "attack the city" (Part 2)
如何使用Async-Awati异步任務處理代替BackgroundWorker?
Bi skills - permission axis
1002. A+b for Polynomials (25) (PAT class a)
有关架构设计的个人思考(本文后续不断修改更新)
2014 Hefei 31st youth informatics Olympic Games (primary school group) test questions
Shell 编程核心技术《三》
HDU 6440 2018 Chinese college student program design network competition
HDU 6440 2018中国大学生程序设计网络选拔赛
Educational Codeforces Round 22 E. Army Creation
指定输出的字符集
Unity adds a function case similar to editor extension to its script, the use of ContextMenu
BCG 使用之CBCGPProgressDlgCtrl进度条使用
FTP, SFTP file transfer
Opencv functions and methods related to binary threshold processing are summarized for comparison and use
矩阵翻转(数组模拟)
Oracle with as ora-00903: invalid table name multi report error
876. Intermediate node of linked list
Unity editor extends C to traverse all pictures in folders and subdirectories
Reflection (I)