qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 0/3] add exit-script option to qemu


From: Jason Wang
Subject: Re: [Qemu-devel] [PATCH v2 0/3] add exit-script option to qemu
Date: Mon, 8 Oct 2018 11:28:31 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1



On 2018年10月04日 19:43, Dominik Csapak wrote:
this patch series aims to execute a script when qemu exits
so that one can do cleanups when using --daemonize without
having to use the qmp monitor

Hi:

Can you give a example of why it must be done through this way? It looks to me that we can do this by monitor the pid and behave accordingly through bash.

Thanks


changes since v1:

* refactored as qemu_launch_script, only for non-windows platforms
* updated net/tap.c to use qemu_launch_script instead of launch_script
* fixed a small error in the option description

Dominik Csapak (3):
   osdep: add qemu_launch_script for executing scripts
   tap: use qemu_launch_script instead of launch_script
   vl.c: call optional script when exiting

  include/qemu/osdep.h | 12 +++++++++++
  net/tap.c            | 56 ++++++++++------------------------------------------
  qemu-options.hx      | 20 +++++++++++++++++++
  util/oslib-posix.c   | 34 +++++++++++++++++++++++++++++++
  util/oslib-win32.c   |  8 ++++++++
  vl.c                 | 29 +++++++++++++++++++++++++++
  6 files changed, 113 insertions(+), 46 deletions(-)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]