Page MenuHomeFreeBSD

bhyve: rework BAR emulation
AbandonedPublic

Authored by corvink on Jan 22 2021, 9:23 AM.
Tags
Referenced Files
Unknown Object (File)
Feb 27 2025, 9:12 AM
Unknown Object (File)
Feb 27 2025, 1:59 AM
Unknown Object (File)
Feb 23 2025, 9:26 AM
Unknown Object (File)
Feb 11 2025, 6:08 AM
Unknown Object (File)
Feb 10 2025, 10:51 AM
Unknown Object (File)
Feb 9 2025, 9:13 PM
Unknown Object (File)
Jan 26 2025, 10:27 PM
Unknown Object (File)
Jan 11 2025, 6:24 AM

Details

Reviewers
None
Group Reviewers
bhyve
Summary

If the guest writes ~0U to one register of a 64 bit BAR (to read it's size), bhyve registers a BAR with an invalid address. This patch avoids this behaviour.

Additionally, this BAR emulation is required for GVT-d (see D26209) and for GPU Passthrough of AMD graphic cards (see D27456).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped