From patchwork Mon Aug 22 17:06:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saggi Mizrahi X-Patchwork-Id: 110959 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 28862B6EE8 for ; Tue, 23 Aug 2011 03:07:50 +1000 (EST) Received: from localhost ([::1]:41198 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvXyV-0000U9-EO for incoming@patchwork.ozlabs.org; Mon, 22 Aug 2011 13:07:47 -0400 Received: from eggs.gnu.org ([140.186.70.92]:56976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvXyL-0000RW-I1 for qemu-devel@nongnu.org; Mon, 22 Aug 2011 13:07:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QvXyF-00026X-Tk for qemu-devel@nongnu.org; Mon, 22 Aug 2011 13:07:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvXyF-00026M-Lh for qemu-devel@nongnu.org; Mon, 22 Aug 2011 13:07:31 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p7MH7VeL021994 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 22 Aug 2011 13:07:31 -0400 Received: from smizrahi.tlv.redhat.com (vpn-203-233.tlv.redhat.com [10.35.203.233]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p7MH7Cut029740; Mon, 22 Aug 2011 13:07:30 -0400 From: Saggi Mizrahi To: qemu-devel@nongnu.org Date: Mon, 22 Aug 2011 20:06:38 +0300 Message-Id: <1314032798-21423-2-git-send-email-smizrahi@redhat.com> In-Reply-To: <1314032798-21423-1-git-send-email-smizrahi@redhat.com> References: <1314032798-21423-1-git-send-email-smizrahi@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Saggi Mizrahi Subject: [Qemu-devel] [PATCH 2/2] Added target to build libvdisk X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org libvdisk is a library that packages qemu's handling of disk images. This allows for other programs to link to it and get access to qemu image file abstractions. To use install the lib and #include all the bdrv_* functions work as expected. Signed-off-by: Saggi Mizrahi --- .gitignore | 4 ++-- Makefile.objs | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 59c343c..a389059 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ -config-devices.* -config-all-devices.* +config-devices.* config-all-devices.* config-host.* config-target.* trace.h @@ -15,6 +14,7 @@ libdis* libhw32 libhw64 libuser +libvdisk qapi-generated qemu-doc.html qemu-tech.html diff --git a/Makefile.objs b/Makefile.objs index 432b619..291f194 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -171,6 +171,15 @@ common-obj-$(CONFIG_XEN_BACKEND) += xen_backend.o xen_devconfig.o common-obj-$(CONFIG_XEN_BACKEND) += xen_console.o xenfb.o xen_disk.o xen_nic.o ###################################################################### +# libvdisk + +vdisk-obj-y = $(block-obj-y) + +vdisk-obj-y += qemu-tool.o qemu-error.o +vdisk-obj-y += $(oslib-obj-y) $(trace-obj-y) $(block-obj-y) +vdisk-obj-y += $(qobject-obj-y) $(version-obj-y) qemu-timer-common.o + +###################################################################### # libuser user-obj-y =