mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
bhyve: limit max GPA to VM_MAXUSER_ADDRESS_LA48.
We use 4-level EPT pages, correct the upper bound. Reviewed by: grehan Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D27402
This commit is contained in:
parent
a9d4fe977a
commit
3c48106aaa
1 changed files with 3 additions and 3 deletions
|
|
@ -49,12 +49,12 @@ __FBSDID("$FreeBSD$");
|
|||
#include <sys/vnode.h>
|
||||
|
||||
#include <vm/vm.h>
|
||||
#include <vm/vm_param.h>
|
||||
#include <vm/vm_extern.h>
|
||||
#include <vm/vm_object.h>
|
||||
#include <vm/vm_page.h>
|
||||
#include <vm/pmap.h>
|
||||
#include <vm/vm_map.h>
|
||||
#include <vm/vm_extern.h>
|
||||
#include <vm/vm_param.h>
|
||||
#include <vm/vm_pager.h>
|
||||
#include <vm/vm_kern.h>
|
||||
#include <vm/vnode_pager.h>
|
||||
|
|
@ -483,7 +483,7 @@ vm_create(const char *name, struct vm **retvm)
|
|||
if (name == NULL || strlen(name) >= VM_MAX_NAMELEN)
|
||||
return (EINVAL);
|
||||
|
||||
vmspace = vmmops_vmspace_alloc(0, VM_MAXUSER_ADDRESS);
|
||||
vmspace = vmmops_vmspace_alloc(0, VM_MAXUSER_ADDRESS_LA48);
|
||||
if (vmspace == NULL)
|
||||
return (ENOMEM);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue