All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] Fix to show vfio migration stat in migration status
@ 2020-11-18 20:28 Kirti Wankhede
  2020-11-23 16:33 ` Alex Williamson
  2020-11-25  9:30 ` Dr. David Alan Gilbert
  0 siblings, 2 replies; 9+ messages in thread
From: Kirti Wankhede @ 2020-11-18 20:28 UTC (permalink / raw)
  To: quintela, dgilbert, alex.williamson, cjia; +Cc: Kirti Wankhede, qemu-devel

Header file where CONFIG_VFIO is defined is not included in migration.c
file. Include config devices header file in migration.c.

Fixes: 3710586caa5d ("qapi: Add VFIO devices migration stats in Migration
stats")

Signed-off-by: Kirti Wankhede <kwankhede@nvidia.com>
---
 meson.build           | 1 +
 migration/migration.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/meson.build b/meson.build
index 7ddf983ff7f5..24526499cfb5 100644
--- a/meson.build
+++ b/meson.build
@@ -1713,6 +1713,7 @@ common_ss.add_all(when: 'CONFIG_USER_ONLY', if_true: user_ss)
 
 common_all = common_ss.apply(config_all, strict: false)
 common_all = static_library('common',
+                            c_args:'-DCONFIG_DEVICES="@0@-config-devices.h"'.format(target) ,
                             build_by_default: false,
                             sources: common_all.sources() + genh,
                             dependencies: common_all.dependencies(),
diff --git a/migration/migration.c b/migration/migration.c
index 87a9b59f83f4..650efb81daad 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -57,6 +57,7 @@
 #include "qemu/queue.h"
 #include "multifd.h"
 
+#include CONFIG_DEVICES
 #ifdef CONFIG_VFIO
 #include "hw/vfio/vfio-common.h"
 #endif
-- 
2.7.0



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-11-25 19:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-18 20:28 [PATCH 1/1] Fix to show vfio migration stat in migration status Kirti Wankhede
2020-11-23 16:33 ` Alex Williamson
2020-11-23 18:18   ` Kirti Wankhede
2020-11-23 18:39     ` Alex Williamson
2020-11-25  9:30 ` Dr. David Alan Gilbert
2020-11-25 18:52   ` Kirti Wankhede
2020-11-25 19:03     ` Dr. David Alan Gilbert
2020-11-25 19:35       ` Kirti Wankhede
2020-11-25 19:38         ` Dr. David Alan Gilbert

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.