diff options
author | Lokesh Vutla <lokeshvutla@google.com> | 2025-01-21 07:40:16 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2025-01-21 11:32:53 +0300 |
commit | 9bcbb6104a344d3526e185ee1e7b985509914e90 (patch) | |
tree | 8abb2600a263f8c21ae71cc518f199d0ab5c4588 /scripts/extract-fwblobs | |
parent | 01009b06a6b52d8439c55b530633a971c13b6cb2 (diff) | |
download | linux-9bcbb6104a344d3526e185ee1e7b985509914e90.tar.xz |
KVM: arm64: Flush hyp bss section after initialization of variables in bss
To determine CPU features during initialization, the nVHE hypervisor
utilizes sanitized values of the host's CPU features registers. These
values, stored in u64 idaa64*_el1_sys_val variables are updated by the
kvm_hyp_init_symbols() function at EL1. To ensure EL2 visibility with
the MMU off, the data cache needs to be flushed after these updates.
However, individually flushing each variable using
kvm_flush_dcache_to_poc() is inefficient.
These cpu feature variables would be part of the bss section of
the hypervisor. Hence, flush the entire bss section of hypervisor
once the initialization is complete.
Fixes: 6c30bfb18d0b ("KVM: arm64: Add handlers for protected VM System Registers")
Suggested-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@google.com>
Link: https://lore.kernel.org/r/20250121044016.2219256-1-lokeshvutla@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'scripts/extract-fwblobs')
0 files changed, 0 insertions, 0 deletions