FreeBSD Bugzilla – Attachment 219488 Details for
Bug 250802
bhyve exited with status 134 when GPU PCI passthrough
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
debugging #2
1.patch (text/plain), 1.34 KB, created by
Konstantin Belousov
on 2020-11-09 12:16:02 UTC
(
hide
)
Description:
debugging #2
Filename:
MIME Type:
Creator:
Konstantin Belousov
Created:
2020-11-09 12:16:02 UTC
Size:
1.34 KB
patch
obsolete
>diff --git a/sys/amd64/vmm/io/ppt.c b/sys/amd64/vmm/io/ppt.c >index 547a14e6464..53c28763d0c 100644 >--- a/sys/amd64/vmm/io/ppt.c >+++ b/sys/amd64/vmm/io/ppt.c >@@ -452,8 +452,11 @@ ppt_map_mmio(struct vm *vm, int bus, int slot, int func, > struct pptseg *seg; > struct pptdev *ppt; > >+bool mine = gpa == 0xd0000000; >+if (mine) printf("ppt_map_mmio: pci0:%d:%d:%d\n", bus, slot, func); > ppt = ppt_find(bus, slot, func); > if (ppt != NULL) { >+ if (ppt->vm != vm && mine) printf("ppt_map_mmio: EBUSY\n"); > if (ppt->vm != vm) > return (EBUSY); > >@@ -465,11 +468,14 @@ ppt_map_mmio(struct vm *vm, int bus, int slot, int func, > seg->gpa = gpa; > seg->len = len; > } >+if (mine) printf("ppt_map_mmio: vm_map_mmio %d\n", error); > return (error); > } > } >+if (mine) printf("ppt_map_mmio: ENOSPC\n"); > return (ENOSPC); > } >+if (mine) printf("ppt_map_mmio: ENOENT\n"); > return (ENOENT); > } > >diff --git a/sys/amd64/vmm/vmm.c b/sys/amd64/vmm/vmm.c >index 3a1d0d54bca..1e715d458a9 100644 >--- a/sys/amd64/vmm/vmm.c >+++ b/sys/amd64/vmm/vmm.c >@@ -650,6 +650,7 @@ vm_mem_allocated(struct vm *vm, int vcpuid, vm_paddr_t gpa) > return (true); /* 'gpa' is sysmem or devmem */ > } > >+if (gpa >= 0xd0000000 && gpa < 0xe0000000) printf("ppt_is_mmio %#lx %d\n", gpa, ppt_is_mmio(vm, gpa)); > if (ppt_is_mmio(vm, gpa)) > return (true); /* 'gpa' is pci passthru mmio */ >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 250802
: 219488 |
219490
|
219501