armv8 memory translation table descriptor
上一节大致给出了descriptor的结构,这篇细致分析各个field:
1) Table Descriptor:stage2中不包含任何的attribute的field,每个level中的descriptor高位作为下一个level的attr配置。
NSTable,bit[63], 定义subsequent lookup的secure state
APTable,bit[62:61],
UXNTable,bit[60],
PXNTable,bit[59],
2) Block and Page descriptor:stage1,stage2都可以设置,每个memory attr分为upper block和lower block
Stage1:
Upper:
PBHA,bit[62:59],用来支持ARMv8.2-TTPBHA,
XN、UXN,bit[54],
PXN,bit[53],
Contiguous,bit[52],根据颗粒的大小,表示一定数量的相邻的table,被选中。
DBM,Dirty Bit Modifier,bit[51]
Lower:
AF,bit[10],Access flag
SH,bit[9:8],Shareability field
AP,bit[7:6],Data Access Permission
NS,bit[5],non-secure bit
Attrindex,bit[4:2],Stage1 memory attributes index, for MAIR_ELx
Stage2:
新的field包括:
S2AP,bit[7:6],Stage2 Data Access Permission
MemAttr,bit[5:2],Stage2 memory attributes,
接下来分为access permission和memory attributes来分析field。
Access Permission,控制data access和instruction fetch。
Pstate,在ARMv8.2中,是一个描述process state的寄存器,包括
1) condition flags---------N(negative),Z(zero),C(carry),V(overflow)
2) execution state--------EL(current except level),SP(Stack Pointer)
3) exception mask bit
4) access control bit----PAN(privilege access never),UAO(User Access Override)
Stage1中的AP[2:1],
1) AP[2],在read-only和write-read之间选择;
2) AP[1],在EL0和更高的exception level中选择;(none表示mmu报错)
S2AP,在non-secure的EL0、EL1中,
AP和S2AP都设置时,都会起作用。
TCR_ELn寄存器中的APTable[1:0],
总结,关于execution 的 access
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
AF(access flag),是软件的应用,表明目前该page是否被访问过,优化在OS memory control中的实现。
还有dirty state bit,也是做软件优化使用的,具体看armv8 doc
Bit[58:55],不论是block descripter还是table descripter,中都会预留,为OS使用。可以存放page是否dirty等信息。
memory region atribute,只针对block和page类型的descriptor
stage1中,AttrIndx[2:0],选定某个MAIR_ELn,实现memory attri的配置;
SH[1:0]对于normal memory,定义Shareability;
stage2中的MemAttr,4bit实现类似MARI的配置、
SH[1:0]对于normal memory,实现shareability的配置。
stage1和stage2都配置时,都会起作用,优先级以及覆盖情况,详见armv8 doc
MAIR_ELn64位寄存器,一共有三个,分为EL1,EL2,EL3,64bit被分为8个byte,每个byte内部编码指定attribute。
armv8 memory translation table descriptor的更多相关文章
- armv8 memory translation
AArch32,arm的32bit架构: AArch64,arm的64bit架构: ARMv8.2-LPA,是armv8.2中的新feature,扩大了IPA和PA的支持范围,从48bit扩展到52b ...
- VMSAv8-64 translation table format descriptors
通常情况下,一个 descriptor 可能是以下的几种 entry: 非法或者异常的 entry. Table entry, 指向 next-level translation table. Blo ...
- memcached vs MySQL Memory engine table 速度比较_XMPP Jabber即时通讯开发实践_百度空间
memcached vs MySQL Memory engine table 速度比较_XMPP Jabber即时通讯开发实践_百度空间 memcached vs MySQL Memory engin ...
- Memory Translation and Segmentation.内存地址转换与分段
原文标题:Memory Translation and Segmentation 原文地址:http://duartes.org/gustavo/blog/ [注:本人水平有限,只好挑一些国外高手的精 ...
- Virtual Memory PAGE TABLE STRUCTURE
COMPUTER ORGANIZATION AND ARCHITECTURE DESIGNING FOR PERFORMANCE NINTH EDITION The basic mechanism f ...
- armv8 memory system
在armv8中,由于processor的预取,流水线, 以及多线程并行的执行方式,而且armv8-a中,使用的是一种weakly-ordered memory model, 不保证program or ...
- MySQL memory引擎 table is full 问题处理
解决mysql的内存表“table is full”错误 101209 13:13:32 [ERROR] /usr/local/mysql/bin/mysqld: The table ‘test_ ...
- org.apache.hadoop.hbase.DoNotRetryIOException: Class org.apache.phoenix.coprocessor.MetaDataEndpointImpl cannot be loaded Set hbase.table.sanity.checks to false at conf or table descriptor if you want
https://stackoverflow.com/questions/38495331/apache-phoenix-unable-to-connect-to-hbase 这个坑不该啊 首选配置hb ...
- 关于ARMv8另外几个问题
版权声明:本文为博主原创文章.未经博主同意不得转载. https://blog.csdn.net/qianlong4526888/article/details/27510675 问题1:支持ARMv ...
随机推荐
- php$_SERVER['SCRIPT_NAME']和__FILE__的区别
$_SERVER['SCRIPT_FILENAME'] -------> 当前执行程序的绝对路径及文件名__FILE__ ...
- [性能优化] perf 高级用法:完整记录程序性能指标,并按照时间段对程序进行有针对性的性能分析
如题: 假设你已经熟悉了基本用法,知道perf是干嘛的,以及会用 perf top [性能优化] perf 背景:目标程序在运行的某时间段内会出现性能下降,需要了解这个时间内,程序发生了什么. 方法: ...
- mysql数据库的备份和还原
mysql数据库的备份命令:mysqldump -u root -p 要备份的现有数据库名 > 备份后的sql文件名.sql,例如: mysqldump -u root -p heal ...
- 机器学习技术点----apachecn的github地址
预处理 离散化 等值分箱 等量分箱 独热 one-hot 标准化 最小最大 min-max z-score l2 标准化 归一化 特征选择 ANOVA 信息增益/信息增益率 模型验证 评价指标 回归 ...
- 用CSS来画空心三角形的方法
画这里三角形的方法: 用CSS来实现:整个弹框的ID是#favoriteOptionMenus,对于#favoriteOptionMenus这个元素设置:before和:after的样式,让:befo ...
- python-面向对象-12_模块和包
模块和包 目标 模块 包 发布模块 01. 模块 1.1 模块的概念 模块是 Python 程序架构的一个核心概念 每一个以扩展名 py 结尾的 Python 源代码文件都是一个 模块 模块名 同样也 ...
- 从零开始编写操作系统——bochs
一.生成boot.bin boot sector代码: loop: jmp loop times -($-$$) db dw 0xaa55 重点就是最后的0xaa55 nasm boot.asm -f ...
- mv 命令
[root@localhost soft]# .txt [root@localhost soft]# [root@localhost soft]# ls .txt [root@localhost so ...
- 查看进程:ps
ps 是process status的缩写.用来查看进程 [root@linux-node- sss]# ps -aux USER PID %CPU %MEM VSZ RSS TTY STAT STA ...
- [MySQL优化2]不用SELECT * FROM table;
假设有一张employees表,它有8列:员工人数,姓氏,名字,分机,电子邮件,办公室代码,报告,职位等.如果要仅查看员工的名字,姓氏和职位,请使用以下查询:SELECT lastname, firs ...