2018-10-31 02:02:29 +08:00
|
|
|
.. _acrnshell:
|
2018-06-28 22:55:57 +08:00
|
|
|
|
|
|
|
ACRN Shell Commands
|
|
|
|
###################
|
|
|
|
|
|
|
|
The ACRN hypervisor shell supports the following commands:
|
|
|
|
|
|
|
|
.. list-table::
|
|
|
|
:header-rows: 1
|
|
|
|
:widths: 40 60
|
|
|
|
|
|
|
|
* - Command (and parameters)
|
|
|
|
- Description
|
|
|
|
* - help
|
|
|
|
- Displays information about supported hypervisor shell commands
|
|
|
|
* - vm_list
|
|
|
|
- Lists all VMs, displaying VM Name, VM ID, and VM State (ON=running)
|
|
|
|
* - vcpu_list
|
|
|
|
- Lists all VCPUs in all VMs
|
|
|
|
* - vcpu_dumpreg <vm_id, vcpu_id>
|
|
|
|
- Dumps registers for a specific VCPU
|
2018-08-02 10:56:24 +08:00
|
|
|
* - dumpmem <hva, length>
|
2018-08-02 10:53:34 +08:00
|
|
|
- Dumps host memory, starting a given address, and for
|
2018-06-28 22:55:57 +08:00
|
|
|
a given length (in bytes)
|
2018-08-02 10:53:34 +08:00
|
|
|
* - sos_console
|
2018-06-28 22:55:57 +08:00
|
|
|
- Switches to the SOS's console
|
|
|
|
* - int
|
|
|
|
- Lists interrupt information per CPU
|
|
|
|
* - pt
|
|
|
|
- Shows pass-through device information
|
|
|
|
* - reboot
|
2018-08-02 10:53:34 +08:00
|
|
|
- Triggers a system reboot (immediately)
|
2018-08-04 00:03:10 +08:00
|
|
|
* - dump_ioapic
|
2018-06-28 22:55:57 +08:00
|
|
|
- Shows native ioapic information
|
|
|
|
* - vmexit
|
|
|
|
- Shows vmexit profiling
|
|
|
|
* - logdump <pcpu_id>
|
|
|
|
- Dumps the log buffer for the physical CPU
|
2018-08-02 10:53:34 +08:00
|
|
|
* - loglevel [console_loglevel] [mem_loglevel]
|
2018-08-03 16:43:55 +08:00
|
|
|
- Get (when no parameters are given) or Set loglevel [0 (none) - 6 (verbose)] for the console and optionally
|
2018-06-28 22:55:57 +08:00
|
|
|
for memory
|
|
|
|
* - cpuid <leaf> [subleaf]
|
|
|
|
- Displays the CPUID leaf [subleaf], in hexadecimal
|