HomeFreeBSD

bhyve: Consolidate NVMe CQ update

Description

bhyve: Consolidate NVMe CQ update

Consolidate the code which writes Completion Queue entries and updates
the CQ doorbell value. While in the neighborhood, convert the "toggle CQ
phase bit" code to use an XOR operation instead of an "if/else" branch.

Tested by: Jason Tubnor
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D24882

Details

Provenance
chuckAuthored on
Differential Revision
D24882: bhyve: Consolidate NVMe CQ update
Parents
rS362748: bhyve: add locks around NVMe queue accesses
Branches
Unknown
Tags
Unknown