hw/vfio/listener.c: remove CONFIG_KVM
Code concerned is under a kvm_enabled() guard. Reviewed-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Tested-by: Cédric Le Goater <clg@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org> Link: https://lore.kernel.org/qemu-devel/20260318174733.1717643-2-pierrick.bouvier@linaro.org Signed-off-by: Cédric Le Goater <clg@redhat.com>
Pierrick Bouvier committed
Mar 18, 2026 at 10:47 UTC
d0e8bccafc23a9d1721b04d30e2c213f5db8f2ab
1 file changed
-4
hw/vfio/listener.c
-4
@@ -20,9 +20,7 @@
20
21
#include "qemu/osdep.h"
22
#include <sys/ioctl.h>
23
-#ifdef CONFIG_KVM
23
#include <linux/kvm.h>
25
-#endif
24
#include <linux/vfio.h>
25
26
#include "exec/target_page.h"
@@ -303,11 +301,9 @@ static bool vfio_ram_discard_register_listener(VFIOContainer *bcontainer,
301
if (bcontainer->dma_max_mappings) {
302
unsigned int vrdl_count = 0, vrdl_mappings = 0, max_memslots = 512;
303
306
-#ifdef CONFIG_KVM
304
if (kvm_enabled()) {
305
max_memslots = kvm_get_max_memslots();
306
}
310
-#endif
307
308
QLIST_FOREACH(vrdl, &bcontainer->vrdl_list, next) {
309
hwaddr start, end;