diff options
author | Andrew Scull <[email protected]> | 2021-03-05 18:52:49 +0000 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2021-03-06 04:18:40 -0500 |
commit | c4b000c3928d4f20acef79dccf3a65ae3795e0b0 (patch) | |
tree | d503cf7f29b266aa53ea89be1c261b72589da249 /lib/mpi/mpiutil.c | |
parent | 31948332d5fa392ad933f4a6a10026850649ed76 (diff) |
KVM: arm64: Fix nVHE hyp panic host context restore
When panicking from the nVHE hyp and restoring the host context, x29 is
expected to hold a pointer to the host context. This wasn't being done
so fix it to make sure there's a valid pointer the host context being
used.
Rather than passing a boolean indicating whether or not the host context
should be restored, instead pass the pointer to the host context. NULL
is passed to indicate that no context should be restored.
Fixes: a2e102e20fd6 ("KVM: arm64: nVHE: Handle hyp panics")
Cc: [email protected]
Signed-off-by: Andrew Scull <[email protected]>
[maz: partial rewrite to fit 5.12-rc1]
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions