Skip to content

Commit

Permalink
print: OACS Host Managed Live Migration Support (HMLMS)
Browse files Browse the repository at this point in the history
Additional HMLMS bit in OACS field (stdout)

Signed-off-by: Nate Thornton <[email protected]>
  • Loading branch information
NateThornton authored and igaw committed Dec 13, 2024
1 parent 9340c82 commit 8330814
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions nvme-print-stdout.c
Original file line number Diff line number Diff line change
Expand Up @@ -1933,8 +1933,9 @@ static void stdout_id_ctrl_mec(__u8 mec)
static void stdout_id_ctrl_oacs(__le16 ctrl_oacs)
{
__u16 oacs = le16_to_cpu(ctrl_oacs);
__u16 rsvd = (oacs & 0xF800) >> 11;
__u16 lock = (oacs >> 10) & 0x1;
__u16 rsvd = (oacs & 0xF000) >> 12;
__u16 hmlms = (oacs & 0x800) >> 11;
__u16 lock = (oacs & 0x400) >> 10;
__u16 glbas = (oacs & 0x200) >> 9;
__u16 dbc = (oacs & 0x100) >> 8;
__u16 vir = (oacs & 0x80) >> 7;
Expand All @@ -1947,7 +1948,9 @@ static void stdout_id_ctrl_oacs(__le16 ctrl_oacs)
__u16 sec = oacs & 0x1;

if (rsvd)
printf(" [15:11] : %#x\tReserved\n", rsvd);
printf(" [15:12] : %#x\tReserved\n", rsvd);
printf(" [11:11] : %#x\tHost Managed Live Migration %sSupported\n",
hmlms, hmlms ? "" : "Not ");
printf(" [10:10] : %#x\tLockdown Command and Feature %sSupported\n",
lock, lock ? "" : "Not ");
printf(" [9:9] : %#x\tGet LBA Status Capability %sSupported\n",
Expand Down

0 comments on commit 8330814

Please sign in to comment.