[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3] xen/evtchn: Introduce new IOCTL to bind static evtchn


  • To: Juergen Gross <jgross@xxxxxxxx>
  • From: Rahul Singh <Rahul.Singh@xxxxxxx>
  • Date: Thu, 27 Jul 2023 08:27:22 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.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=aKxpga72nqPY4sgEjHuulPIqRAsInboxIb0rF9uA1/4=; b=h7hFharNKOIgAjsPykpAH2SpFuSYAbeuUbhdlFMozmWclNMfDwxRD/rozUKmK6J4oHMim44u/ecnEyOzAWQ3xa7pp0euvKTUT7hr990MocGoCk84QYSkPAXK1mLZFQ768w+dKaTGObQRT3RvLzCbPrFcoX3sJSdhajundbH011ah1vlDz5qUWF0prZNsknta4zWXSaccbQEBA8rd6jYywRRARPWhi0uw6D0zmWdW3YTBXdAXXBnvSc5rMrFYOuqi93uwFeAYZ7vt7K0staQUZrBRUTam0eDVD7E05Hx8Az9EpbbW9UK3z6T5G4VhG6Ma8BNAH8DcFapTeOwViRJsUQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Te6cPj1ISvk9W1LIClQYlvgzcs5Shk2rVQ+XuEeQ9Yfob9LoKR2vCPC6WSRE5LyC2Ytzsn8e0PLlqVmHfVGy6dVFXI3PV83Oxt0nWEQo3fOoNI4tySCidREH6poa4pJTdQ5M1aXMehtceSsYDEMv4QCiNTW1PipHnY4wcabhcN0Il1EFrABmgLZvcNNCQijMP6/+xoQ62MNWlZb8KVMjFB8QU32oweymAvkKR/x8qDz6sKyrItTGLvM021uBMctYnrkrDaMVqdMbwu4K2bD5STJby/Q82M/24WMHX0CGPq9KCDYMFK24MJB//b+V4l4i3jDQpgsDbsclhAmDttreFg==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Oleksandr Tyshchenko <oleksandr_tyshchenko@xxxxxxxx>, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>, David Woodhouse <dwmw@xxxxxxxxxxxx>, Jane Malalane <jane.malalane@xxxxxxxxxx>
  • Delivery-date: Thu, 27 Jul 2023 08:28:16 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHZuWtwf8IRAxHBCk+t/yOpmXpN2a/NKtwAgAAqfQA=
  • Thread-topic: [PATCH v3] xen/evtchn: Introduce new IOCTL to bind static evtchn

HI Juergen,

> On 27 Jul 2023, at 6:54 am, Juergen Gross <jgross@xxxxxxxx> wrote:
> 
> On 18.07.23 13:31, Rahul Singh wrote:
>> Xen 4.17 supports the creation of static evtchns. To allow user space
>> application to bind static evtchns introduce new ioctl
>> "IOCTL_EVTCHN_BIND_STATIC". Existing IOCTL doing more than binding
>> that’s why we need to introduce the new IOCTL to only bind the static
>> event channels.
>> Static evtchns to be available for use during the lifetime of the
>> guest. When the application exits, __unbind_from_irq() ends up being
>> called from release() file operations because of that static evtchns
>> are getting closed. To avoid closing the static event channel, add the
>> new bool variable "is_static" in "struct irq_info" to mark the event
>> channel static when creating the event channel to avoid closing the
>> static evtchn.
>> Also, take this opportunity to remove the open-coded version of the
>> evtchn close in drivers/xen/evtchn.c file and use xen_evtchn_close().
>> Signed-off-by: Rahul Singh <rahul.singh@xxxxxxx>
> 
> Pushed to xen/tip.git for-linus-6.5a

Thanks.

Regards,
Rahul


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.