Disabling cache #203
Closed
Everaldo-Gomes
started this conversation in
General
Replies: 1 comment 4 replies
-
Sorry for the delay @Everaldo-Gomes. If you are not flushing the caches before disabling them for the hypervisor (i.e., in SCTLR_EL2) this kind of behavior should be expected because the data in memory will be inconsistent with that in the cache. Any kind of unexpected behavior should be expected (pun intended) at this point. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to disable the cache before Bao initializes the VMs, but by the time the code responsible for this is executed, Bao freezes.
To disable it, I followed these steps
The responsible register is this
When disabling the bit 2 (C), it freezes.
This occurs when using the SCTLR_EL2 register, but changing the SCTLR_EL1 does not freeze, but the value in it does not change.
I'd like to know, what I can do to solve this, and prevent the VMs from caching any data.
Platform: Raspberry Pi 4b
Demo: Dual-guest Linux+FreeRTOS
Beta Was this translation helpful? Give feedback.
All reactions