aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorNeel Natu <neel@FreeBSD.org>2014-09-27 03:43:49 +0000
committerNeel Natu <neel@FreeBSD.org>2014-09-27 03:43:49 +0000
commitd3e19acf3d946bf0445e8f2fa0cbc47062783b01 (patch)
tree04b84314d38cab5455833c64de8d47ee42bac1f4 /usr.sbin
parentce71bdcad4279ef96138f2d8d999804cb54a9eb7 (diff)
Notes
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 b6006b72a767f..f5e50d35b2192 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;