From patchwork Wed Jul 8 13:08:55 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Glauber Costa X-Patchwork-Id: 34610 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n68D99Z6016562 for ; Wed, 8 Jul 2009 13:09:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753728AbZGHNJG (ORCPT ); Wed, 8 Jul 2009 09:09:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753428AbZGHNJG (ORCPT ); Wed, 8 Jul 2009 09:09:06 -0400 Received: from mx2.redhat.com ([66.187.237.31]:38640 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753273AbZGHNJF (ORCPT ); Wed, 8 Jul 2009 09:09:05 -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 n68D94YV026546 for ; Wed, 8 Jul 2009 09:09:04 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n68D930j024270; Wed, 8 Jul 2009 09:09:04 -0400 Received: from localhost.localdomain (virtlab1.virt.bos.redhat.com [10.16.72.21]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n68D92uE029245; Wed, 8 Jul 2009 09:09:03 -0400 From: Glauber Costa To: kvm@vger.kernel.org Cc: avi@redhat.com Subject: [PATCH 1/8] Provide KVMState definition outside CONFIG_KVM Date: Wed, 8 Jul 2009 09:08:55 -0400 Message-Id: <1247058542-31211-2-git-send-email-glommer@redhat.com> In-Reply-To: <1247058542-31211-1-git-send-email-glommer@redhat.com> References: <1247058542-31211-1-git-send-email-glommer@redhat.com> X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This will allow qemu-kvm to refer to the structure, since qemu-kvm relies on USE_KVM, not CONFIG_KVM. This should be sent to qemu.git as well Signed-off-by: Glauber Costa --- kvm.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kvm.h b/kvm.h index d9723d7..7648c49 100644 --- a/kvm.h +++ b/kvm.h @@ -18,6 +18,9 @@ #include "sys-queue.h" #include "libkvm-all.h" +struct KVMState; +typedef struct KVMState KVMState; + #ifdef KVM_UPSTREAM #ifdef CONFIG_KVM @@ -65,9 +68,6 @@ int kvm_update_guest_debug(CPUState *env, unsigned long reinject_trap); /* internal API */ -struct KVMState; -typedef struct KVMState KVMState; - int kvm_ioctl(KVMState *s, int type, ...); int kvm_vm_ioctl(KVMState *s, int type, ...);