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)
This commit is contained in:
parent
ce71bdcad4
commit
d3e19acf3d
@ -309,7 +309,7 @@ dump_vmcs_msr_bitmap(int vcpu, u_long addr)
|
|||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
goto done;
|
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)
|
if (bitmap == MAP_FAILED)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user