On 19.08.2022 12:02, Rahul Singh wrote: > Static event channel support will be added for dom0less domains. Modify > evtchn_bind_interdomain to support static evtchn. > > It is necessary to have access to the evtchn_bind_interdomain function > to do that, so make evtchn_bind_interdomain global and also make it > __must_check. > > evtchn_bind_interdomain() always allocates the next available local > port. Static event channel support for dom0less domains requires > allocating a specified port. Modify the evtchn_bind_interdomain to > accept the port number as an argument and allocate the specified port > if available. If the port number argument is zero, the next available > port will be allocated. > > evtchn_bind_interdomain() finds the local domain from "current->domain" > pointer. evtchn_bind_interdomain() will be called from the XEN to create > static event channel during domain creation. "current" pointer is not > valid at that time, therefore modify the evtchn_bind_interdomain() to > pass domain as an argument. > > Signed-off-by: Rahul Singh <rahul.si...@arm.com>
Acked-by: Jan Beulich <jbeul...@suse.com>