svn commit: r365443 - stable/12/sys/amd64/vmm

Peter Grehan grehan at FreeBSD.org
Tue Sep 8 03:55:50 UTC 2020


Author: grehan
Date: Tue Sep  8 03:55:49 2020
New Revision: 365443
URL: https://svnweb.freebsd.org/changeset/base/365443

Log:
  MFC 364339
     Allow guest device MMIO access from bootmem memory segments.
  
     Differential Revision: https://reviews.freebsd.org/D25955

Modified:
  stable/12/sys/amd64/vmm/vmm.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/amd64/vmm/vmm.c
==============================================================================
--- stable/12/sys/amd64/vmm/vmm.c	Tue Sep  8 03:00:31 2020	(r365442)
+++ stable/12/sys/amd64/vmm/vmm.c	Tue Sep  8 03:55:49 2020	(r365443)
@@ -980,8 +980,7 @@ vm_gpa_hold(struct vm *vm, int vcpuid, vm_paddr_t gpa,
 	count = 0;
 	for (i = 0; i < VM_MAX_MEMMAPS; i++) {
 		mm = &vm->mem_maps[i];
-		if (sysmem_mapping(vm, mm) && gpa >= mm->gpa &&
-		    gpa < mm->gpa + mm->len) {
+		if (gpa >= mm->gpa && gpa < mm->gpa + mm->len) {
 			count = vm_fault_quick_hold_pages(&vm->vmspace->vm_map,
 			    trunc_page(gpa), PAGE_SIZE, reqprot, &m, 1);
 			break;


More information about the svn-src-stable-12 mailing list