Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144420068
D45334.id139031.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
558 B
Referenced Files
None
Subscribers
None
D45334.id139031.diff
View Options
diff --git a/usr.sbin/bhyve/amd64/pci_gvt-d.c b/usr.sbin/bhyve/amd64/pci_gvt-d.c
--- a/usr.sbin/bhyve/amd64/pci_gvt-d.c
+++ b/usr.sbin/bhyve/amd64/pci_gvt-d.c
@@ -222,8 +222,8 @@
opregion->len = header->size * KB;
munmap(header, sizeof(header));
- opregion->hva = mmap(NULL, opregion->len * KB, PROT_READ, MAP_SHARED,
- memfd, opregion->hpa);
+ opregion->hva = mmap(NULL, opregion->len, PROT_READ, MAP_SHARED, memfd,
+ opregion->hpa);
if (opregion->hva == MAP_FAILED) {
warn("%s: Unable to map host OpRegion", __func__);
close(memfd);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 8:36 AM (6 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28559265
Default Alt Text
D45334.id139031.diff (558 B)
Attached To
Mode
D45334: bhyve: use correct size to map the OpRegion
Attached
Detach File
Event Timeline
Log In to Comment