|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 2/8] xen/public: sysctl: set_parameter.params and debug.keys should be const
From: Julien Grall <jgrall@xxxxxxxxxx>
The fields set_parameter.params and debug.keys should never be modified
by the hypervisor. So mark them as const.
Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx>
---
I am not entirely sure whether we should bump the systcl version for
this change. Any thoughts?
---
xen/include/public/sysctl.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xen/include/public/sysctl.h b/xen/include/public/sysctl.h
index 3d72fab49f..3a08c512e8 100644
--- a/xen/include/public/sysctl.h
+++ b/xen/include/public/sysctl.h
@@ -170,7 +170,7 @@ struct xen_sysctl_getdomaininfolist {
/* XEN_SYSCTL_debug_keys */
struct xen_sysctl_debug_keys {
/* IN variables. */
- XEN_GUEST_HANDLE_64(char) keys;
+ XEN_GUEST_HANDLE_64(const_char) keys;
uint32_t nr_keys;
};
@@ -1037,7 +1037,7 @@ struct xen_sysctl_livepatch_op {
*/
struct xen_sysctl_set_parameter {
- XEN_GUEST_HANDLE_64(char) params; /* IN: pointer to parameters. */
+ XEN_GUEST_HANDLE_64(const_char) params; /* IN: pointer to parameters. */
uint16_t size; /* IN: size of parameters. */
uint16_t pad[3]; /* IN: MUST be zero. */
};
--
2.17.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |