summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2014-09-27 03:43:49 +0000
committerneel <neel@FreeBSD.org>2014-09-27 03:43:49 +0000
commit381edfd870a0fd662bd3a74207b9d97f55e1207f (patch)
tree04b84314d38cab5455833c64de8d47ee42bac1f4 /usr.sbin
parentf41bd0c0352799d94f308e5a9994c1aaa309c3d8 (diff)
downloadFreeBSD-src-381edfd870a0fd662bd3a74207b9d97f55e1207f.zip
FreeBSD-src-381edfd870a0fd662bd3a74207b9d97f55e1207f.tar.gz
After r271635 mmap(2) requires either MAP_PRIVATE or MAP_SHARED
for non-anonymous mappings. This gets 'bhyvectl --get-all' working again. Reported by: Anish Gupta (akgupt3@gmail.com)
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bhyvectl/bhyvectl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bhyvectl/bhyvectl.c b/usr.sbin/bhyvectl/bhyvectl.c
index b6006b7..f5e50d3 100644
--- a/usr.sbin/bhyvectl/bhyvectl.c
+++ b/usr.sbin/bhyvectl/bhyvectl.c
@@ -309,7 +309,7 @@ dump_vmcs_msr_bitmap(int vcpu, u_long addr)
if (fd < 0)
goto done;
- bitmap = mmap(NULL, PAGE_SIZE, PROT_READ, 0, fd, addr);
+ bitmap = mmap(NULL, PAGE_SIZE, PROT_READ, MAP_SHARED, fd, addr);
if (bitmap == MAP_FAILED)
goto done;
OpenPOWER on IntegriCloud