当前位置:网站首页>[QNX Hypervisor 2.2用户手册]6.3 Guest与外部之间通信
[QNX Hypervisor 2.2用户手册]6.3 Guest与外部之间通信
2022-07-02 11:21:00 【高桐@BILL】
Hypervisor系统中的Guest可以通过共享内存区域来向其他Guset或Hypervisor Host传输数据。
在QNX Hypervisor 系统中,运行在Guest中的客户端程序可以创建和管理共享内存,然后使用共享内存区域来交换数据。需要注意的是,这个共享内存区域并不是由来创建和管理,而是Hypervisor。Host应用程序在权限允许的情况下也可以创建共享内存区域或附加一个由其他创建的共享内存区域。
QNX Hypervisor提供的hypervisor-shmem-examples-*.tgz包含了QNX Guest相关的共享内存的案例程序代码:ghstest.c和Hypervisor Host相关的案例程序代码:hhstest.c。
为了对Hypervisor Host与Guest分享数据的模块执行写操作,你需要使用虚拟化API(libhyp.a)。这部分并没有包含在QNX hypervisor文档,而是在 Virtualization API Reference中有所描述。为了包含这部分额外的文档,并且支持对host模块的写操作,你可以联系QNX接口人(QNX representative)。
一、共享内存工作机制
为了使用共享内存,一个Guest中的客户端程序或Hypervisor Host中的程序需要做一下事情:
- 映射共享内存区域;
- 共享内存区域有更新时,可以使用硬件中断来通知共享内存的其他使用者;
Hypervisor提供了shmem虚拟设备,该设备实现了设置共享内存区域的映射和使用共享内存所需的中断。这个虚拟设备提供了使用共享内存的额外的功能,包括
边栏推荐
- Data consistency between redis and database
- MQ tutorial | exchange (switch)
- 软件测试的方法
- 3. Function pointers and pointer functions
- freemarker的使用
- 没有从远程服务器‘‘映射到本地用户‘(null)/sa‘的远程用户‘sa‘及服务主密码解密错误的解决办法
- Fabric.js 上划线、中划线(删除线)、下划线
- A white hole formed by antineutrons produced by particle accelerators
- 3、函数指针和指针函数
- Daily learning 2
猜你喜欢

<口算練習機 方案開發原理圖>口算練習機/口算寶/兒童數學寶/兒童計算器 LCD液晶顯示驅動IC-VK1621B,提供技術支持

Method of creating linked server for cross server data access

Daily learning 3

腾讯云 TStor 统一存储通过信通院首批文件存储基础能力评测

快解析:轻松实现共享上网

Yyds dry goods inventory software encryption lock function

A white hole formed by antineutrons produced by particle accelerators

【空间&单细胞组学】第1期:单细胞结合空间转录组研究PDAC肿瘤微环境

Fabric. JS free draw circle

Fabric.js 缩放画布
随机推荐
大顶堆、小顶堆与堆排序
The conference on the growth of all things was held in Hangzhou, and dangbei was selected into the top 100 list of future unicorns in China in 2022
数据库连接池和数据源
uni-app中使用computed解决了tab切换中data()值显示的异常
Launcher startup process
2022 home projector preferred! Dangbei F5 brings the ultimate audio-visual experience with its powerful audio-visual effect
< schematic diagram of oral arithmetic exercise machine program development> oral arithmetic exercise machine / oral arithmetic treasure / children's math treasure / children's calculator LCD LCD driv
由粒子加速器产生的反中子形成的白洞
Qt新建项目
关于Flink框架窗口(window)函数最全解析
万物生长大会在杭召开,当贝入选2022中国未来独角兽TOP100榜单
Quarkus learning IV - project development to deployment
跨服务器数据访问的创建链接服务器方法
obsidian安装第三方插件——无法加载插件
Fabric. JS upper dash, middle dash (strikethrough), underline
1. Editing weapon VIM
4、数组指针和指针数组
YOLOv3&YOLOv5输出结果说明
MQ tutorial | exchange (switch)
Methods of software testing