Skip to contentSkip to conversation

vhost-vdpa: fix the compile issue without kvm

PATCH Applied 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
#1 lore raw
Quoted 3 lines · Cindy Lu

Fix the compile issue in the system without the kvm support

Applied, thanks!
Peter if we need this fixed quickly, I pushed out for_upstream just with this one fix.

Thanks!

Quoted 20 lines
---
 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