当前位置:网站首页>[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变种,同样建议这么做,但不做要求。
边栏推荐
- Leetcode topic analysis set matrix zeroes
- 81 sentences worth repeating
- Map interface and its sub implementation classes
- 4- draw ellipse, use timer
- Open source stealing malware mercurial found in the field for "educational purposes"
- 点云库pcl从入门到精通 第十章
- Tencent cloud account related
- How to restore visualizations and dashboards after kibana rebuilds the index
- 6-闪耀的激光-CALayer 的应用
- You have a string of code, but do not support the lower version of go; Judge the go version number, you deserve it!
猜你喜欢

6月《中国数据库行业分析报告》发布!智能风起,列存更生

After reading five books, I summarized these theories of wealth freedom

Point cloud library PCL from introduction to mastery Chapter 10

The most commonly used 5-stream ETL mode
![Vulnhub | dc: 3 | [actual combat]](/img/97/e5ba86f2694fe1705c13c60484cff6.png)
Vulnhub | dc: 3 | [actual combat]

The first day of employment more than ten years ago

最常用的5中流ETL模式

Image segmentation - improved network structure

Introduction to typescript and basic types of variable definitions

点云库pcl从入门到精通 第十章
随机推荐
6-闪耀的激光-CALayer 的应用
7-palette-calayer and touch
2- use line segments to form graphics and coordinate conversion
There are some limitations in cluster expansion and contraction
开源技术交流丨批流一体数据同步引擎ChunJun数据还原-DDL功能模块解析
List接口三个子实现类
[cloud computing] GFS ideological advantages and architecture
坑爹的“敬业福”:支付宝春晚红包技术大爆发
Integers and operators in go data types (3)
Go 数据类型篇(三)之整型及运算符
ArcLayoutView: 一个弧形布局的实现
Pyspark on HPC (Continued): reasonable partition processing and consolidated output of a single file
Derivation and loading of the trained random forest model
kernel log调试方法
Use newbeecoder UI implements data paging
The essence of five good books on wealth and freedom
Observer mode
Use of tensorboard
Object.defineProperty() 和 数据代理
Why is the easycvr Video Fusion platform offline when cascading with the Hikvision platform? How to solve it?