]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Change the lower bound for guest vmspace allocation to 0 instead of
authorPeter Grehan <grehan@FreeBSD.org>
Sun, 23 Nov 2014 23:07:21 +0000 (23:07 +0000)
committerPeter Grehan <grehan@FreeBSD.org>
Sun, 23 Nov 2014 23:07:21 +0000 (23:07 +0000)
commit526c8885fdfe75dbf81bfb507687985d5e8cb48d
tree89d61fcb4edc58eb3c3602227f18ce5e8cd6d9fa
parentb8d52ac37c9163fd48e952341bbffbbd1945d3c8
Change the lower bound for guest vmspace allocation to 0 instead of
using the VM_MIN_ADDRESS constant.

HardenedBSD redefines VM_MIN_ADDRESS to be 64K, which results in
bhyve VM startup failing. Guest memory is always assumed to start
at 0 so use the absolute value instead.

Reported by: Shawn Webb, lattera at gmail com
Reviewed by: neel, grehan
Obtained from: Oliver Pinter via HardenedBSD
https://github.com/HardenedBSD/hardenedBSD/commit/23bd719ce1e3a8cc42fc8317b1c7c6d9e74dcba0
MFC after: 1 week
sys/amd64/vmm/vmm.c