xen/hypfs: switch write function handles to const
authorJuergen Gross <jgross@suse.com>
Thu, 17 Dec 2020 15:49:49 +0000 (16:49 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 17 Dec 2020 15:49:49 +0000 (16:49 +0100)
commitfbb2b92de0782b4ea183377e014d941fbec0bab7
tree2a6665a08631a54c9fb81ecd492f55966f647d58
parent70fadc41635b9b620de63f83cdf578d7ccf00a2b
xen/hypfs: switch write function handles to const

The node specific write functions take a void user address handle as
parameter. As a write won't change the user memory use a const_void
handle instead.

This requires a new macro for casting a guest handle to a const type.

Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/hypfs.c
xen/include/xen/guest_access.h
xen/include/xen/hypfs.h