Page MenuHomeFreeBSD

bhyve nvme: Fix Set Features
ClosedPublic

Authored by chuck on Dec 19 2021, 4:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 1 2024, 12:51 PM
Unknown Object (File)
Sep 28 2024, 7:32 AM
Unknown Object (File)
Sep 18 2024, 1:37 PM
Unknown Object (File)
Sep 7 2024, 9:39 PM
Unknown Object (File)
Sep 4 2024, 4:18 PM
Unknown Object (File)
Sep 2 2024, 7:55 AM
Unknown Object (File)
Sep 1 2024, 2:19 PM
Unknown Object (File)
Aug 31 2024, 1:44 AM

Details

Summary

Be more conservative and only support the Features mandatory for an I/O
Controller.

Avoids a "hang" in UNH test 1.2.10 associated with Predictable Latency
Mode Configuration and Host Behavior Support features.

Tested by:
MFC after: 2 weeks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

chuck requested review of this revision.Dec 19 2021, 4:17 PM

nvme_feature_obj has a cdw11 field to store values for set command. but some features are not only take one uint32_t input, but also other data types. such as timestamp, lba range type etc.
for further implements, can we have a void * here? let each feature decide what data structure it should be.

struct nvme_feature_obj {
	void * data;
	nvme_feature_cb	set;
	nvme_feature_cb	get;
	bool namespace_specific;
};
This revision was not accepted when it landed; it landed in state Needs Review.Jan 29 2022, 11:17 PM
This revision was automatically updated to reflect the committed changes.