Page MenuHomeFreeBSD

bhyve: rework BAR emulation
AbandonedPublic

Authored by corvink on Jan 22 2021, 9:23 AM.
Tags
Referenced Files
Unknown Object (File)
Sun, Oct 11, 2:57 PM
Unknown Object (File)
Sun, Oct 11, 2:49 PM
Unknown Object (File)
Fri, Oct 2, 10:17 AM
Unknown Object (File)
Sep 10 2026, 5:35 PM
Unknown Object (File)
Sep 8 2026, 6:02 PM
Unknown Object (File)
Sep 8 2026, 12:28 AM
Unknown Object (File)
Sep 6 2026, 5:58 AM
Unknown Object (File)
Sep 5 2026, 10:22 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