[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC XEN PATCH 5/6] tools/libs/call: add linux os call to get gsi from irq
- To: Huang Rui <ray.huang@xxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Tue, 14 Mar 2023 17:36:57 +0100
- 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=GCUM/P3v/jlK2Boso2ilxltpz18GsqtA0dI6uZTHTg8=; b=iFWsSwEdBnDh52B1/zVjteK3sG1RHMyBqsuGK/Sj2mzBR7C0qv7zwoHCjyOuQS9aUU1KaXKxrTKq5JbOs27yqUTBAGkuNRQKsTmUYrCR/ioMqp73k7vQt+Ck7l/ljNuEulYPfpwW1crYnhxLa4NHjae5t2P6LwEVAbfFSVHlYG7GZV1f79SW00+7TExiMaztGT8bUC6B1MnwJ0Qok8wvpcJ0en4RGPRosIuuBrHwD9UsA76q6gJVgT9/99KlGeFHYao/XzVmolq6FJ6UD+Mo3bnTmCFoRp2/qnGpEGgfQDjkxSxo+YyCY2YkoOoRrUKdziusm1KmXsc50ACdvLqBIQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MyfN+qqjsz/8WOBQwVCEM0fbgAIwTzKbQLw09EebVdMsxluFLBTsxZJ3oYPcsrh29/rE6+8l9iYSZPCYJf6XeFXSXNrV/s+0bdENoKId8bVUiaGm+njWcIqt5sV0NCfjDFSJy1eYl8ikMhIKMOmFMN5mlRpa8ZeLqEeJLWdOEDD0D+Flr+I1rct13IZmRoUG/nN+XAZ5uQSaNa6Zsra8sDJEV7avPI+344WCr8KlsKuXu9uhg7oXfFrNOhsuOQnhndH/qllVFu1KX+Dts/rvN7s6/gp4AjM5fPeu9ifNOpDxpT1KlJjEK9hUR9nbvSsc9tsQi+WPpqcyDsfvE9u+aA==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Alex Deucher <alexander.deucher@xxxxxxx>, Christian König <christian.koenig@xxxxxxx>, Stewart Hildebrand <Stewart.Hildebrand@xxxxxxx>, Xenia Ragiadakou <burzalodowa@xxxxxxxxx>, Honglei Huang <honglei1.huang@xxxxxxx>, Julia Zhang <julia.zhang@xxxxxxx>, Chen Jiqian <Jiqian.Chen@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Tue, 14 Mar 2023 16:37:19 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 12.03.2023 08:54, Huang Rui wrote:
> From: Chen Jiqian <Jiqian.Chen@xxxxxxx>
>
> When passthrough gpu to guest, usersapce can only get irq
> instead of gsi. But it should pass gsi to guest, so that
> guest can get interrupt signal. So, provide function to get
> gsi.
>
> Signed-off-by: Chen Jiqian <Jiqian.Chen@xxxxxxx>
> Signed-off-by: Huang Rui <ray.huang@xxxxxxx>
> ---
> tools/include/xen-sys/Linux/privcmd.h | 7 +++++++
Assuming this information needs obtaining in the first place (which I
doubt), I don't think privcmd is the right vehicle to get at it. Can
one obtain such mapping information on baremetal Linux? If so, that
would want re-using in the same or a similar way. If not, there would
need to be a very good reason why the information is needed when
running on top of Xen.
Jan
|