Comments (4)
@bitboom ,
Not sure if this PR helps solving this,
But I added some points to wipe out a page by zero in that PR.
- a transition from Undelegated to Delegated
- a transition from Delegated to Undelegated
I think it's worth a try running the same ACS test with this PR. (not that high probability though)
from islet.
When i changed ACS to Device temporarily, i could read the memory.
@bitboom , This sounds like a TLB issue. (not 100% sure though)
It might be worth trying to run the below code.
pub fn set_pages_for_rmi(addr: usize, secure: bool) {
let device_flags = helper::bits_in_reg(PTDesc::INDX, attr::mair_idx::RMM_MEM); // try-1: ACS (normal), RMM (normal)
// try-2: helper::bits_in_reg(PTDesc::INDX, attr::mair_idx::DEVICE_MEM); --> ACS (normal), RMM (device)
....
page_table.set_pages(va, phys, PAGE_SIZE, rw_flags | device_flags | secure_flags);
....
unsafe {
asm!("tlbi alle2", "dsb sy", "isb",); // TLB flush
}
}
from islet.
@jinbpark Thank you for the suggestion.
I found the cause of this issue.
The issue is that ACS set the shared region as Normal, Inner/Outer WB/WA/RA
, but islet map the region as Device
in set_pages_for_rmi
.
When i changed ACS to Device
temporarily, i could read the memory.
But I think our islet should change to Normal
in set_pages_for_rmi
. I tried it but failed :(
from islet.
@jinbpark Thanks for the suggestion! I tried it but i does't work :(
The problem seems to relate with cache. When i turn off cache with cache_state_modelled=0
of acs's script, it work.
Since this is not the tfundamental solution, I detached this issue from origin PR #148.
from islet.
Related Issues (20)
- Refactor PageTable interfaces HOT 1
- ACS(Architecture Compliance Suite) Status HOT 4
- Do optimizations in frequently called RMIs HOT 2
- Ask for Suggestions about Research Topics HOT 6
- Fix a ci failure (sdk build)
- sdk: cdylib doesn't seem to be supported in our target (aarch64-unknown-linux-gnu)
- Enhance locking mechanism HOT 2
- KVM_CAP_RME(KVM_CAP_ARM_RME_CREATE_RD): No such device or address
- A two-way isolation between Realm and RMM
- Identify the cause of the increased RMM memory usage HOT 5
- ACS test failure (delegation) on latest commit
- Add an option to control islet's log-level in build time
- nw-linux booting does not succeed in a docker image
- acs: Conflict `RecCreateFlags case` with others
- ci: ACS test is hang
- ACS: mm_unprotected_ipa_boundary testcase is failed HOT 8
- Rename branches with suitable spec version HOT 2
- CI failure with 404 not found
- ACS tests are too slow to work in ci tests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from islet.