diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2016-01-27 09:04:20 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2016-01-27 09:04:20 +0000 |
commit | 24f69262881c97ea25f1d4b8bb9616475a37900b (patch) | |
tree | 98fb61e459b195abc5491f25ba62d44ef834c990 /sys/dev/pv/xenvar.h | |
parent | d1e5520d3416e582a49f9a4c3bd7d63b5da7f401 (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/dev/pv/xenvar.h')
-rw-r--r-- | sys/dev/pv/xenvar.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pv/xenvar.h b/sys/dev/pv/xenvar.h index bf2587e1550..3042e5b00e9 100644 --- a/sys/dev/pv/xenvar.h +++ b/sys/dev/pv/xenvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: xenvar.h,v 1.23 2016/01/25 15:22:56 mikeb Exp $ */ +/* $OpenBSD: xenvar.h,v 1.24 2016/01/27 09:04:19 reyk Exp $ */ /* * Copyright (c) 2015 Mike Belopuhov @@ -150,5 +150,6 @@ int xs_cmd(struct xs_transaction *, int, const char *, struct iovec **, int xs_getprop(struct xen_attach_args *, const char *, char *, int); int xs_setprop(struct xen_attach_args *, const char *, char *, int); void xs_resfree(struct xs_transaction *, struct iovec *, int); +int xs_kvop(void *, int, char *, char *, size_t); #endif /* _XENVAR_H_ */ |