> +bool_t cdp_enabled = cdp_is_enabled(socket, cdp_socket_enable);
>
> if ( IS_ERR(info) )
> return PTR_ERR(info);
>
> -*cbm = info->cos_to_cbm[d->arch.psr_cos_ids[socket]].cbm;
> +switch ( type )
> +{
> +case PSR_CBM_TYPE_L3:
> +if ( type ==
CDP extends CAT and provides the capacity to control L3 code & data
cache. With CDP, one COS corresponds to two CMBs(code & data). cbm_type
is added to distinguish different CBM operations. Besides, new domctl
cmds are introdunced to support set/get CDP CBM. Some CAT functions to
operation CBMs