+82
−16
+1
−0
+4
−0
Loading
ascend inclusion
category: feature
bugzilla: NA
CVE: NA
-------------------------------------------------
Add alloc and release memory functions in svm. And the physical address
of the memory is within 4GB.
For example:
/* alloc */
fd = open("dev/svm0",);
mmap(0, ALLOC_SIZE,, MAP_PA32BIT, fd, 0);
/* free */
ioctl(fd, SVM_IOCTL_RELEASE_PHYS32,);
close(fd);
Signed-off-by:
Bixuan Cui <cuibixuan@huawei.com>
Reviewed-by:
Zefan Li <lizefan@huawei.com>
Reviewed-by:
Hanjun Guo <guohanjun@huawei.com>
Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>