KVM: PPC: Book3S HV: Delay setting of kvm ops
authorFabiano Rosas <farosas@linux.ibm.com>
Tue, 25 Jan 2022 15:57:33 +0000 (12:57 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Feb 2022 05:50:44 +0000 (16:50 +1100)
commitc5d0d77b45265905bba2ce6e63c9a02bbd11c43c
tree1bb832a4c942cbd2611bd645a4c544fe87f2220a
parent69ab6ac380a00244575de02c406dcb9491bf3368
KVM: PPC: Book3S HV: Delay setting of kvm ops

Delay the setting of kvm_hv_ops until after all init code has
completed. This avoids leaving the ops still accessible if the init
fails.

Signed-off-by: Fabiano Rosas <farosas@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220125155735.1018683-3-farosas@linux.ibm.com
arch/powerpc/kvm/book3s_hv.c