* [PATCH] kvm: qemu: framebuffer: build fix for target-arm
@ 2009-04-27 14:35 Mark McLoughlin
2009-04-28 9:34 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Mark McLoughlin @ 2009-04-27 14:35 UTC (permalink / raw)
To: avi; +Cc: kvm, Mark McLoughlin
Include qemu-kvm.h for non-KVM_UPSTREAM building and surround the
kvm code with USE_KVM guards.
Fixes target-arm:
qemu/hw/framebuffer.c: In function 'framebuffer_update_display':
qemu/hw/framebuffer.c:53: warning: implicit declaration of function 'kvm_enabled'
qemu/hw/framebuffer.c:54: warning: implicit declaration of function 'kvm_physical_sync_dirty_bitmap'
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
---
hw/framebuffer.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/hw/framebuffer.c b/hw/framebuffer.c
index 1086ba9..e2d7604 100644
--- a/hw/framebuffer.c
+++ b/hw/framebuffer.c
@@ -18,6 +18,7 @@
#include "console.h"
#include "framebuffer.h"
#include "kvm.h"
+#include "qemu-kvm.h"
/* Render an image from a shared memory framebuffer. */
@@ -50,9 +51,11 @@ void framebuffer_update_display(
*first_row = -1;
src_len = src_width * rows;
+#ifdef USE_KVM
if (kvm_enabled()) {
kvm_physical_sync_dirty_bitmap(base, src_len);
}
+#endif
pd = cpu_get_physical_page_desc(base);
pd2 = cpu_get_physical_page_desc(base + src_len - 1);
/* We should reall check that this is a continuous ram region.
--
1.6.0.6
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] kvm: qemu: framebuffer: build fix for target-arm
2009-04-27 14:35 [PATCH] kvm: qemu: framebuffer: build fix for target-arm Mark McLoughlin
@ 2009-04-28 9:34 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2009-04-28 9:34 UTC (permalink / raw)
To: Mark McLoughlin; +Cc: kvm
Mark McLoughlin wrote:
> Include qemu-kvm.h for non-KVM_UPSTREAM building and surround the
> kvm code with USE_KVM guards.
>
> Fixes target-arm:
>
> qemu/hw/framebuffer.c: In function 'framebuffer_update_display':
> qemu/hw/framebuffer.c:53: warning: implicit declaration of function 'kvm_enabled'
> qemu/hw/framebuffer.c:54: warning: implicit declaration of function 'kvm_physical_sync_dirty_bitmap'
>
> diff --git a/hw/framebuffer.c b/hw/framebuffer.c
> index 1086ba9..e2d7604 100644
> --- a/hw/framebuffer.c
> +++ b/hw/framebuffer.c
> @@ -18,6 +18,7 @@
> #include "console.h"
> #include "framebuffer.h"
> #include "kvm.h"
> +#include "qemu-kvm.h"
>
Maybe we should have kvm.h include qemu-kvm.h, to avoid more divergence
(even if it is trivial).
>
> /* Render an image from a shared memory framebuffer. */
>
> @@ -50,9 +51,11 @@ void framebuffer_update_display(
> *first_row = -1;
> src_len = src_width * rows;
>
> +#ifdef USE_KVM
> if (kvm_enabled()) {
> kvm_physical_sync_dirty_bitmap(base, src_len);
> }
> +#endif
Similarly, provide null definitions for kvm_enabled() and
kvm_physical_blah() to avoid the ifdefs.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-28 9:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-27 14:35 [PATCH] kvm: qemu: framebuffer: build fix for target-arm Mark McLoughlin
2009-04-28 9:34 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox