[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH RESEND v6 08/36] multi-process: Add stub functions to facilit
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH RESEND v6 08/36] multi-process: Add stub functions to facilitate build of multi-process |
Date: |
Fri, 24 Apr 2020 14:12:30 +0100 |
On Wed, Apr 22, 2020 at 09:13:43PM -0700, address@hidden wrote:
> diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs
> index f884bb6180..f74c7e927b 100644
> --- a/stubs/Makefile.objs
> +++ b/stubs/Makefile.objs
> @@ -20,6 +20,7 @@ stub-obj-y += migr-blocker.o
> stub-obj-y += change-state-handler.o
> stub-obj-y += monitor.o
> stub-obj-y += monitor-core.o
> +stub-obj-y += get-fd.o
> stub-obj-y += notify-event.o
> stub-obj-y += qtest.o
> stub-obj-y += replay.o
audio.c, vl-stub.c, and xen-mapcache.c are added by this patch but not
added to Makefile.objs? Can they be removed?
This entire patch requires justification. Stubs exist so that common
code can be linked without optional features.
For example, common code may call into kvm but that callback isn't
relevant when building with kvm accelerator support (e.g. say qemu-nbd).
That's where the stub function comes in. It fulfills the dependency
without dragging in the actual kvm accelerator code.
Adding lots of stubs suggests you are building QEMU in a new way that
wasn't done before (this is true and expected for this patch series). I
would like to understand the reason for these stubs though. For
example, why do you need to stub audio?
Without a reason for each of these stubs we have no way of knowing if
they are actually used/needed. Maybe an earlier version of the code
needed it but the latest version of the patch no longer does...
Stefan
signature.asc
Description: PGP signature
- [PATCH RESEND v6 27/36] multi-process: add support to parse device option, (continued)
- [PATCH RESEND v6 27/36] multi-process: add support to parse device option, elena . ufimtseva, 2020/04/23
- [PATCH RESEND v6 29/36] multi-process: handle heartbeat messages in remote process, elena . ufimtseva, 2020/04/23
- [PATCH RESEND v6 30/36] multi-process: perform device reset in the remote process, elena . ufimtseva, 2020/04/23
- [PATCH RESEND v6 31/36] multi-process/mon: choose HMP commands based on target, elena . ufimtseva, 2020/04/23
- [PATCH RESEND v6 34/36] multi-process/mon: Initialize QMP module for remote processes, elena . ufimtseva, 2020/04/23
- [PATCH RESEND v6 32/36] multi-process/mon: stub functions to enable QMP module for remote process, elena . ufimtseva, 2020/04/23
- [PATCH RESEND v6 35/36] multi-process: add the concept description to docs/devel/qemu-multiprocess, elena . ufimtseva, 2020/04/23
- [PATCH RESEND v6 02/36] multi-process: Refactor machine_init and exit notifiers, elena . ufimtseva, 2020/04/23
- [PATCH RESEND v6 08/36] multi-process: Add stub functions to facilitate build of multi-process, elena . ufimtseva, 2020/04/23
- Re: [PATCH RESEND v6 08/36] multi-process: Add stub functions to facilitate build of multi-process,
Stefan Hajnoczi <=
[PATCH RESEND v6 10/36] multi-process: build system for remote device process, elena . ufimtseva, 2020/04/23
[PATCH RESEND v6 11/36] multi-process: define mpqemu-link object, elena . ufimtseva, 2020/04/23
[PATCH RESEND v6 12/36] multi-process: add functions to synchronize proxy and remote endpoints, elena . ufimtseva, 2020/04/23
[PATCH RESEND v6 14/36] multi-process: setup a machine object for remote device process, elena . ufimtseva, 2020/04/23
[PATCH RESEND v6 17/36] multi-process: introduce proxy object, elena . ufimtseva, 2020/04/23