Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Sep 2020 03:55:50 +0000 (UTC)
From:      Peter Grehan <grehan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r365443 - stable/12/sys/amd64/vmm
Message-ID:  <202009080355.0883to9S039050@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009080355.0883to9S039050>