Page MenuHomeFreeBSD

bhyve: rework BAR emulation
AbandonedPublic

Authored by corvink on Jan 22 2021, 9:23 AM.
Tags
Referenced Files
Unknown Object (File)
Sun, Nov 30, 6:57 PM
Unknown Object (File)
Fri, Nov 28, 2:52 PM
Unknown Object (File)
Thu, Nov 27, 2:59 PM
Unknown Object (File)
Oct 30 2025, 2:59 PM
Unknown Object (File)
Oct 29 2025, 4:21 PM
Unknown Object (File)
Oct 29 2025, 1:26 PM
Unknown Object (File)
Oct 29 2025, 1:23 PM
Unknown Object (File)
Oct 29 2025, 1:23 PM

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