Re: [PATCH v2 4/4] KVM: PPC: Decrement module refcount if init_vm fails

2022-01-25 Thread Fabiano Rosas
Nicholas Piggin writes: > Excerpts from Fabiano Rosas's message of January 25, 2022 8:08 am: >> We increment the reference count for KVM-HV/PR before the call to >> kvmppc_core_init_vm. If that function fails we need to decrement the >> refcount. >> >> Signed-off-by: Fabiano Rosas >> --- >>

Re: [PATCH v2 4/4] KVM: PPC: Decrement module refcount if init_vm fails

2022-01-24 Thread Nicholas Piggin
Excerpts from Fabiano Rosas's message of January 25, 2022 8:08 am: > We increment the reference count for KVM-HV/PR before the call to > kvmppc_core_init_vm. If that function fails we need to decrement the > refcount. > > Signed-off-by: Fabiano Rosas > --- > Caught this while testing Nick's LPID

[PATCH v2 4/4] KVM: PPC: Decrement module refcount if init_vm fails

2022-01-24 Thread Fabiano Rosas
We increment the reference count for KVM-HV/PR before the call to kvmppc_core_init_vm. If that function fails we need to decrement the refcount. Signed-off-by: Fabiano Rosas --- Caught this while testing Nick's LPID patches by looking at /sys/module/kvm_hv/refcnt --- arch/powerpc/kvm/powerpc.c