Page MenuHomeFreeBSD

bhyve: keep physical and virtual COMMAND reg in sync
ClosedPublic

Authored by c.koehne_beckhoff.com on Oct 27 2021, 7:44 AM.

Details

Summary

On startup all virtual BARs are registered. Additionally, the encoding bit in the virtual cmd register is set. After that, the passthru emulation overwrites the virtual cmd register with the physical one. This could lead to a mismatch between registered BARs and the encoding bits in the cmd register. Instead of writing the physical to the virtual cmd register, write the virtual to the physical cmd register to solve this issue.

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.