[c-host] windows: update ivshmem driver header and usage

This commit is contained in:
Geoffrey McRae committed 2019-10-24 19:46:09 +11:00
1 parent e1bfb1234b
commit 1d7a2ccf82
3 files changed
+20 -2

No files matched your search

+6 -1
View File
@@ -368,11 +368,16 @@ bool os_shmemMmap(void **ptr)
return true;
}
IVSHMEM_MMAP_CONFIG config =
{
.cacheMode = IVSHMEM_CACHE_WRITECOMBINED
};
memset(&app.shmemMap, 0, sizeof(IVSHMEM_MMAP));
if (!DeviceIoControl(
app.shmemHandle,
IOCTL_IVSHMEM_REQUEST_MMAP,
NULL, 0,
&config, sizeof(IVSHMEM_MMAP_CONFIG),
&app.shmemMap, sizeof(IVSHMEM_MMAP),
NULL, NULL))
{