Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/net/lib/libvirtif Give the hypercall interface a ve...



details:   https://anonhg.NetBSD.org/src/rev/0070e1f6d19d
branches:  trunk
changeset: 790942:0070e1f6d19d
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sun Oct 27 16:03:19 2013 +0000

description:
Give the hypercall interface a version number.  This is for
implementations outside of the tree.

diffstat:

 sys/rump/net/lib/libvirtif/rumpcomp_user.c |  6 +++++-
 sys/rump/net/lib/libvirtif/rumpcomp_user.h |  4 +++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diffs (38 lines):

diff -r dbfc48785a40 -r 0070e1f6d19d sys/rump/net/lib/libvirtif/rumpcomp_user.c
--- a/sys/rump/net/lib/libvirtif/rumpcomp_user.c        Sun Oct 27 12:47:54 2013 +0000
+++ b/sys/rump/net/lib/libvirtif/rumpcomp_user.c        Sun Oct 27 16:03:19 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpcomp_user.c,v 1.10 2013/07/16 21:14:42 pooka Exp $ */
+/*     $NetBSD: rumpcomp_user.c,v 1.11 2013/10/27 16:03:19 pooka Exp $ */
 
 /*
  * Copyright (c) 2013 Antti Kantee.  All Rights Reserved.
@@ -48,6 +48,10 @@
 #include "if_virt.h"
 #include "rumpcomp_user.h"
 
+#if VIFHYPER_REVISION != 20130704
+#error VIFHYPER_REVISION mismatch
+#endif
+
 struct virtif_user {
        int viu_fd;
        int viu_dying;
diff -r dbfc48785a40 -r 0070e1f6d19d sys/rump/net/lib/libvirtif/rumpcomp_user.h
--- a/sys/rump/net/lib/libvirtif/rumpcomp_user.h        Sun Oct 27 12:47:54 2013 +0000
+++ b/sys/rump/net/lib/libvirtif/rumpcomp_user.h        Sun Oct 27 16:03:19 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpcomp_user.h,v 1.4 2013/07/04 11:46:51 pooka Exp $  */
+/*     $NetBSD: rumpcomp_user.h,v 1.5 2013/10/27 16:03:19 pooka Exp $  */
 
 /*
  * Copyright (c) 2013 Antti Kantee.  All Rights Reserved.
@@ -27,6 +27,8 @@
 
 struct virtif_user;
 
+#define VIFHYPER_REVISION 20130704
+
 int    VIFHYPER_CREATE(int, struct virtif_user **);
 void   VIFHYPER_DYING(struct virtif_user *);
 void   VIFHYPER_DESTROY(struct virtif_user *);



Home | Main Index | Thread Index | Old Index