This function can fail but its return value isn't passed onto the
caller. Presumably this could result in a broken state.
Fixes:
66d5b53e20a6 ("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>
return ret;
}
- pkvm_create_host_sve_mappings();
- return 0;
+ return pkvm_create_host_sve_mappings();
}
static void update_nvhe_init_params(void)