Page MenuHomeFreeBSD

bhyve: add helper for passthru specific mmio ranges
ClosedPublic

Authored by corvink on May 10 2023, 12:45 PM.
Tags
None
Referenced Files
F102604992: D40036.diff
Thu, Nov 14, 4:49 PM
F102554807: D40036.id121895.diff
Thu, Nov 14, 12:05 AM
Unknown Object (File)
Tue, Nov 12, 11:05 AM
Unknown Object (File)
Tue, Nov 12, 10:01 AM
Unknown Object (File)
Sun, Nov 10, 6:15 PM
Unknown Object (File)
Sun, Nov 10, 6:15 PM
Unknown Object (File)
Sat, Nov 9, 6:13 PM
Unknown Object (File)
Fri, Nov 8, 9:52 AM
Subscribers

Details

Summary

Intel GPUs have two special memory regions. They are called Graphics
Stolen Memory and OpRegion. bhyve has to emulate both of them. In order
to keep track of those special regions, add generic mmio ranges to the
passthru emulation.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 51410
Build 48301: arc lint + arc unit

Event Timeline

usr.sbin/bhyve/pci_passthru.h
18

Is something meant to dereference these pointers? If not, why are they pointer types? It looks like they should be integer types.

corvink added inline comments.
usr.sbin/bhyve/pci_passthru.h
18

I'm using this pointer to map and copy the OpRegion. See D40041.

This revision is now accepted and ready to land.May 11 2023, 2:37 PM
This revision was automatically updated to reflect the committed changes.
corvink marked an inline comment as done.