powerpc/kvm: Fix guest boot issue DAWR cpu feature
Subsystems (2)
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.
--- arch/powerpc/kvm/book3s_hv_rmhandlers.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kvm/book3s_hv_rmhandlers.S +1 -1
@@ -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
Michael Ellerman
AppliedQuoted 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 returnH_UNSUPPORTED, we get guest boot failures. SLOF can work with the hcall failureH_HARDWAREfor the above hcall. Switch the return value toH_HARDWAREinstead ofH_UNSUPPORTEDso that we don't break the guest boot.Fixes e8ebedbf ("KVM: PPC: Book3S HV: Return error from h_set_dabr() on POWER9")Signed-off-by Aneesh Kumar K.V <[email protected]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/ca9a16c3bc1582da62ef9c47fc2200
cheers