Comments (9)
OP-TEE and the Linux kernel reads this memory configuration from the DTB which QEMU generates when initializing. The value 1057 is mostly used for legacy reasons, it might be possible to use a more even value these days.
from build.
Then, How do I change the memory ratio between TEE and REE?
from build.
The secure memory is using a fixed number hardcoded into QEMU, this is only non-secure memory. Unless you're using a static carveout for share memory everything is used by the REE.
from build.
Does this means that 1057 is only non-secure memory? Where should I modify the fixed number to set the size of the safe memory?
from build.
It's hardcoded in hw/arm/virt.c
in the QEMU source, search for VIRT_SECURE_MEM. If stuff breaks I'm not able to help.
from build.
If I want to modify the size ratio of safe and non-safe memory in a project, what should I do?
from build.
The amount of secure memory in the QEMU virt model is constant, so the only way to change the ratio is to change the amount of non-secure memory. I suppose it shouldn't be too hard to add another region with secure memory in QEMU, but I'm afraid I can't help you with that. You can perhaps get help with that on a QEMU mailing list or forum.
from build.
This issue has been marked as a stale issue because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time.
from build.
I monitored that when setting memory larger than 1057 while having multiple core settings with -smp 4, it sometimes failed to bring up core 2,3,4. Are there any constraints on memory setting?
from build.
Related Issues (20)
- Error building op-tee for QEMUv8 HOT 6
- Using hikey620's uart0 to console NW world HOT 1
- Issue with building image - v3.22.0 on Raspberry Pi 3B+ HOT 1
- Modify the linux kernel but not working HOT 3
- Failure to run with manifest qemu_v8.xml and SPMC_AT_EL=2 HOT 2
- AMD Versal ACAP - do not update to BSP 2023.1 HOT 4
- cannot find -lpci error while cross compiling for LS1043 HOT 1
- Who can help me!make -f qemu.mk all and get a error :ccache: error: Exec format error HOT 5
- Openssl doesn't get built in when build called from qemu.mk HOT 2
- RPI3b:-sh: apt-get: not found HOT 3
- Does the build support the config XEN_BOOT=y && SPCM_AT_EL=2 on qemu_v8 HOT 5
- Rust error "could not rename downloaded file" HOT 3
- Rust error: "failed to install component: 'rust-std-aarch64-unknown-linux-gnu', detected conflict" HOT 2
- Legacy BR options in tooclhain build HOT 6
- image load on qemu HOT 2
- optee_test_ext: /bin/bash: Argument list too long HOT 3
- Build fails on aarch64 hosts HOT 18
- toolchain.mk: Rust toolchain is not downloaded on aarch64 hosts HOT 1
- C++ tests fail on aarch64 hosts HOT 2
- Compilation of Rust examples fails on aarch64 hosts
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 build.