summaryrefslogtreecommitdiff
path: root/include/linux/memory
diff options
context:
space:
mode:
authorRitesh Harjani (IBM) <ritesh.list@gmail.com>2026-11-01 20:58:12 +0530
committerMadhavan Srinivasan <maddy@linux.ibm.com>2026-11-20 13:25:18 +0530
commitf6f88b0aa156a7df2477950fddf6b413d1c76a31 (patch)
treebb396802bf9d239f072d6a0a787787f819cd564b /include/linux/memory
parentd76620d9e2ce87963b993a44acae7ce1a47eca24 (diff)
KVM: PPC: Book3s: nestedv2: Free the guest state buffers if vcpu create fails
On a nestedv2 host, kvmppc_core_vcpu_create_hv() first creates the vCPU in the L0 with kvmhv_nestedv2_vcpu_create(), which also allocates the guest state messages and the run input/output buffers. Only after that it picks a vcore for the vCPU - which can actually fail. This patch therefore takes care of freeing the GSM abd GSB for nestedv2 if an error occurs later as part of the cleanup routine. Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/082c338c69773a73a48cd4e0d0885ee0f6ef5326.1793546707.git.ritesh.list@gmail.com
Diffstat (limited to 'include/linux/memory')
0 files changed, 0 insertions, 0 deletions