projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15eb1b6
)
KVM: PPC: Book3S HV: Initialize AMOR in nested entry
author
Fabiano Rosas
<farosas@linux.ibm.com>
Mon, 25 Apr 2022 14:21:51 +0000
(11:21 -0300)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Wed, 18 May 2022 14:28:49 +0000
(
00:28
+1000)
The hypervisor always sets AMOR to ~0, but let's ensure we're not
passing stale values around.
Signed-off-by: Fabiano Rosas <farosas@linux.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link:
https://lore.kernel.org/r/20220425142151.1495142-1-farosas@linux.ibm.com
arch/powerpc/kvm/book3s_hv.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kvm/book3s_hv.c
b/arch/powerpc/kvm/book3s_hv.c
index
cd63dd0
..
c5fd9b4
100644
(file)
--- a/
arch/powerpc/kvm/book3s_hv.c
+++ b/
arch/powerpc/kvm/book3s_hv.c
@@
-3967,6
+3967,7
@@
static int kvmhv_vcpu_entry_p9_nested(struct kvm_vcpu *vcpu, u64 time_limit, uns
kvmhv_save_hv_regs(vcpu, &hvregs);
hvregs.lpcr = lpcr;
+ hvregs.amor = ~0;
vcpu->arch.regs.msr = vcpu->arch.shregs.msr;
hvregs.version = HV_GUEST_STATE_VERSION;
if (vcpu->arch.nested) {