Skip to content

Commit 1234f4f

Browse files
conghuic23acrnsi
authored andcommitted
HV: shell: rename sos_console to vm_console
Change sos_console to vm_console, as this command is used to switch console between VMs. Tracked-On: #2987 Signed-off-by: Conghui Chen <conghui.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
1 parent 2362e58 commit 1234f4f

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

hypervisor/debug/shell.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static int32_t shell_list_vm(__unused int32_t argc, __unused char **argv);
3737
static int32_t shell_list_vcpu(__unused int32_t argc, __unused char **argv);
3838
static int32_t shell_vcpu_dumpreg(int32_t argc, char **argv);
3939
static int32_t shell_dumpmem(int32_t argc, char **argv);
40-
static int32_t shell_to_sos_console(int32_t argc, char **argv);
40+
static int32_t shell_to_vm_console(int32_t argc, char **argv);
4141
static int32_t shell_show_cpu_int(__unused int32_t argc, __unused char **argv);
4242
static int32_t shell_show_ptdev_info(__unused int32_t argc, __unused char **argv);
4343
static int32_t shell_show_vioapic_info(int32_t argc, char **argv);
@@ -80,10 +80,10 @@ static struct shell_cmd shell_cmds[] = {
8080
.fcn = shell_dumpmem,
8181
},
8282
{
83-
.str = SHELL_CMD_SOS_CONSOLE,
84-
.cmd_param = SHELL_CMD_SOS_CONSOLE_PARAM,
85-
.help_str = SHELL_CMD_SOS_CONSOLE_HELP,
86-
.fcn = shell_to_sos_console,
83+
.str = SHELL_CMD_VM_CONSOLE,
84+
.cmd_param = SHELL_CMD_VM_CONSOLE_PARAM,
85+
.help_str = SHELL_CMD_VM_CONSOLE_HELP,
86+
.fcn = shell_to_vm_console,
8787
},
8888
{
8989
.str = SHELL_CMD_INTERRUPT,
@@ -842,7 +842,7 @@ static int32_t shell_dumpmem(int32_t argc, char **argv)
842842
return 0;
843843
}
844844

845-
static int32_t shell_to_sos_console(__unused int32_t argc, __unused char **argv)
845+
static int32_t shell_to_vm_console(__unused int32_t argc, __unused char **argv)
846846
{
847847
char temp_str[TEMP_STR_SIZE];
848848
uint16_t vm_id = 0U;

hypervisor/debug/shell_priv.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ struct shell {
5555
#define SHELL_CMD_DUMPMEM_HELP "Dump host memory, starting at a given address, and for a given length (in "\
5656
"bytes)"
5757

58-
#define SHELL_CMD_SOS_CONSOLE "sos_console"
59-
#define SHELL_CMD_SOS_CONSOLE_PARAM NULL
60-
#define SHELL_CMD_SOS_CONSOLE_HELP "Switch to the SOS's console. Use [Ctrl+Spacebar] to return to the ACRN shell "\
58+
#define SHELL_CMD_VM_CONSOLE "vm_console"
59+
#define SHELL_CMD_VM_CONSOLE_PARAM "<vm id>"
60+
#define SHELL_CMD_VM_CONSOLE_HELP "Switch to the VM's console. Use [Ctrl+Spacebar] to return to the ACRN shell "\
6161
"console"
6262

6363
#define SHELL_CMD_INTERRUPT "int"

0 commit comments

Comments
 (0)