vhost-vdpa: fix the compile issue without kvm
PATCH 1/1 vhost-vdpa: fix the compile issue without kvm
Fix the compile issue in the system without the kvm support
Signed-off-by Cindy Lu <[email protected]>
--- hw/virtio/vhost-vdpa.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
hw/virtio/vhost-vdpa.c +1 -2
@@ -19,8 +19,7 @@#include "hw/virtio/virtio-net.h" #include "hw/virtio/vhost-vdpa.h" #include "qemu/main-loop.h" -#include <linux/kvm.h> -#include "sysemu/kvm.h" +#include "cpu.h" static bool vhost_vdpa_listener_skipped_section (MemoryRegionSection *section) {
Signature · 1 line
2.21.1
Quoted 12 lines · Cindy Lu
Fix the compile issue in the system without the kvm support
Signed-off-by Cindy Lu <[email protected]>--- hw/virtio/vhost-vdpa.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)hw/virtio/vhost-vdpa.c +0
-0
hw/virtio/vhost-vdpa.c line 25
Quoted 9 lines
hw/virtio/vhost-vdpa.c +1
-2@@ -19,8 +19,7 @@#include "hw/virtio/virtio-net.h" #include "hw/virtio/vhost-vdpa.h" #include "qemu/main-loop.h" -#include <linux/kvm.h> -#include "sysemu/kvm.h" +#include "cpu.h" static bool vhost_vdpa_listener_skipped_section (MemoryRegionSection *section) {
Acked-by Jason Wang <[email protected]>