Skip to content

Commit 01543ca

Browse files
committed
plugin/lm: Introduce Live Migration plugin
Implementation of TP 4159 PCIe Infrastructure for Live Migration plugin. Includes command support for Track Send, Migration Receive, Migration Send, and Controller Data Queue; Identify Controller LM related fields; Bash and ZSH completions. Changes are isolated to the User Data Migration subset, with Track Memory functionality deferred to a future commit. Signed-off-by: Nate Thornton <[email protected]>
1 parent 7d6cf87 commit 01543ca

File tree

10 files changed

+1061
-6
lines changed

10 files changed

+1061
-6
lines changed

nvme-print-stdout.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1933,9 +1933,8 @@ 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 & 0xF000) >> 12;
1937-
__u16 hmlms = (oacs & 0x800) >> 11;
1938-
__u16 lock = (oacs & 0x400) >> 10;
1936+
__u16 rsvd = (oacs & 0xF800) >> 11;
1937+
__u16 lock = (oacs >> 10) & 0x1;
19391938
__u16 glbas = (oacs & 0x200) >> 9;
19401939
__u16 dbc = (oacs & 0x100) >> 8;
19411940
__u16 vir = (oacs & 0x80) >> 7;
@@ -1948,9 +1947,7 @@ static void stdout_id_ctrl_oacs(__le16 ctrl_oacs)
19481947
__u16 sec = oacs & 0x1;
19491948

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

0 commit comments

Comments
 (0)