当前位置:网站首页>[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中的一个应用程序想要
边栏推荐
- Oracle with as ORA-00903: invalid table name 多表报错
- Shell programming core technology "four"
- Personal thoughts on Architecture Design (this article will be revised and updated continuously later)
- Matrix flip (array simulation)
- kotlin 类和对象
- 1002. A+b for Polynomials (25) (PAT class a)
- Have you guys ever used CDC direct Mysql to Clickhouse
- Reflection (I)
- 26. Delete the duplicate item C solution in the ordered array
- Online text line fixed length fill tool
猜你喜欢

Upgrade the smart switch, how much is the difference between the "zero fire version" and "single fire" wiring methods?

LM10丨余弦波动顺势网格策略

Hough Transform 霍夫变换原理

abc229 总结(区间最长连续字符 图的联通分量计数)

PolyFit软件介绍

node_ Exporter deployment

Master the use of auto analyze in data warehouse

"Only one trip", active recommendation and exploration of community installation and maintenance tasks

Pointnet/Pointnet++点云数据集处理并训练

西门子HMI下载时提示缺少面板映像解决方案
随机推荐
在线SQL转Excel(xls/xlsx)工具
TCP两次挥手,你见过吗?那四次握手呢?
Shell 编程核心技术《三》
添加命名空间声明
HDU 1372 & POJ 2243 Knight Moves(广度优先搜索)
1005 Spell It Right(20 分)(PAT甲级)
C# 使用StopWatch测量程序运行时间
偏移量函数及开窗函数
指定输出的字符集
测试工程师如何“攻城”(上)
函数式接口
生成XML元素
一文掌握数仓中auto analyze的使用
mysql中explain语句查询sql是否走索引,extra中的几种类型整理汇总
kotlin 基本使用
@transactional滥用导致数据源连接池耗尽问题
How test engineers "attack the city" (Part I)
Lenovo explains in detail the green smart city digital twin platform for the first time to solve the difficulties of urban dual carbon upgrading
The 300th weekly match of leetcode (20220703)
Is it safe to open an account at Great Wall Securities? How to open an account when buying stocks