Page MenuHomeFreeBSD

bhyve: rework BAR emulation
AbandonedPublic

Authored by corvink on Jan 22 2021, 9:23 AM.
Tags
Referenced Files
F102420412: D28277.diff
Tue, Nov 12, 1:05 AM
Unknown Object (File)
Sun, Nov 10, 9:43 PM
Unknown Object (File)
Wed, Nov 6, 11:34 AM
Unknown Object (File)
Tue, Nov 5, 11:25 AM
Unknown Object (File)
Thu, Oct 17, 1:10 AM
Unknown Object (File)
Tue, Oct 15, 12:46 PM
Unknown Object (File)
Mon, Oct 14, 1:38 AM
Unknown Object (File)
Oct 11 2024, 8:38 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