[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 08/12] docs/microvm.rst: add instructions for shutting down the gu
From: |
Paolo Bonzini |
Subject: |
[PULL 08/12] docs/microvm.rst: add instructions for shutting down the guest |
Date: |
Tue, 19 Nov 2019 17:08:44 +0100 |
From: Sergio Lopez <address@hidden>
Add a new section explaining the particularities of the microvm
machine type for triggering a guest-initiated shut down.
Signed-off-by: Sergio Lopez <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
docs/microvm.rst | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/docs/microvm.rst b/docs/microvm.rst
index 4cf8474..fcf41fc 100644
--- a/docs/microvm.rst
+++ b/docs/microvm.rst
@@ -106,3 +106,24 @@ disabled::
-device virtio-blk-device,drive=test \
-netdev tap,id=tap0,script=no,downscript=no \
-device virtio-net-device,netdev=tap0
+
+
+Triggering a guest-initiated shut down
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+As the microvm machine type includes just a small set of system
+devices, some x86 mechanisms for rebooting or shutting down the
+system, like sending a key sequence to the keyboard or writing to an
+ACPI register, doesn't have any effect in the VM.
+
+The recommended way to trigger a guest-initiated shut down is by
+generating a ``triple-fault``, which will cause the VM to initiate a
+reboot. Additionally, if the ``-no-reboot`` argument is present in the
+command line, QEMU will detect this event and terminate its own
+execution gracefully.
+
+Linux does support this mechanism, but by default will only be used
+after other options have been tried and failed, causing the reboot to
+be delayed by a small number of seconds. It's possible to instruct it
+to try the triple-fault mechanism first, by adding ``reboot=t`` to the
+kernel's command line.
--
1.8.3.1
- [PULL 00/12] Misc patches for QEMU 4.2-rc, Paolo Bonzini, 2019/11/19
- [PULL 02/12] microvm: fix memory leak in microvm_fix_kernel_cmdline, Paolo Bonzini, 2019/11/19
- [PULL 01/12] scripts: Detect git worktrees for get_maintainer.pl --git, Paolo Bonzini, 2019/11/19
- [PULL 03/12] target/i386: add PSCHANGE_NO bit for the ARCH_CAPABILITIES MSR, Paolo Bonzini, 2019/11/19
- [PULL 04/12] target/i386: Export TAA_NO bit to guests, Paolo Bonzini, 2019/11/19
- [PULL 05/12] hw/i386: Fix compiler warning when CONFIG_IDE_ISA is disabled, Paolo Bonzini, 2019/11/19
- [PULL 06/12] vfio: vfio-pci requires EDID, Paolo Bonzini, 2019/11/19
- [PULL 07/12] docs/microvm.rst: fix alignment in "Limitations", Paolo Bonzini, 2019/11/19
- [PULL 08/12] docs/microvm.rst: add instructions for shutting down the guest,
Paolo Bonzini <=
- [PULL 09/12] hw/i386: Move save_tsc_khz from PCMachineClass to X86MachineClass, Paolo Bonzini, 2019/11/19
- [PULL 10/12] scsi: deprecate scsi-disk, Paolo Bonzini, 2019/11/19
- [PULL 11/12] Revert "mc146818rtc: fix timer interrupt reinjection", Paolo Bonzini, 2019/11/19
- [PULL 12/12] mc146818rtc: fix timer interrupt reinjection again, Paolo Bonzini, 2019/11/19
- Re: [PULL 00/12] Misc patches for QEMU 4.2-rc, Peter Maydell, 2019/11/19
- Re: [PULL 00/12] Misc patches for QEMU 4.2-rc, no-reply, 2019/11/19