diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2015-06-29 19:53:15 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2015-10-24 18:03:16 +0200 |
commit | 1e21feb6280222a230fda1d87318ab58adde188f (patch) | |
tree | 12af6581ff4e6cdec6104a4c623c13b32215210a /contrib/ivshmem-server/main.c | |
parent | 022cffe31360750b405d368e343f3ca5febc0d0a (diff) | |
download | qemu-1e21feb6280222a230fda1d87318ab58adde188f.tar.gz qemu-1e21feb6280222a230fda1d87318ab58adde188f.tar.bz2 qemu-1e21feb6280222a230fda1d87318ab58adde188f.zip |
ivshmem-server: fix hugetlbfs support
As pointed out on the ML by Andrew Jones, glibc no longer permits
creating POSIX shm on hugetlbfs directly. When given a hugetlbfs path,
create a shareable file there.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Diffstat (limited to 'contrib/ivshmem-server/main.c')
-rw-r--r-- | contrib/ivshmem-server/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/ivshmem-server/main.c b/contrib/ivshmem-server/main.c index 064de02277..b960048729 100644 --- a/contrib/ivshmem-server/main.c +++ b/contrib/ivshmem-server/main.c @@ -47,9 +47,8 @@ ivshmem_server_usage(const char *name, int code) " to listen to.\n" " Default=%s\n", IVSHMEM_SERVER_DEFAULT_UNIX_SOCK_PATH); fprintf(stderr, " -m <shm_path>: path to the shared memory.\n" - " The path corresponds to a POSIX shm name. To use a\n" - " real file, for instance in a hugetlbfs, use\n" - " /../../abspath/to/file.\n" + " The path corresponds to a POSIX shm name or a\n" + " hugetlbfs mount point.\n" " default=%s\n", IVSHMEM_SERVER_DEFAULT_SHM_PATH); fprintf(stderr, " -l <size>: size of shared memory in bytes. The suffix\n" " K, M and G can be used (ex: 1K means 1024).\n" |