From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glauber Costa Subject: [PATCH 2/2] pull qemu headers into libkvm Date: Tue, 9 Jun 2009 12:43:19 -0400 Message-ID: <1244565799-616-3-git-send-email-glommer@redhat.com> References: <1244565799-616-1-git-send-email-glommer@redhat.com> <1244565799-616-2-git-send-email-glommer@redhat.com> Cc: avi@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mx2.redhat.com ([66.187.237.31]:36033 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755832AbZFIQnT (ORCPT ); Tue, 9 Jun 2009 12:43:19 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n59GhMWO003048 for ; Tue, 9 Jun 2009 12:43:22 -0400 In-Reply-To: <1244565799-616-2-git-send-email-glommer@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Those headers define qemu specific things like ram_addr_t. This will allow us to start using them in libkvm. Signed-off-by: Glauber Costa --- libkvm-all.c | 2 +- libkvm-all.h | 1 + target-i386/libkvm.c | 2 ++ 3 files changed, 4 insertions(+), 1 deletions(-) diff --git a/libkvm-all.c b/libkvm-all.c index dd56498..45679fb 100644 --- a/libkvm-all.c +++ b/libkvm-all.c @@ -26,6 +26,7 @@ #error libkvm: userspace and kernel version mismatch #endif +#include "sysemu.h" #include #include #include @@ -47,7 +48,6 @@ #define DPRINTF(fmt, args...) do {} while (0) #endif -#define MIN(x,y) ((x) < (y) ? (x) : (y)) #define ALIGN(x, y) (((x)+(y)-1) & ~((y)-1)) int kvm_abi = EXPECTED_KVM_API_VERSION; diff --git a/libkvm-all.h b/libkvm-all.h index 03b98df..d647ef1 100644 --- a/libkvm-all.h +++ b/libkvm-all.h @@ -82,6 +82,7 @@ struct kvm_vcpu_context typedef struct kvm_context *kvm_context_t; typedef struct kvm_vcpu_context *kvm_vcpu_context_t; +#include "kvm.h" int kvm_alloc_kernel_memory(kvm_context_t kvm, unsigned long memory, void **vm_mem); int kvm_alloc_userspace_memory(kvm_context_t kvm, unsigned long memory, diff --git a/target-i386/libkvm.c b/target-i386/libkvm.c index f88102e..0f4e009 100644 --- a/target-i386/libkvm.c +++ b/target-i386/libkvm.c @@ -1,3 +1,5 @@ +#include "sysemu.h" + #include "libkvm-all.h" #include "libkvm.h" #include -- 1.5.6.6