From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: [PATCH 2/6] libxl: portiblity fixes Date: Tue, 27 Jul 2010 14:16:19 +0200 Message-ID: <201007271416.20170.Christoph.Egger@amd.com> References: <201007201831.21416.Christoph.Egger@amd.com> <19533.47528.342464.491827@mariner.uk.xensource.com> <201007271415.17649.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_U4sTMUQPKi9SjRh" Return-path: In-Reply-To: <201007271415.17649.Christoph.Egger@amd.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: "xen-devel@lists.xensource.com" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org --Boundary-00=_U4sTMUQPKi9SjRh Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_U4sTMUQPKi9SjRh Content-Type: text/x-diff; charset="iso 8859-15"; name="xen_tools_libxl2.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_tools_libxl2.diff" diff -r 993ee4f54b2e -r 1ca40043b632 tools/libxl/libxl_osdeps.h --- a/tools/libxl/libxl_osdeps.h Tue Jul 27 13:48:38 2010 +0200 +++ b/tools/libxl/libxl_osdeps.h Tue Jul 27 13:53:12 2010 +0200 @@ -23,6 +23,8 @@ #define _GNU_SOURCE +#include + #ifdef NEED_OWN_ASPRINTF #include @@ -30,4 +32,23 @@ int vasprintf(char **buffer, const char *fmt, va_list ap); #endif /*NEED_OWN_ASPRINTF*/ +/* + * blktap2 support + */ + +/* libxl_blktap_enabled: + * return true if blktap/blktap2 support is available. + */ +int libxl_blktap_enabled(struct libxl_ctx *ctx); + +/* libxl_blktap_devpath: + * Argument: path and disk image as specified in config file. + * The type specifies whether this is aio, qcow, qcow2, etc. + * returns device path xenstore wants to have. returns NULL + * if no device corresponds to the disk. + */ +const char *libxl_blktap_devpath(struct libxl_ctx *ctx, + const char *disk, + libxl_disk_phystype phystype); + #endif --Boundary-00=_U4sTMUQPKi9SjRh Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_U4sTMUQPKi9SjRh--