svn commit: r307904 - head/sys/amd64/vmm/amd

Andriy Gapon avg at FreeBSD.org
Tue Oct 25 10:59:22 UTC 2016


Author: avg
Date: Tue Oct 25 10:59:21 2016
New Revision: 307904
URL: https://svnweb.freebsd.org/changeset/base/307904

Log:
  fix up r307903, use correct max address definition
  
  MFC after:	1 week
  X-MFC with:	r307903

Modified:
  head/sys/amd64/vmm/amd/svm.c

Modified: head/sys/amd64/vmm/amd/svm.c
==============================================================================
--- head/sys/amd64/vmm/amd/svm.c	Tue Oct 25 10:34:14 2016	(r307903)
+++ head/sys/amd64/vmm/amd/svm.c	Tue Oct 25 10:59:21 2016	(r307904)
@@ -47,6 +47,7 @@ __FBSDID("$FreeBSD$");
 #include <machine/vmm.h>
 #include <machine/vmm_dev.h>
 #include <machine/vmm_instruction_emul.h>
+#include <machine/vmparam.h>
 
 #include "vmm_lapic.h"
 #include "vmm_stat.h"
@@ -518,7 +519,7 @@ svm_vminit(struct vm *vm, pmap_t pmap)
 	int i;
 
 	svm_sc = contigmalloc(sizeof (*svm_sc), M_SVM, M_WAITOK | M_ZERO,
-	    0, BUS_SPACE_MAXADDR, PAGE_SIZE, 0);
+	    0, VM_MAX_ADDRESS, PAGE_SIZE, 0);
 	svm_sc->vm = vm;
 	svm_sc->nptp = (vm_offset_t)vtophys(pmap->pm_pml4);
 


More information about the svn-src-all mailing list