socsvn commit: r289210 - soc2015/stefano/ptnetmap/stable/10/lib/libvmmapi

stefano at FreeBSD.org stefano at FreeBSD.org
Tue Aug 4 15:06:08 UTC 2015


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);
 
 /*


More information about the svn-soc-all mailing list