[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 28/29] sysemu: Move the VMChangeStateEntry ty
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [Qemu-devel] [PATCH v4 28/29] sysemu: Move the VMChangeStateEntry typedef to qemu/typedefs.h |
Date: |
Mon, 12 Aug 2019 18:06:34 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 |
On 8/12/19 7:23 AM, Markus Armbruster wrote:
> In my "build everything" tree, changing sysemu/sysemu.h triggers a
> recompile of some 1800 out of 6600 objects (not counting tests and
> objects that don't depend on qemu/osdep.h, down from 5400 due to the
> previous commit).
>
> Several headers include sysemu/sysemu.h just to get typedef
> VMChangeStateEntry. Move it from sysemu/sysemu.h to qemu/typedefs.h.
> Spell its structure tag the same while there. Drop the now
> superfluous includes of sysemu/sysemu.h from headers.
>
> Touching sysemu/sysemu.h now recompiles some 1100 objects.
> qemu/uuid.h also drops from 1800 to 1100, and
> qapi/qapi-types-run-state.h from 5000 to 4400.
Nice :)
>
> Signed-off-by: Markus Armbruster <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Tested-by: Philippe Mathieu-Daudé <address@hidden>
> ---
> hw/usb/hcd-ehci.h | 1 -
> include/hw/ide/internal.h | 3 ++-
> include/hw/ppc/spapr_xive.h | 1 -
> include/hw/scsi/scsi.h | 1 -
> include/hw/virtio/virtio.h | 1 -
> include/qemu/typedefs.h | 1 +
> include/sysemu/sysemu.h | 1 -
> hw/block/vhost-user-blk.c | 1 +
> hw/block/virtio-blk.c | 1 +
> hw/display/virtio-gpu.c | 1 +
> hw/misc/macio/macio.c | 1 +
> hw/net/virtio-net.c | 1 +
> hw/s390x/s390-ccw.c | 1 +
> hw/s390x/s390-virtio-ccw.c | 1 +
> hw/scsi/scsi-bus.c | 1 +
> hw/scsi/vhost-scsi.c | 1 +
> hw/scsi/vhost-user-scsi.c | 1 +
> hw/usb/hcd-ehci.c | 1 +
> hw/virtio/virtio-rng.c | 1 +
> hw/virtio/virtio.c | 1 +
> vl.c | 6 +++---
> 21 files changed, 19 insertions(+), 9 deletions(-)
- Re: [Qemu-devel] [PATCH v4 09/29] Include migration/qemu-file-types.h a lot less, (continued)
- [Qemu-devel] [PATCH v4 17/29] Include qom/object.h slightly less, Markus Armbruster, 2019/08/12
- [Qemu-devel] [PATCH v4 25/29] numa: Move remaining NUMA declarations from sysemu.h to numa.h, Markus Armbruster, 2019/08/12
- [Qemu-devel] [PATCH v4 23/29] numa: Don't include hw/boards.h into sysemu/numa.h, Markus Armbruster, 2019/08/12
- [Qemu-devel] [PATCH v4 24/29] Include sysemu/hostmem.h less, Markus Armbruster, 2019/08/12
- [Qemu-devel] [PATCH v4 19/29] Include qemu/queue.h slightly less, Markus Armbruster, 2019/08/12
- [Qemu-devel] [PATCH v4 28/29] sysemu: Move the VMChangeStateEntry typedef to qemu/typedefs.h, Markus Armbruster, 2019/08/12
- Re: [Qemu-devel] [PATCH v4 28/29] sysemu: Move the VMChangeStateEntry typedef to qemu/typedefs.h,
Philippe Mathieu-Daudé <=
- [Qemu-devel] [PATCH v4 07/29] trace: Do not include qom/cpu.h into generated trace.h, Markus Armbruster, 2019/08/12
- [Qemu-devel] [PATCH v4 16/29] Include exec/memory.h slightly less, Markus Armbruster, 2019/08/12
- [Qemu-devel] [PATCH v4 22/29] Include hw/boards.h a bit less, Markus Armbruster, 2019/08/12
- [Qemu-devel] [PATCH v4 08/29] Include sysemu/reset.h a lot less, Markus Armbruster, 2019/08/12
- [Qemu-devel] [PATCH v4 27/29] Include sysemu/sysemu.h a lot less, Markus Armbruster, 2019/08/12
- [Qemu-devel] [PATCH v4 01/29] include: Make headers more self-contained, Markus Armbruster, 2019/08/12