All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] docs/microvm.rst: fix alignment and explain shut down
@ 2019-11-15 16:13 Sergio Lopez
  2019-11-15 16:13 ` [PATCH 1/2] docs/microvm.rst: fix alignment in "Limitations" Sergio Lopez
  2019-11-15 16:13 ` [PATCH 2/2] docs/microvm.rst: add instructions for shutting down the guest Sergio Lopez
  0 siblings, 2 replies; 4+ messages in thread
From: Sergio Lopez @ 2019-11-15 16:13 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini, Sergio Lopez

Fix the alignment in the "Limitations" section and include an
explanation about the particularities of the microvm machine type when
it comes to triggering a guest initiated shut down.

Sergio Lopez (2):
  docs/microvm.rst: fix alignment in "Limitations"
  docs/microvm.rst: add instructions for shutting down the guest

 docs/microvm.rst | 27 ++++++++++++++++++++++++---
 1 file changed, 24 insertions(+), 3 deletions(-)

-- 
2.23.0



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] docs/microvm.rst: fix alignment in "Limitations"
  2019-11-15 16:13 [PATCH 0/2] docs/microvm.rst: fix alignment and explain shut down Sergio Lopez
@ 2019-11-15 16:13 ` Sergio Lopez
  2019-11-15 16:13 ` [PATCH 2/2] docs/microvm.rst: add instructions for shutting down the guest Sergio Lopez
  1 sibling, 0 replies; 4+ messages in thread
From: Sergio Lopez @ 2019-11-15 16:13 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini, Sergio Lopez

Fix the alignment of the items in the "Limitations" section.

Signed-off-by: Sergio Lopez <slp@redhat.com>
---
 docs/microvm.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/docs/microvm.rst b/docs/microvm.rst
index aae811a922..4cf84746b9 100644
--- a/docs/microvm.rst
+++ b/docs/microvm.rst
@@ -33,9 +33,9 @@ Limitations
 
 Currently, microvm does *not* support the following features:
 
- - PCI-only devices.
- - Hotplug of any kind.
- - Live migration across QEMU versions.
+- PCI-only devices.
+- Hotplug of any kind.
+- Live migration across QEMU versions.
 
 
 Using the microvm machine type
-- 
2.23.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] docs/microvm.rst: add instructions for shutting down the guest
  2019-11-15 16:13 [PATCH 0/2] docs/microvm.rst: fix alignment and explain shut down Sergio Lopez
  2019-11-15 16:13 ` [PATCH 1/2] docs/microvm.rst: fix alignment in "Limitations" Sergio Lopez
@ 2019-11-15 16:13 ` Sergio Lopez
  2019-11-15 16:26   ` Paolo Bonzini
  1 sibling, 1 reply; 4+ messages in thread
From: Sergio Lopez @ 2019-11-15 16:13 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini, Sergio Lopez

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>
---
 docs/microvm.rst | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/docs/microvm.rst b/docs/microvm.rst
index 4cf84746b9..fcf41fc1f6 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.
-- 
2.23.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] docs/microvm.rst: add instructions for shutting down the guest
  2019-11-15 16:13 ` [PATCH 2/2] docs/microvm.rst: add instructions for shutting down the guest Sergio Lopez
@ 2019-11-15 16:26   ` Paolo Bonzini
  0 siblings, 0 replies; 4+ messages in thread
From: Paolo Bonzini @ 2019-11-15 16:26 UTC (permalink / raw)
  To: Sergio Lopez, qemu-devel

On 15/11/19 17:13, Sergio Lopez wrote:
> 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>
> ---
>  docs/microvm.rst | 21 +++++++++++++++++++++
>  1 file changed, 21 insertions(+)
> 
> diff --git a/docs/microvm.rst b/docs/microvm.rst
> index 4cf84746b9..fcf41fc1f6 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.
> 

Queued, thanks.

Paolo



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-11-15 16:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-15 16:13 [PATCH 0/2] docs/microvm.rst: fix alignment and explain shut down Sergio Lopez
2019-11-15 16:13 ` [PATCH 1/2] docs/microvm.rst: fix alignment in "Limitations" Sergio Lopez
2019-11-15 16:13 ` [PATCH 2/2] docs/microvm.rst: add instructions for shutting down the guest Sergio Lopez
2019-11-15 16:26   ` Paolo Bonzini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.