On 3/13/26 01:44, Pierrick Bouvier wrote:
Code concerned is under a kvm_enabled() guard.

Signed-off-by: Pierrick Bouvier <[email protected]>
---
  hw/vfio/listener.c | 4 ----
  1 file changed, 4 deletions(-)

diff --git a/hw/vfio/listener.c b/hw/vfio/listener.c
index 960da9e0a93..31c3113f8fb 100644
--- a/hw/vfio/listener.c
+++ b/hw/vfio/listener.c
@@ -20,9 +20,7 @@
#include "qemu/osdep.h"
  #include <sys/ioctl.h>
-#ifdef CONFIG_KVM
  #include <linux/kvm.h>
-#endif
  #include <linux/vfio.h>

This now fails to build on sparc64:

In file included from ../../hw/vfio/listener.c:23:
/build/reproducible-path/qemu-11.1.0~rc0+ds/linux-headers/linux/kvm.h:16:10: 
fatal error: asm/kvm.h: No such file or directory
   16 | #include <asm/kvm.h>
      |          ^~~~~~~~~~~

I wonder if this is a sparc problem or qemu problem.

I don't think kvm has been enabled on sparc, ever.

Thanks,

/mjt

Reply via email to