Skip to content

Commit 60ad25e

Browse files
james-c-linarooupton
authored andcommitted
KVM: arm64: Pass on SVE mapping failures
This function can fail but its return value isn't passed onto the caller. Presumably this could result in a broken state. Fixes: 66d5b53 ("KVM: arm64: Allocate memory mapped at hyp for host sve state in pKVM") Signed-off-by: James Clark <james.clark@linaro.org> Reviewed-by: Fuad Tabba <tabba@google.com> Acked-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20241112105604.795809-1-james.clark@linaro.org Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
1 parent 9d0bee6 commit 60ad25e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/arm64/kvm/hyp/nvhe/setup.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ static int recreate_hyp_mappings(phys_addr_t phys, unsigned long size,
146146
return ret;
147147
}
148148

149-
pkvm_create_host_sve_mappings();
150-
return 0;
149+
return pkvm_create_host_sve_mappings();
151150
}
152151

153152
static void update_nvhe_init_params(void)

0 commit comments

Comments
 (0)