HomeFreeBSD

bhyve: NVMe queue create must init head/tail

Description

bhyve: NVMe queue create must init head/tail

The NVMe emulation code did not explicitly initialize queue head and
tail pointers on queue creation. As these pointers are part of
calloc()'ed memory, this only becomes a problem if the queues are
deleted and then recreated.

This error can manifest with messages about completions not matching a
command.

Details

Provenance
chuckAuthored on
Parents
rS364602: bhyve: NVMe set nominal health values
Branches
Unknown
Tags
Unknown