Skip to contentSkip to conversation

vhost-vdpa: fix the compile issue without kvm

PATCH In review Cindy Lu 2 participants 2 messages Jul 8, 2020 – Jul 9, 2020

lore
Share & tools
lore

Cindy Lu

author
#0 lore raw

PATCH 1/1 vhost-vdpa: fix the compile issue without kvm

Fix the compile issue in the system without the kvm support

---
 hw/virtio/vhost-vdpa.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
hw/virtio/vhost-vdpa.c +1 -2
index a3d17fe0f9..65d5aaf08a 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
Quoted 12 lines · Cindy Lu

Fix the compile issue in the system without the kvm support

---
  hw/virtio/vhost-vdpa.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
hw/virtio/vhost-vdpa.c +0 -0
index a3d17fe0f9..65d5aaf08a 100644

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)
  {