Coder Social home page Coder Social logo

Comments (9)

jenswi-linaro avatar jenswi-linaro commented on June 16, 2024

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.

wsp1999 avatar wsp1999 commented on June 16, 2024

Then, How do I change the memory ratio between TEE and REE?

from build.

jenswi-linaro avatar jenswi-linaro commented on June 16, 2024

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.

wsp1999 avatar wsp1999 commented on June 16, 2024

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.

jenswi-linaro avatar jenswi-linaro commented on June 16, 2024

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.

wsp1999 avatar wsp1999 commented on June 16, 2024

If I want to modify the size ratio of safe and non-safe memory in a project, what should I do?

from build.

jenswi-linaro avatar jenswi-linaro commented on June 16, 2024

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.

github-actions avatar github-actions commented on June 16, 2024

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.

n43e125 avatar n43e125 commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.