Re: [PATCH 3/8] xen/evtchn: modify evtchn_bind_interdomain to allocate specified port

2022-07-06 Thread Rahul Singh
Hi Jan > On 5 Jul 2022, at 4:42 pm, Jan Beulich wrote: > > On 05.07.2022 17:22, Julien Grall wrote: >> Hi Jan, >> >> On 05/07/2022 16:11, Jan Beulich wrote: >>> On 22.06.2022 16:38, Rahul Singh wrote: @@ -387,8 +392,19 @@ int evtchn_bind_interdomain(evtchn_bind_interdomain_t *bind) >

Re: [PATCH 3/8] xen/evtchn: modify evtchn_bind_interdomain to allocate specified port

2022-07-06 Thread Rahul Singh
Hi Julien, > On 5 Jul 2022, at 4:22 pm, Julien Grall wrote: > > Hi Jan, > > On 05/07/2022 16:11, Jan Beulich wrote: >> On 22.06.2022 16:38, Rahul Singh wrote: >>> @@ -387,8 +392,19 @@ int evtchn_bind_interdomain(evtchn_bind_interdomain_t >>> *bind) >>> spin_lock(&ld->event_lock); >>> } >>> - i

Re: [PATCH 3/8] xen/evtchn: modify evtchn_bind_interdomain to allocate specified port

2022-07-05 Thread Jan Beulich
On 05.07.2022 17:22, Julien Grall wrote: > Hi Jan, > > On 05/07/2022 16:11, Jan Beulich wrote: >> On 22.06.2022 16:38, Rahul Singh wrote: >>> @@ -387,8 +392,19 @@ int evtchn_bind_interdomain(evtchn_bind_interdomain_t >>> *bind) >>> spin_lock(&ld->event_lock); >>> } >>> >>> -

Re: [PATCH 3/8] xen/evtchn: modify evtchn_bind_interdomain to allocate specified port

2022-07-05 Thread Julien Grall
Hi Jan, On 05/07/2022 16:11, Jan Beulich wrote: On 22.06.2022 16:38, Rahul Singh wrote: @@ -387,8 +392,19 @@ int evtchn_bind_interdomain(evtchn_bind_interdomain_t *bind) spin_lock(&ld->event_lock); } -if ( (lport = get_free_port(ld)) < 0 ) -ERROR_EXIT(lport); +

Re: [PATCH 3/8] xen/evtchn: modify evtchn_bind_interdomain to allocate specified port

2022-07-05 Thread Jan Beulich
On 22.06.2022 16:38, Rahul Singh wrote: > @@ -387,8 +392,19 @@ int evtchn_bind_interdomain(evtchn_bind_interdomain_t > *bind) > spin_lock(&ld->event_lock); > } > > -if ( (lport = get_free_port(ld)) < 0 ) > -ERROR_EXIT(lport); > +if ( lport != 0 ) > +{ > +

[PATCH 3/8] xen/evtchn: modify evtchn_bind_interdomain to allocate specified port

2022-06-22 Thread Rahul Singh
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 nu