2021-03-12 22:41:44 +01:00
|
|
|
Virtual System Controller
|
|
|
|
=========================
|
|
|
|
|
2023-09-27 17:12:03 +02:00
|
|
|
The ``virt-ctrl`` device is a simple interface defined for the pure
|
|
|
|
virtual machine with no hardware reference implementation to allow the
|
|
|
|
guest kernel to send command to the host hypervisor.
|
2021-03-12 22:41:44 +01:00
|
|
|
|
|
|
|
The specification can evolve, the current state is defined as below.
|
|
|
|
|
|
|
|
This is a MMIO mapped device using 256 bytes.
|
|
|
|
|
|
|
|
Two 32bit registers are defined:
|
|
|
|
|
2023-09-27 17:12:03 +02:00
|
|
|
the features register (read-only, address 0x00)
|
2021-03-12 22:41:44 +01:00
|
|
|
This register allows the device to report features supported by the
|
|
|
|
controller.
|
|
|
|
The only feature supported for the moment is power control (0x01).
|
|
|
|
|
2023-09-27 17:12:03 +02:00
|
|
|
the command register (write-only, address 0x04)
|
2021-03-12 22:41:44 +01:00
|
|
|
This register allows the kernel to send the commands to the hypervisor.
|
|
|
|
The implemented commands are part of the power control feature and
|
|
|
|
are reset (1), halt (2) and panic (3).
|
|
|
|
A basic command, no-op (0), is always present and can be used to test the
|
|
|
|
register access. This command has no effect.
|