Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ANDROID: KVM: arm64: Move hyp event enable into ro data section
It is expected for hyp events to be used in hot paths. We then need to reduce the overhead of having the events placed even when they are disabled. Moving the variable enabling event tracing into a read-only section increase the chance of sharing a cache line with immutable objects and as a consequence making it less likely to get a cache miss. A RW mapping alias must then be made with the fixmap to turn on and off events. Bug: 229972309 Change-Id: Ib15bb3fd16b3adb9a889a730b701fd26171c9d37 Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
- Loading branch information