[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 6/7] stubs: Split machine-init-done as machine-init and machi
From: |
Marc-André Lureau |
Subject: |
Re: [PATCH 6/7] stubs: Split machine-init-done as machine-init and machine-notify |
Date: |
Thu, 23 Apr 2020 22:43:00 +0200 |
On Thu, Apr 23, 2020 at 10:22 PM Philippe Mathieu-Daudé
<address@hidden> wrote:
>
> As the machine notify handlers are only used in system emulation,
> split the current file in two, and only build the notifier when
> system emulation is used.
>
> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>
> ---
> stubs/machine-init.c | 4 ++++
> stubs/{machine-init-done.c => machine-notify.c} | 2 --
> stubs/Makefile.objs | 3 ++-
> 3 files changed, 6 insertions(+), 3 deletions(-)
> create mode 100644 stubs/machine-init.c
> rename stubs/{machine-init-done.c => machine-notify.c} (78%)
>
> diff --git a/stubs/machine-init.c b/stubs/machine-init.c
> new file mode 100644
> index 0000000000..7622930ee0
> --- /dev/null
> +++ b/stubs/machine-init.c
> @@ -0,0 +1,4 @@
> +#include "qemu/osdep.h"
> +#include "sysemu/sysemu.h"
> +
> +bool machine_init_done = true;
> diff --git a/stubs/machine-init-done.c b/stubs/machine-notify.c
> similarity index 78%
> rename from stubs/machine-init-done.c
> rename to stubs/machine-notify.c
> index cd8e81392d..d164ecccb9 100644
> --- a/stubs/machine-init-done.c
> +++ b/stubs/machine-notify.c
> @@ -1,8 +1,6 @@
> #include "qemu/osdep.h"
> #include "sysemu/sysemu.h"
>
> -bool machine_init_done = true;
> -
> void qemu_add_machine_init_done_notifier(Notifier *notify)
> {
> }
> diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs
> index 45be5dc0ed..765659a3f9 100644
> --- a/stubs/Makefile.objs
> +++ b/stubs/Makefile.objs
> @@ -15,7 +15,8 @@ stub-obj-y += iothread-lock.o
> stub-obj-y += is-daemonized.o
> stub-obj-$(CONFIG_LINUX_AIO) += linux-aio.o
> stub-obj-$(CONFIG_LINUX_IO_URING) += io_uring.o
> -stub-obj-y += machine-init-done.o
> +stub-obj-y += machine-init.o
> +stub-obj-$(CONFIG_SOFTMMU) += machine-notify.o
> stub-obj-y += migr-blocker.o
> stub-obj-y += change-state-handler.o
> stub-obj-y += monitor.o
> --
> 2.21.1
>
>
--
Marc-André Lureau
- [PATCH 0/7] chardev: Reduce system emulation specific code, Philippe Mathieu-Daudé, 2020/04/23
- [PATCH 1/7] monitor/misc: Remove unused "chardev/char-mux.h" include, Philippe Mathieu-Daudé, 2020/04/23
- [PATCH 2/7] tests/test-char: Remove unused "chardev/char-mux.h" include, Philippe Mathieu-Daudé, 2020/04/23
- [PATCH 3/7] chardev: Restrict msmouse / wctablet / testdev to system emulation, Philippe Mathieu-Daudé, 2020/04/23
- [PATCH 4/7] chardev: Reduce "char-mux.h" scope, rename it "chardev-internal.h", Philippe Mathieu-Daudé, 2020/04/23
- [PATCH 6/7] stubs: Split machine-init-done as machine-init and machine-notify, Philippe Mathieu-Daudé, 2020/04/23
- Re: [PATCH 6/7] stubs: Split machine-init-done as machine-init and machine-notify,
Marc-André Lureau <=
- [PATCH 7/7] multi-process: Refactor machine_init and exit notifiers, Philippe Mathieu-Daudé, 2020/04/23
- [PATCH 5/7] chardev: Extract system emulation specific code, Philippe Mathieu-Daudé, 2020/04/23
- Re: [PATCH 0/7] chardev: Reduce system emulation specific code, Richard Henderson, 2020/04/23