Page MenuHomeFreeBSD

bhyve: keep physical and virtual COMMAND reg in sync
ClosedPublic

Authored by corvink on Oct 27 2021, 7:44 AM.
Tags
Referenced Files
F149748183: D32687.diff
Thu, Mar 26, 6:16 PM
Unknown Object (File)
Wed, Mar 25, 6:53 AM
Unknown Object (File)
Fri, Mar 20, 5:34 AM
Unknown Object (File)
Tue, Mar 17, 8:13 AM
Unknown Object (File)
Wed, Mar 11, 1:45 AM
Unknown Object (File)
Thu, Feb 26, 3:27 PM
Unknown Object (File)
Thu, Feb 26, 12:38 PM
Unknown Object (File)
Jan 29 2026, 6:59 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable