mirror of
https://gitlab.com/qemu-project/qemu.git
synced 2026-08-26 22:23:12 -04:00
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>
This commit is contained in:
parent
98b060da3a
commit
d0e8bccafc
1 changed files with 0 additions and 4 deletions
|
|
@ -20,9 +20,7 @@
|
|||
|
||||
#include "qemu/osdep.h"
|
||||
#include <sys/ioctl.h>
|
||||
#ifdef CONFIG_KVM
|
||||
#include <linux/kvm.h>
|
||||
#endif
|
||||
#include <linux/vfio.h>
|
||||
|
||||
#include "exec/target_page.h"
|
||||
|
|
@ -303,11 +301,9 @@ static bool vfio_ram_discard_register_listener(VFIOContainer *bcontainer,
|
|||
if (bcontainer->dma_max_mappings) {
|
||||
unsigned int vrdl_count = 0, vrdl_mappings = 0, max_memslots = 512;
|
||||
|
||||
#ifdef CONFIG_KVM
|
||||
if (kvm_enabled()) {
|
||||
max_memslots = kvm_get_max_memslots();
|
||||
}
|
||||
#endif
|
||||
|
||||
QLIST_FOREACH(vrdl, &bcontainer->vrdl_list, next) {
|
||||
hwaddr start, end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue