Skip to content

Commit 8330814

Browse files
NateThorntonigaw
authored andcommitted
print: OACS Host Managed Live Migration Support (HMLMS)
Additional HMLMS bit in OACS field (stdout) Signed-off-by: Nate Thornton <[email protected]>
1 parent 9340c82 commit 8330814

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

nvme-print-stdout.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1933,8 +1933,9 @@ static void stdout_id_ctrl_mec(__u8 mec)
19331933
static void stdout_id_ctrl_oacs(__le16 ctrl_oacs)
19341934
{
19351935
__u16 oacs = le16_to_cpu(ctrl_oacs);
1936-
__u16 rsvd = (oacs & 0xF800) >> 11;
1937-
__u16 lock = (oacs >> 10) & 0x1;
1936+
__u16 rsvd = (oacs & 0xF000) >> 12;
1937+
__u16 hmlms = (oacs & 0x800) >> 11;
1938+
__u16 lock = (oacs & 0x400) >> 10;
19381939
__u16 glbas = (oacs & 0x200) >> 9;
19391940
__u16 dbc = (oacs & 0x100) >> 8;
19401941
__u16 vir = (oacs & 0x80) >> 7;
@@ -1947,7 +1948,9 @@ static void stdout_id_ctrl_oacs(__le16 ctrl_oacs)
19471948
__u16 sec = oacs & 0x1;
19481949

19491950
if (rsvd)
1950-
printf(" [15:11] : %#x\tReserved\n", rsvd);
1951+
printf(" [15:12] : %#x\tReserved\n", rsvd);
1952+
printf(" [11:11] : %#x\tHost Managed Live Migration %sSupported\n",
1953+
hmlms, hmlms ? "" : "Not ");
19511954
printf(" [10:10] : %#x\tLockdown Command and Feature %sSupported\n",
19521955
lock, lock ? "" : "Not ");
19531956
printf(" [9:9] : %#x\tGet LBA Status Capability %sSupported\n",

0 commit comments

Comments
 (0)