当前位置:网站首页>[QNX Hypervisor 2.2用户手册]5.6.1 Guest关机时静默设备
[QNX Hypervisor 2.2用户手册]5.6.1 Guest关机时静默设备
2022-06-23 08:24:00 【高桐@BILL】
当一个guest关机时,无论是受控的还是不可控的关机,qvm进程都应该去尝试静默那些Guest使用的物理设备。这样可以确保Guest驱动不再写入物理内存,以避免由此导致的非预期行为甚至损害硬件。
当一个Guest关机,因此它的驱动将会消失,不能期望Host硬件保持相同的状态,因为这些设备可能会异步运行(例如,正在DMA写入,产生中断等)。为了保护硬件完整性,当Guest终止时,qvm进程的设计中会将这些设备进行静默(简而言之就是休眠这些设备)。
为了遵循这种设计,qvm进程可以包含一个vdev,它可以静默设备,也可以配置这个设备,以便于在qvm进程终止时可以运行它的回调函数,然后释放驱动程序的资源。回调函数必须执行必要的清理工作,包括静默设备。这需要尽快关闭设备,以便当 qvm 进程消失时,设备不再执行下面的操作:
- 写入物理内存(非常危险的操作)
- 产生中断(这个倒不严重,因为hypervisor可以识别这个IRQ并忽略它)
有关创建客制化vdev的更多信息,参考Virtual Device Developer's Guide。更多关于在进程关机时定义一个注册了回调函数的vdev的控制函数参考“Handling a qvm termination”。
注意!
Guest可以尝试静默一个设备。但是hypervisor不能依赖Guest来执行设备休眠的操作。当运行的QNX Hypervisor是Safety变种,你必须提供一个vdev来在关机时静默物理设备。对于非安全的QNX Hypervisor变种,同样建议这么做,但不做要求。
边栏推荐
- [paper notes] catching both gray and black swans: open set supervised analog detection*
- Implementation of AVL tree
- 论文阅读【Quo Vadis, Action Recognition? A New Model and the Kinetics Dataset】
- 鸿蒙读取资源文件
- vector的深度剖析及模拟实现
- How to solve the problem that flv video stream cannot be played and TS file generation fails due to packet loss?
- The essence of five good books on wealth and freedom
- “方脸老师”董宇辉再回应热度下降:把农产品直播做好让农民受益 考虑去支教
- Leetcode 173 Binary search tree iterator (2022.06.22)
- Arclayoutview: implementation of an arc layout
猜你喜欢

测试-- 自动化测试selenium(关于API)
![[cloud computing] GFS ideological advantages and architecture](/img/98/2a4ef0ca805add24d431dac9808903.png)
[cloud computing] GFS ideological advantages and architecture

81 sentences worth repeating

Why do we say that the data service API is the standard configuration of the data midrange?

Data assets are king, analyzing the relationship between enterprise digital transformation and data asset management

Self organizing map neural network (SOM)

Hongmeng reads the resource file
![Vulnhub | dc: 4 | [actual combat]](/img/33/b7422bdb18f39e9eb55855dbf1d584.png)
Vulnhub | dc: 4 | [actual combat]

The first day of employment more than ten years ago

Image segmentation - improved network structure
随机推荐
Chapter 1 open LDAP master-slave synchronization tower construction
Cloud computing "half peak"
Go 数据类型篇(三)之整型及运算符
Why do we say that the data service API is the standard configuration of the data midrange?
6-闪耀的激光-CALayer 的应用
点云库pcl从入门到精通 第十章
Analysis of JMeter pressure measurement results
Pyspark on HPC (Continued): reasonable partition processing and consolidated output of a single file
Deep learning ----- different methods to implement lenet-5 model
鸿蒙读取资源文件
你有一串代码,但是不支持低版本Go时;判断Go版本号,您值得拥有!
Android kotlin coroutines KTX extension
Vulnhub | DC: 4 |【實戰】
Object.defineProperty() 和 数据代理
7-调色板-CALayer和触摸
Top 25 most popular articles on vivo Internet technology in 2021
Why use growth neural gas network (GNG)?
There are some limitations in cluster expansion and contraction
How to sort a dictionary by value or key?
Deep learning ----- different methods to realize vgg16