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
Unknown Object (File)
Feb 28 2024, 9:02 PM
Unknown Object (File)
Jan 27 2024, 10:36 AM
Unknown Object (File)
Jan 27 2024, 10:35 AM
Unknown Object (File)
Jan 27 2024, 10:35 AM
Unknown Object (File)
Jan 26 2024, 7:27 PM
Unknown Object (File)
Dec 23 2023, 1:01 AM
Unknown Object (File)
Dec 10 2023, 10:58 PM
Unknown Object (File)
Nov 26 2023, 12:26 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 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.