qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hw/vfio/helpers: Check base architecture at runtime
@ 2025-10-20 22:23 Philippe Mathieu-Daudé
  2025-10-20 23:01 ` Pierrick Bouvier
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-10-20 22:23 UTC (permalink / raw)
  To: qemu-devel
  Cc: Avihai Horon, Fabiano Rosas, Alex Williamson,
	Maciej S . Szmigiero, Pierrick Bouvier, Anton Johansson,
	Cédric Le Goater, Zhao Liu, Luc Michel,
	Philippe Mathieu-Daudé

Replace the compile time check of the TARGET_ARM definition
by a runtime call to target_base_arm().

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
Based-on: <20251020220941.65269-1-philmd@linaro.org>
---
 hw/vfio/helpers.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/hw/vfio/helpers.c b/hw/vfio/helpers.c
index 23d13e5db5f..007c37b28b8 100644
--- a/hw/vfio/helpers.c
+++ b/hw/vfio/helpers.c
@@ -20,6 +20,7 @@
  */
 
 #include "qemu/osdep.h"
+#include "qemu/target-info.h"
 #include <sys/ioctl.h>
 
 #include "system/kvm.h"
@@ -220,9 +221,5 @@ bool vfio_arch_wants_loading_config_after_iter(void)
      * See commit d329f5032e17 ("vfio: Move the saving of the config space to
      * the right place in VFIO migration").
      */
-#if defined(TARGET_ARM)
-    return true;
-#else
-    return false;
-#endif
+    return target_base_arm();
 }
-- 
2.51.0



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

end of thread, other threads:[~2025-10-21 15:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-20 22:23 [PATCH] hw/vfio/helpers: Check base architecture at runtime Philippe Mathieu-Daudé
2025-10-20 23:01 ` Pierrick Bouvier
2025-10-21  7:05 ` Cédric Le Goater
2025-10-21  7:56   ` Philippe Mathieu-Daudé
2025-10-21 15:24 ` Maciej S. Szmigiero

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).