Skip to contentSkip to conversation

powerpc/kvm: Fix guest boot issue DAWR cpu feature

PATCH Applied Aneesh Kumar K.V 2 participants 2 messages Mar 30, 2018 – Mar 31, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/kvm: Fix guest boot issue DAWR cpu feature

SLOF check the 'sc 1' support by issuing a hcall with H_SET_DABR. With recent patch to make the hcall return H_UNSUPPORTED, we get guest boot failures. SLOF can work with the hcall failure H_HARDWARE for the above hcall. Switch the return value to H_HARDWARE instead of H_UNSUPPORTED so that we don't break the guest boot.

Fixes e8ebedbf ("KVM: PPC: Book3S HV: Return error from h_set_dabr() on POWER9")
---
 arch/powerpc/kvm/book3s_hv_rmhandlers.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kvm/book3s_hv_rmhandlers.S +1 -1
index c4c1b169826a..fdd7350d6c87 100644
@@ -2576,7 +2576,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_ARCH_207S)
 2:
 BEGIN_FTR_SECTION
 	/* POWER9 with disabled DAWR */
-	li	r3, H_UNSUPPORTED
+	li	r3, H_HARDWARE
 	blr
 END_FTR_SECTION_IFCLR(CPU_FTR_DAWR)
 	/* Emulate H_SET_DABR/X on P8 for the sake of compat mode guests */
Signature · 1 line
2.14.3
#1 lore raw
Quoted 9 lines · Aneesh Kumar K.V

SLOF check the 'sc 1' support by issuing a hcall with H_SET_DABR. With recent patch to make the hcall return H_UNSUPPORTED, we get guest boot failures. SLOF can work with the hcall failure H_HARDWARE for the above hcall. Switch the return value to H_HARDWARE instead of H_UNSUPPORTED so that we don't break the guest boot.

Fixes e8ebedbf ("KVM: PPC: Book3S HV: Return error from h_set_dabr() on POWER9")

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/ca9a16c3bc1582da62ef9c47fc2200

cheers