|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v7 2/8] libxl: introduce a new structure to represent static shared memory regions
Hi, On 11/08/18 01:00, Stefano Stabellini wrote: From: Zhongze Liu <blackskygg@xxxxxxxxx> Author: Zhongze Liu <blackskygg@xxxxxxxxx> Add a new structure to the IDL family to represent static shared memory regions as proposed in the proposal "Allow setting up shared memory areas between VMs from xl config file" (see [1]). And deleted some trailing white spaces. [1] https://lists.xen.org/archives/html/xen-devel/2017-08/msg03242.html Signed-off-by: Zhongze Liu <blackskygg@xxxxxxxxx> Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx> Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx> Signed-off-by: Stefano Stabellini <stefanos@xxxxxxxxxx> Cc: Wei Liu <wei.liu2@xxxxxxxxxx> Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx> Cc: Julien Grall <julien.grall@xxxxxxx> Cc: xen-devel@xxxxxxxxxxxxx --- Changes in v5: - fix typos - add LIBXL_HAVE_SSHM - replace end with size --- tools/libxl/libxl.h | 6 ++++++ tools/libxl/libxl_types.idl | 32 ++++++++++++++++++++++++++++++-- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/tools/libxl/libxl.h b/tools/libxl/libxl.h index ae2d63d..a9a523e 100644 --- a/tools/libxl/libxl.h +++ b/tools/libxl/libxl.h @@ -2455,6 +2455,12 @@ int libxl_fd_set_nonblock(libxl_ctx *ctx, int fd, int nonblock); int libxl_qemu_monitor_command(libxl_ctx *ctx, uint32_t domid, const char *command_line, char **output);+#define LIBXL_HAVE_SSHM 1 Can you move this closer to the other LIBXL_HAVE_*? Also, you want to add a comment on top as we do for the others. + +/* Constants for libxl_static_shm */ +#define LIBXL_SSHM_RANGE_UNKNOWN UINT64_MAX +#define LIBXL_SSHM_ID_MAXLEN 128 Why do you need to bound the size of the string? + #include <libxl_event.h>#endif /* LIBXL_H */ Shouldn't this be LIBXL_SSHM_CACHEPOLICY_UNKNOWN?
Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |