[kvmfr] don't recreate the pages for each map

This commit is contained in:
Geoffrey McRae
2020-01-13 15:42:45 +11:00
parent c71e5c63ca
commit 7a96c9fe24
3 changed files with 31 additions and 51 deletions

View File

@@ -21,9 +21,7 @@ int main()
}
unsigned long size = ioctl(fd, KVMFR_DMABUF_GETSIZE , 0);
unsigned long alignment = ioctl(fd, KVMFR_DMABUF_GETALIGN, 0);
printf("Size: %lu MiB, Alignment: %lu MiB\n", size / 1024 / 1024, alignment / 1024 / 1024);
printf("Size: %lu MiB\n", size / 1024 / 1024);
struct kvmfr_dmabuf_create create =
{