Date: Tue, 4 Aug 2015 15:06:07 GMT From: stefano@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r289210 - soc2015/stefano/ptnetmap/stable/10/lib/libvmmapi Message-ID: <201508041506.t74F67Ge054241@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508041506.t74F67Ge054241>