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
F102447326: D40036.diff
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
Unknown Object (File)
Thu, Nov 7, 8:36 PM
Unknown Object (File)
Thu, Nov 7, 1:22 PM
Unknown Object (File)
Wed, Nov 6, 2:49 PM
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 Not Applicable
Unit
Tests Not Applicable

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.