[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 4/7] xen/evtchn: modify evtchn_bind_interdomain to support static evtchn
- To: Rahul Singh <rahul.singh@xxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Mon, 22 Aug 2022 15:53:54 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6c4P9hhBfahntbwYeZFEue7CEutwcnb/7Qyubl8ktts=; b=jy/SG2eJ/18VD3DH2Gc/ekg24Ep7h2ePX8ohMuXrBk19ppYlrM3uoEXxOIhzn6RzsOBSCpS7/kOuuOu9kVkMhz0ONcnxY3vFX8gAJURStSCamITROdFi5vH0CO9u7pAl+Bce8i1gxOPeObn8ijGWKU1FXFuSo8dN+xZonrdzbKvkK8Pz+DpUUgdCGAUqmPP6FXnTrj3K5gP4AANZcRMtrQwfKIpkEqiaIWHZgJBmK8flu8QtAcyGZaDS1vKVTkcq4DUNQMLiXHQTVSB4r42G5SMVyuLlJA8DzaEp3yVW0hJZuDVN5lNcNIKUqG+OvQ3/tRTjiOiVqGR841kWogYXRg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=coWAtY9OTDZmWtw0MRLDQB4uqRBTNboWCXW8hmKTapoQmG2CMz+FQhD/3mMtsdleLdZ/CHW7iBgGtKdoRYyvU+dlGz193fP+IGSduoWy/a37hrK12LTM6vaKf57OobDW0+spk8yQrEOlyAlHrJeXrh5VVAg7XBKnH1g52bBRsLcnuowiHPLoiV558W39L5Ax8qW6pyyiMJvMa30+Na+FD2pW7IyoyiiVpI/WPN93/Mu97gfFuLwvjlf77+ZSq37+0dDPFbHytYl5Rjj/e/RTWqNx/bXGjCmUC8F3jZpN1itxaQjiAF090bPgV1OHMkPiojfcX/LEB4bpmj4Hx6L0Tw==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: bertrand.marquis@xxxxxxx, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Mon, 22 Aug 2022 13:54:14 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
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.singh@xxxxxxx>
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
|