mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-12-16 01:42:39 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user