On 23.01.2023 16:47, Carlo Nonato wrote:
> +static unsigned int *alloc_colors(unsigned int num_colors)
> +{
> + unsigned int *colors = xmalloc_array(unsigned int, num_colors);
> +
> + if ( !colors )
> + panic("Unable to allocate LLC colors\n");Already for Dom0 creation I view this as an unacceptable form of error "handling". Later you even hook this up to a domctl for DomU creation, at which point panic()ing is entirely unacceptable. Jan
