On 06.04.2020 11:07, Paul Durrant wrote: >> -----Original Message----- >> From: Julien Grall <jul...@xen.org> >> Sent: 01 April 2020 14:42 >> >> On 27/03/2020 18:50, Paul Durrant wrote: >> Also, in the case of XEN_DOMCTL_setdomaincontext, the buffer is not >> meant to be modified by the hypervisor. So I would rather introduce two >> separate structure so we can enforce the const. > > Can handles be meaningfully const?
Yes, see e.g. Julien's recent patch to force honoring const-ness in some cases where it wasn't enforced so far. Luckily there look to not have crept in any violators. Jan