windows使用了intel特权级的0和3级,1和2级从来不用么?
如题!!!! 自己顶一下。 虚拟机会用,不过我不清楚硬件虚拟化之后,是否还需要。 行,有意义,我顶 谢谢您了 1/2级也是特权级,也能修改0级的页面...所以区分0/1/2意义不大 xen确定在用 本帖最后由 lilogo 于 2012-11-18 10:05 编辑windows没用似乎是为了保持某种兼容性或者说是惯例。 应该是没用,至少以前的版本是这样,因为不是所有的CPU都支持4个特权级,而NT内核研制初期目标就是要兼容很多CPU
回复 1# weichuang02
我也想知道 :lol
应该跟OS移植到其他CPU有关.
回复 1# weichuang02
由于CPU的兼容性问题Windows只使用两个级别的,如Alpha处理器和SGI MIPS都只有两个级别。Windows Internals这本书里有讲原话如下:
The architecture of the x86 and x64 processor defines four privilege levels, or rings, to
protect system code and data from being overwritten either inadvertently or maliciously by
code of lesser privilege. Windows uses privilege level 0 (or ring 0) for kernel mode and privilege
level 3 (or ring 3) for user mode. The reason Windows uses only two levels is that some hardware
architectures that were supported in the past (such as Compaq Alpha and Silicon Graphics MIPS)
implemented only two privilege levels
页:
[1]
2