Commit fad96665 authored by Wang Wensheng's avatar Wang Wensheng Committed by Yang Yingliang
Browse files

share_pool: Apply sp_make_share_k2u() to multi-group-mode

ascend inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4EUVI


CVE: NA

-------------------

Since a single process could be added to multiple groups, we must take
the spg_id into account when we do k2spg.

Change:
The caller must provide a valid spg_id for k2spg.
SPG_ID_DEFAULT and SPG_ID_NONE is used to indicate that we should share
the input kva to current process.

Signed-off-by: default avatarWang Wensheng <wangwensheng4@huawei.com>
Signed-off-by: default avatarZhou Guanghui <zhouguanghui1@huawei.com>
Reviewed-by: default avatarWeilong Chen <chenweilong@huawei.com>
Reviewed-by: default avatarDing Tianhong <dingtianhong@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 0f0c3021
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment