diff options
author | Markus Armbruster <armbru@redhat.com> | 2019-08-12 07:23:45 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2019-08-16 13:31:52 +0200 |
commit | d6454270575da1f16a8923c7cb240e46ef243f72 (patch) | |
tree | a3b5feacbd4c320cbe04d0b79e2fdc29c350c167 /hw/vfio | |
parent | 8a9358cc6e6a6ba3685e1b6e8bbf6fa194a38379 (diff) |
Include migration/vmstate.h less
In my "build everything" tree, changing migration/vmstate.h triggers a
recompile of some 2700 out of 6600 objects (not counting tests and
objects that don't depend on qemu/osdep.h).
hw/hw.h supposedly includes it for convenience. Several other headers
include it just to get VMStateDescription. The previous commit made
that unnecessary.
Include migration/vmstate.h only where it's still needed. Touching it
now recompiles only some 1600 objects.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20190812052359.30071-16-armbru@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'hw/vfio')
-rw-r--r-- | hw/vfio/amd-xgbe.c | 1 | ||||
-rw-r--r-- | hw/vfio/ap.c | 1 | ||||
-rw-r--r-- | hw/vfio/calxeda-xgmac.c | 1 | ||||
-rw-r--r-- | hw/vfio/pci.c | 1 | ||||
-rw-r--r-- | hw/vfio/platform.c | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/hw/vfio/amd-xgbe.c b/hw/vfio/amd-xgbe.c index eedd48cfc1..96bd608b8d 100644 --- a/hw/vfio/amd-xgbe.c +++ b/hw/vfio/amd-xgbe.c @@ -13,6 +13,7 @@ #include "qemu/osdep.h" #include "hw/vfio/vfio-amd-xgbe.h" +#include "migration/vmstate.h" #include "qemu/module.h" static void amd_xgbe_realize(DeviceState *dev, Error **errp) diff --git a/hw/vfio/ap.c b/hw/vfio/ap.c index a995b86cd4..d1c86abb76 100644 --- a/hw/vfio/ap.c +++ b/hw/vfio/ap.c @@ -25,6 +25,7 @@ #include "qemu/config-file.h" #include "cpu.h" #include "kvm_s390x.h" +#include "migration/vmstate.h" #include "sysemu/sysemu.h" #include "hw/s390x/ap-bridge.h" #include "exec/address-spaces.h" diff --git a/hw/vfio/calxeda-xgmac.c b/hw/vfio/calxeda-xgmac.c index 59233e8d7e..87c382e736 100644 --- a/hw/vfio/calxeda-xgmac.c +++ b/hw/vfio/calxeda-xgmac.c @@ -13,6 +13,7 @@ #include "qemu/osdep.h" #include "hw/vfio/vfio-calxeda-xgmac.h" +#include "migration/vmstate.h" #include "qemu/module.h" static void calxeda_xgmac_realize(DeviceState *dev, Error **errp) diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index d7a4e1875c..8a58ad670c 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -25,6 +25,7 @@ #include "hw/pci/msi.h" #include "hw/pci/msix.h" #include "hw/pci/pci_bridge.h" +#include "migration/vmstate.h" #include "qemu/error-report.h" #include "qemu/module.h" #include "qemu/option.h" diff --git a/hw/vfio/platform.c b/hw/vfio/platform.c index 708df2ec0d..2ec9c9f49b 100644 --- a/hw/vfio/platform.c +++ b/hw/vfio/platform.c @@ -20,6 +20,7 @@ #include <linux/vfio.h> #include "hw/vfio/vfio-platform.h" +#include "migration/vmstate.h" #include "qemu/error-report.h" #include "qemu/module.h" #include "qemu/range.h" |