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
F99267759: D40036.id121792.diff
Mon, Oct 7, 9:18 PM
Unknown Object (File)
Mon, Oct 7, 2:03 PM
Unknown Object (File)
Sun, Oct 6, 3:07 PM
Unknown Object (File)
Sat, Oct 5, 7:45 PM
Unknown Object (File)
Sat, Oct 5, 5:54 PM
Unknown Object (File)
Sat, Oct 5, 5:03 AM
Unknown Object (File)
Thu, Oct 3, 11:41 AM
Unknown Object (File)
Tue, Oct 1, 5:42 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.