qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

docs/microvm.rst: add instructions for shutting down the guest

Add a new section explaining the particularities of the microvm
machine type for triggering a guest-initiated shut down.

Signed-off-by: Sergio Lopez <slp@redhat.com>
Message-Id: <20191115161338.42864-3-slp@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

authored by

Sergio Lopez and committed by
Paolo Bonzini
62e9dc35 ff9d7089

+21
+21
docs/microvm.rst
··· 106 106 -device virtio-blk-device,drive=test \ 107 107 -netdev tap,id=tap0,script=no,downscript=no \ 108 108 -device virtio-net-device,netdev=tap0 109 + 110 + 111 + Triggering a guest-initiated shut down 112 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 113 + 114 + As the microvm machine type includes just a small set of system 115 + devices, some x86 mechanisms for rebooting or shutting down the 116 + system, like sending a key sequence to the keyboard or writing to an 117 + ACPI register, doesn't have any effect in the VM. 118 + 119 + The recommended way to trigger a guest-initiated shut down is by 120 + generating a ``triple-fault``, which will cause the VM to initiate a 121 + reboot. Additionally, if the ``-no-reboot`` argument is present in the 122 + command line, QEMU will detect this event and terminate its own 123 + execution gracefully. 124 + 125 + Linux does support this mechanism, but by default will only be used 126 + after other options have been tried and failed, causing the reboot to 127 + be delayed by a small number of seconds. It's possible to instruct it 128 + to try the triple-fault mechanism first, by adding ``reboot=t`` to the 129 + kernel's command line.