From owner-svn-soc-all@freebsd.org Tue Aug 4 15:06:08 2015 Return-Path: Delivered-To: svn-soc-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4B9569B3334 for ; Tue, 4 Aug 2015 15:06:08 +0000 (UTC) (envelope-from stefano@FreeBSD.org) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3C8E3F39 for ; Tue, 4 Aug 2015 15:06:08 +0000 (UTC) (envelope-from stefano@FreeBSD.org) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.15.2/8.15.2) with ESMTP id t74F68TW055185 for ; Tue, 4 Aug 2015 15:06:08 GMT (envelope-from stefano@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.15.2/8.15.2/Submit) id t74F67Ge054241 for svn-soc-all@FreeBSD.org; Tue, 4 Aug 2015 15:06:07 GMT (envelope-from stefano@FreeBSD.org) Date: Tue, 4 Aug 2015 15:06:07 GMT Message-Id: <201508041506.t74F67Ge054241@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to stefano@FreeBSD.org using -f From: stefano@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r289210 - soc2015/stefano/ptnetmap/stable/10/lib/libvmmapi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Aug 2015 15:06:08 -0000 Author: stefano Date: Tue Aug 4 15:06:06 2015 New Revision: 289210 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=289210 Log: [libvmmapi] add new API to get vm fd (vm_get_fd()) Modified: soc2015/stefano/ptnetmap/stable/10/lib/libvmmapi/vmmapi.c soc2015/stefano/ptnetmap/stable/10/lib/libvmmapi/vmmapi.h Modified: soc2015/stefano/ptnetmap/stable/10/lib/libvmmapi/vmmapi.c ============================================================================== --- soc2015/stefano/ptnetmap/stable/10/lib/libvmmapi/vmmapi.c Tue Aug 4 14:27:25 2015 (r289209) +++ soc2015/stefano/ptnetmap/stable/10/lib/libvmmapi/vmmapi.c Tue Aug 4 15:06:06 2015 (r289210) @@ -685,6 +685,12 @@ } int +vm_get_fd(struct vmctx *ctx) +{ + return (ctx->fd); +} + +int vm_map_user_buf(struct vmctx *ctx, vm_paddr_t gpa, size_t len, void *host_buf) { struct vm_user_buf user_buf; Modified: soc2015/stefano/ptnetmap/stable/10/lib/libvmmapi/vmmapi.h ============================================================================== --- soc2015/stefano/ptnetmap/stable/10/lib/libvmmapi/vmmapi.h Tue Aug 4 14:27:25 2015 (r289209) +++ soc2015/stefano/ptnetmap/stable/10/lib/libvmmapi/vmmapi.h Tue Aug 4 15:06:06 2015 (r289210) @@ -108,6 +108,7 @@ int vm_get_intinfo(struct vmctx *ctx, int vcpu, uint64_t *i1, uint64_t *i2); int vm_set_intinfo(struct vmctx *ctx, int vcpu, uint64_t exit_intinfo); +int vm_get_fd(struct vmctx *ctx); int vm_map_user_buf(struct vmctx *ctx, vm_paddr_t gpa, size_t len, void *host_buf); /*