[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [RFC PATCH 6/6] xc_version: add vm_event interface version
Signed-off-by: Petre Pircalabu <ppircalabu@xxxxxxxxxxxxxxx> --- tools/libxc/xc_private.c | 3 +++ xen/common/kernel.c | 3 +++ xen/include/public/version.h | 3 +++ 3 files changed, 9 insertions(+) diff --git a/tools/libxc/xc_private.c b/tools/libxc/xc_private.c index 90974d5..9b983e0 100644 --- a/tools/libxc/xc_private.c +++ b/tools/libxc/xc_private.c @@ -497,6 +497,9 @@ int xc_version(xc_interface *xch, int cmd, void *arg) HYPERCALL_BOUNCE_SET_DIR(arg, XC_HYPERCALL_BUFFER_BOUNCE_BOTH); break; } + case XENVER_vm_event_version: + sz = 0; + break; default: ERROR("xc_version: unknown command %d\n", cmd); return -EINVAL; diff --git a/xen/common/kernel.c b/xen/common/kernel.c index 5766a0f..667552c 100644 --- a/xen/common/kernel.c +++ b/xen/common/kernel.c @@ -516,6 +516,9 @@ DO(xen_version)(int cmd, XEN_GUEST_HANDLE_PARAM(void) arg) return sz; } + + case XENVER_vm_event_version: + return VM_EVENT_INTERFACE_VERSION; } return -ENOSYS; diff --git a/xen/include/public/version.h b/xen/include/public/version.h index 7063e8c..b962386 100644 --- a/xen/include/public/version.h +++ b/xen/include/public/version.h @@ -103,6 +103,9 @@ struct xen_build_id { }; typedef struct xen_build_id xen_build_id_t; +/* arg == NULL; returns the vm_event interface version */ +#define XENVER_vm_event_version 11 + #endif /* __XEN_PUBLIC_VERSION_H__ */ /* -- 2.7.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |