hv: Add reboot shell command

To trigger warm reboot for debugging.

Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Eddie Dong <Eddie.dong@intel.com>
This commit is contained in:
Yin Fengwei
2018-05-17 22:21:13 +08:00
committed by lijinxia
parent 0e5f7cb91c
commit 6ef48fa30e
6 changed files with 40 additions and 0 deletions

View File

@@ -33,6 +33,7 @@
#include <hv_arch.h>
#include <hv_debug.h>
#include <hypercall.h>
#include <reboot.h>
#include "shell_internal.h"
#include "serial_internal.h"
@@ -931,6 +932,12 @@ int shell_show_ptdev_info(struct shell *p_shell,
return 0;
}
int shell_reboot(__unused struct shell *p_shell,
__unused int argc, __unused char **argv)
{
return warm_reboot();
}
int shell_show_req_info(struct shell *p_shell,
__unused int argc, __unused char **argv)
{