Sponsored by: Chelsio Communications
Details
- Reviewers
imp ken - Group Reviewers
bhyve cam - Commits
- rG6f308bcf5724: ctl: Support NVMe requests in debug trace functions
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
If you have SPDX tags and no license text, then it's incorporated by reference and isn't needed. The actual copyright notices are still needed and are present.
sys/cam/ctl/ctl_nvme_all.c | ||
---|---|---|
23 | Yeah. I'm not sure I want a single .c file to handle all these since different places want to do different things with opcodes (and it gets all kind of weird with sys/conf/files, etc.), but one thing I've thought about is adding some table macros in nvme.h along the lines of: /* M is a caller-supplied macro */ #define NVME_ADMIN_OPCODES(M) \ M(DELETE_IO_SQ) \ M(CREATE_IO_SQ) \ .... Then you would do something like: #define OPC_ENTRY(x) [NVME_OPC_ ## x] = #x11 static const char *admin_opcodes[256] = { NVME_ADMIN_OPCODES(OPC_ENTRY) }; |
sys/cam/ctl/ctl_nvme_all.c | ||
---|---|---|
23 | Yes indeed. I have a need for it for the dtrace based camdump that I have been working on, but not in 'C' format... |
usr.sbin/bhyve/Makefile | ||
---|---|---|
30 | Apologies for being dense. Why does bhyve need this? This review doesn't seem to modify bhyve to use these commands. |
usr.sbin/bhyve/Makefile | ||
---|---|---|
30 | Because bhyve uses ctl_util.c from the kernel which needs it. |
usr.sbin/bhyve/Makefile | ||
---|---|---|
30 | Oh, that's right. I'd forgotten that CTL gets pulled into bhyve for SCSI emulation. |