summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2016-01-27 09:04:20 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2016-01-27 09:04:20 +0000
commit24f69262881c97ea25f1d4b8bb9616475a37900b (patch)
tree98fb61e459b195abc5491f25ba62d44ef834c990 /sys/arch/i386
parentd1e5520d3416e582a49f9a4c3bd7d63b5da7f401 (diff)
Add a key-value interface to pvbus(4) that allows to get or set values
in the underlying information store of the host from the OpenBSD-VM's userspace. OpenBSD did not provide access to these stores before, mostly because we did not want to add a custom tool and interface for each hypervisor. The pvbus(4) interface provides backends for xen(4)'s XenStore and vmt(4)'s VMware Tools "guestinfo". These information stores are fairly different, XenStore is a "filesystem" while vmt is a RPC, and the key-value abstraction limits them a bit but provides the most wanted functionality. Discussed with many OK mikeb@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/conf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/conf.c b/sys/arch/i386/i386/conf.c
index ebd2cbb48fe..668e13724a5 100644
--- a/sys/arch/i386/i386/conf.c
+++ b/sys/arch/i386/i386/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.151 2015/10/23 15:10:52 claudio Exp $ */
+/* $OpenBSD: conf.c,v 1.152 2016/01/27 09:04:19 reyk Exp $ */
/* $NetBSD: conf.c,v 1.75 1996/05/03 19:40:20 christos Exp $ */
/*
@@ -176,6 +176,7 @@ cdev_decl(pci);
#include "vscsi.h"
#include "pppx.h"
#include "fuse.h"
+#include "pvbus.h"
struct cdevsw cdevsw[] =
{
@@ -286,6 +287,7 @@ struct cdevsw cdevsw[] =
cdev_pppx_init(NPPPX,pppx), /* 92: pppx */
cdev_fuse_init(NFUSE,fuse), /* 93: fuse */
cdev_tun_init(NTUN,tap), /* 94: Ethernet network tunnel */
+ cdev_pvbus_init(NPVBUS,pvbus), /* 95: pvbus(4) control interface */
};
int nchrdev = nitems(cdevsw);