Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145024304
D54210.1777207794.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
863 B
Referenced Files
None
Subscribers
None
D54210.1777207794.diff
View Options
diff --git a/sys/amd64/vmm/vmm.c b/sys/amd64/vmm/vmm.c
--- a/sys/amd64/vmm/vmm.c
+++ b/sys/amd64/vmm/vmm.c
@@ -652,10 +652,10 @@
pmap = vmspace_pmap(vm_vmspace(vm));
for (i = 0; i < VM_MAX_MEMMAPS; i++) {
- if (!vm_memseg_sysmem(vm, i))
+ mm = &vm->mem.mem_maps[i];
+ if (!vm_memseg_sysmem(vm, mm->segid))
continue;
- mm = &vm->mem.mem_maps[i];
KASSERT((mm->flags & VM_MEMMAP_F_IOMMU) == 0,
("iommu map found invalid memmap %#lx/%#lx/%#x",
mm->gpa, mm->len, mm->flags));
@@ -700,10 +700,10 @@
sx_assert(&vm->mem.mem_segs_lock, SX_LOCKED);
for (i = 0; i < VM_MAX_MEMMAPS; i++) {
- if (!vm_memseg_sysmem(vm, i))
+ mm = &vm->mem.mem_maps[i];
+ if (!vm_memseg_sysmem(vm, mm->segid))
continue;
- mm = &vm->mem.mem_maps[i];
if ((mm->flags & VM_MEMMAP_F_IOMMU) == 0)
continue;
mm->flags &= ~VM_MEMMAP_F_IOMMU;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 26, 12:49 PM (10 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28432954
Default Alt Text
D54210.1777207794.diff (863 B)
Attached To
Mode
D54210: amd64/vmm.c: Fix an incorrect memory segment check in vm_iommu_{un}map
Attached
Detach File
Event Timeline
Log In to Comment