diff options
author | Will Deacon <[email protected]> | 2022-11-10 19:02:48 +0000 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2022-11-11 17:16:25 +0000 |
commit | 6c165223e9a6384aa1e934b90f2650e71adb972a (patch) | |
tree | 3dee35bb7fc64ff4ed0b4f16aeae8c2be1140f2b /lib/mpi/mpi-sub-ui.c | |
parent | aa6948f82f0b7060fbbac21911dc7996b144ba3c (diff) |
KVM: arm64: Initialise hypervisor copies of host symbols unconditionally
The nVHE object at EL2 maintains its own copies of some host variables
so that, when pKVM is enabled, the host cannot directly modify the
hypervisor state. When running in normal nVHE mode, however, these
variables are still mirrored at EL2 but are not initialised.
Initialise the hypervisor symbols from the host copies regardless of
pKVM, ensuring that any reference to this data at EL2 with normal nVHE
will return a sensibly initialised value.
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Tested-by: Vincent Donnefort <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions