Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149250288
D45334.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
559 B
Referenced Files
None
Subscribers
None
D45334.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
Tue, Mar 24, 7:11 AM (4 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30219957
Default Alt Text
D45334.diff (559 B)
Attached To
Mode
D45334: bhyve: use correct size to map the OpRegion
Attached
Detach File
Event Timeline
Log In to Comment