92dcc13
From: Mark McLoughlin <markmc@redhat.com>
92dcc13
Date: Mon, 27 Apr 2009 10:18:14 +0100
92dcc13
Subject: [PATCH] kvm: qemu: framebuffer: build fix for target-arm
92dcc13
92dcc13
Include qemu-kvm.h for non-KVM_UPSTREAM building and surround the
92dcc13
kvm code with USE_KVM guards.
92dcc13
92dcc13
Fixes target-arm:
92dcc13
ccf76b7
 hw/framebuffer.c: In function 'framebuffer_update_display':
ccf76b7
 hw/framebuffer.c:53: warning: implicit declaration of function 'kvm_enabled'
ccf76b7
 hw/framebuffer.c:54: warning: implicit declaration of function 'kvm_physical_sync_dirty_bitmap'
92dcc13
92dcc13
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
92dcc13
---
ccf76b7
 hw/framebuffer.c |    3 +++
92dcc13
 1 files changed, 3 insertions(+), 0 deletions(-)
92dcc13
ccf76b7
diff --git a/hw/framebuffer.c b/hw/framebuffer.c
92dcc13
index 1086ba9..e2d7604 100644
ccf76b7
--- a/hw/framebuffer.c
ccf76b7
+++ b/hw/framebuffer.c
92dcc13
@@ -18,6 +18,7 @@
92dcc13
 #include "console.h"
92dcc13
 #include "framebuffer.h"
92dcc13
 #include "kvm.h"
92dcc13
+#include "qemu-kvm.h"
92dcc13
 
92dcc13
 /* Render an image from a shared memory framebuffer.  */
92dcc13
    
92dcc13
@@ -50,9 +51,11 @@ void framebuffer_update_display(
92dcc13
     *first_row = -1;
92dcc13
     src_len = src_width * rows;
92dcc13
 
92dcc13
+#ifdef USE_KVM
92dcc13
     if (kvm_enabled()) {
92dcc13
         kvm_physical_sync_dirty_bitmap(base, src_len);
92dcc13
     }
92dcc13
+#endif
92dcc13
     pd = cpu_get_physical_page_desc(base);
92dcc13
     pd2 = cpu_get_physical_page_desc(base + src_len - 1);
92dcc13
     /* We should reall check that this is a continuous ram region.
92dcc13
-- 
92dcc13
1.6.0.6
92dcc13