[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [Question] Proper location for Linux error code (-EPROBE_DEFER) in Xen
- To: Oleksandr <olekstysh@xxxxxxxxx>
- From: Jan Beulich <JBeulich@xxxxxxxx>
- Date: Thu, 1 Aug 2019 15:46:39 +0000
- Accept-language: en-US
- 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-SenderADCheck; bh=kRLPRf71FyrSPuhygtv08waS438C13BDw4DnxcGUQng=; b=OnGY9pmQ8oZLmI8YObk+BkJ7l358Vha6921GjODGYI1jnSpDCHod3Tun0+P6kebY1xEH+zrQyJsLVE+oWhEub1VFzgskS3p4bJjlVOsv8v10OyWTD/uroXeh1GZJkpTqavA/yBz/Uv0T9yZ4l+6n6QqIMHDCjhgo8jiwUiYXHo4udJI4N0MNUzqb38cV+G/dmDg6FXkx5dkHcCYQL6EBFFr8jyuUuSlLJFwtsAB1UrJBOczA3QOnayi3o85J2mWkczCeX8g5ssoOCnI2o/eQIEhGHDaCFsVmJFKTS8D6a6CTe5+Sy1hZorGiS1iEw3fTpuO+YK9u9qeG6LSgR2pkBw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TcqjLpfg2yycQiPX+EYF+jc8zcn40TqZD/LZ7uSyPNbMR94MI7uV9VLHFDYuzROpYdgOnDayArnQWG/cDwGY8m89/3dr+KHNbUaBgKNpX8ib43h/Fm58FKqHJc7FNcGz9juFpnY7QL4PmKwn+dbrLDbf0HKpxNT9qCEW2bxGLNp4ZWNHEtNUedhgRg3TSW2/tth5PLX4UVNpHpXNqfv2A3t9Z7tWsNcxq1Hjrm1/pWtsnG7fBxOC600cpIkfFW1MI7AuAtXskxd5420xPYvlcNnTfg3a54WuPHPXgKvONKbv1hQf7ZUpQNSLZWgyEUSqyCE+Uik2UGZ6I+hfgtHYPA==
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=JBeulich@xxxxxxxx;
- Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Delivery-date: Thu, 01 Aug 2019 15:52:02 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHVSHMGyAlemcbWoE2ESYTmEuHFv6bmVsbbgAAEHCWAAACGAIAABgBkgAAOSoA=
- Thread-topic: [Xen-devel] [Question] Proper location for Linux error code (-EPROBE_DEFER) in Xen
On 01.08.2019 16:54, Oleksandr wrote:
> On 01.08.19 17:34, Jan Beulich wrote:
>> On 01.08.2019 16:31, Oleksandr wrote:
>>> This is needed for the upcoming V2 of the IPMMU driver (ARM) [1] which
>>> may request
>>> deferred probing (returns -EPROBE_DEFER) depending on what device will
>>> be probed the first
>>> (Root device must be registered before Cache devices. If not the case,
>>> driver will deny further Cache device probes until Root device is
>>> registered).
>>>
>>> As we can't guarantee a fixed pre-defined order for the device nodes in DT,
>>> we need to be ready for the situation where devices being probed
>>> in "any" order. So, framework (drivers/passthrough/arm/iommu.c) will be
>>> modified a bit to be able to handle -EPROBE_DEFER returning by driver.
>> I'm sure this can be had without introducing a new error code.
>
> By reusing existing one (EAGAIN comes to mind)?
For example. Or by using some positive value instead of the (negative)
errno.h ones.
Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|